pub struct Screen<W: Write> {
pub cursor_moved: bool,
pub rowoff: usize,
pub coloff: usize,
/* private fields */
}Fields§
§cursor_moved: bool§rowoff: usize§coloff: usizeImplementations§
Source§impl<W: Write> Screen<W>
impl<W: Write> Screen<W>
pub fn new<I>(size: Option<(usize, usize)>, input: I, output: W) -> Result<Self>
pub fn render_welcome(&mut self, status_bar: &StatusBar) -> Result<()>
pub fn render( &mut self, buf: &TextBuffer, hl: &mut Highlighting, status_bar: &StatusBar, ) -> Result<()>
pub fn render_help(&mut self) -> Result<()>
pub fn set_dirty_start(&mut self, start: usize)
pub fn maybe_resize<I>(&mut self, input: I) -> Result<bool>
pub fn set_info_message<S: Into<String>>(&mut self, message: S)
pub fn set_error_message<S: Into<String>>(&mut self, message: S)
pub fn unset_message(&mut self)
pub fn rows(&self) -> usize
pub fn cols(&self) -> usize
pub fn message_text(&self) -> &str
pub fn force_set_cursor(&mut self, row: usize, col: usize) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for Screen<W>where
W: Freeze,
impl<W> RefUnwindSafe for Screen<W>where
W: RefUnwindSafe,
impl<W> Send for Screen<W>where
W: Send,
impl<W> Sync for Screen<W>where
W: Sync,
impl<W> Unpin for Screen<W>where
W: Unpin,
impl<W> UnwindSafe for Screen<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more