Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-tui/src/backend/mod.rs')
| -rw-r--r-- | helix-tui/src/backend/mod.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/helix-tui/src/backend/mod.rs b/helix-tui/src/backend/mod.rs deleted file mode 100644 index c6c11019..00000000 --- a/helix-tui/src/backend/mod.rs +++ /dev/null @@ -1,26 +0,0 @@ -use std::io; - -use crate::buffer::Cell; - -use helix_view::graphics::{CursorKind, Rect}; - -#[cfg(feature = "crossterm")] -mod crossterm; -#[cfg(feature = "crossterm")] -pub use self::crossterm::CrosstermBackend; - -mod test; -pub use self::test::TestBackend; - -pub trait Backend { - fn draw<'a, I>(&mut self, content: I) -> Result<(), io::Error> - where - I: Iterator<Item = (u16, u16, &'a Cell)>; - fn hide_cursor(&mut self) -> Result<(), io::Error>; - fn show_cursor(&mut self, kind: CursorKind) -> Result<(), io::Error>; - fn get_cursor(&mut self) -> Result<(u16, u16), io::Error>; - fn set_cursor(&mut self, x: u16, y: u16) -> Result<(), io::Error>; - fn clear(&mut self) -> Result<(), io::Error>; - fn size(&self) -> Result<Rect, io::Error>; - fn flush(&mut self) -> Result<(), io::Error>; -} |