pub struct CellBuffer {
pub max_lines: usize,
pub cur_style: Style,
pub default_bg: Color,
pub default_fg: Color,
/* private fields */
}
Fields§
§max_lines: usize
§cur_style: Style
§default_bg: Color
§default_fg: Color
Implementations§
Source§impl CellBuffer
impl CellBuffer
pub fn new(max_lines: usize, default_bg: Color, default_fg: Color) -> Self
pub fn set_style(&mut self, style: Style)
pub fn push_char(&mut self, ch: char)
pub fn newline(&mut self)
pub fn clear_line_right(&mut self)
pub fn snapshot(&self) -> Vec<Vec<Cell>>
pub fn set_dimensions(&mut self, cols: usize, rows: usize)
pub fn take_dirty(&mut self) -> Option<(usize, usize)>
pub fn take_dirty_areas(&mut self) -> Vec<(usize, usize, usize)>
pub fn cursor(&self) -> (usize, usize)
pub fn set_cursor(&mut self, row: usize, col: usize)
pub fn write_char(&mut self, ch: char)
pub fn carriage_return(&mut self)
pub fn line_feed(&mut self)
pub fn move_cursor_rel(&mut self, drow: isize, dcol: isize)
pub fn move_cursor_abs(&mut self, row1: usize, col1: usize)
pub fn clear_eol(&mut self)
pub fn clear_eol_0(&mut self)
pub fn clear_eol_1(&mut self)
pub fn clear_eol_2(&mut self)
pub fn clear_ed_0(&mut self)
pub fn clear_ed_1(&mut self)
pub fn clear_ed_2(&mut self)
pub fn clear_scrollback(&mut self)
pub fn insert_blanks(&mut self, count: usize)
pub fn delete_chars(&mut self, count: usize)
pub fn insert_lines(&mut self, count: usize)
pub fn delete_lines(&mut self, count: usize)
pub fn tab(&mut self)
pub fn erase_chars(&mut self, count: usize)
Auto Trait Implementations§
impl Freeze for CellBuffer
impl RefUnwindSafe for CellBuffer
impl Send for CellBuffer
impl Sync for CellBuffer
impl Unpin for CellBuffer
impl UnwindSafe for CellBuffer
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.