pub struct FrameState { /* private fields */ }Implementations§
Source§impl FrameState
impl FrameState
pub fn new(rows: u16, cols: u16) -> Self
pub fn from_parts( rows: u16, cols: u16, cursor_row: u16, cursor_col: u16, mode: u16, title: impl Into<String>, cells: Vec<u8>, ) -> Self
pub fn rows(&self) -> u16
pub fn cols(&self) -> u16
pub fn cursor_row(&self) -> u16
pub fn cursor_col(&self) -> u16
pub fn mode(&self) -> u16
pub fn title(&self) -> &str
pub fn cells(&self) -> &[u8] ⓘ
pub fn cells_mut(&mut self) -> &mut [u8] ⓘ
pub fn overflow(&self) -> &BTreeMap<usize, String>
pub fn overflow_mut(&mut self) -> &mut BTreeMap<usize, String>
pub fn line_flags(&self) -> &[u8] ⓘ
pub fn line_flags_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn scrollback_lines(&self) -> u32
pub fn set_scrollback_lines(&mut self, lines: u32)
pub fn is_wrapped(&self, row: u16) -> bool
pub fn set_wrapped(&mut self, row: u16, wrapped: bool)
Sourcepub fn cell_content(&self, row: u16, col: u16) -> &str
pub fn cell_content(&self, row: u16, col: u16) -> &str
Returns the text content of a cell, resolving overflow if needed.
pub fn resize(&mut self, rows: u16, cols: u16)
pub fn set_cursor(&mut self, row: u16, col: u16)
pub fn set_mode(&mut self, mode: u16)
pub fn set_title(&mut self, title: impl Into<String>) -> bool
pub fn clear(&mut self, style: CellStyle)
pub fn fill_rect(&mut self, rect: Rect, ch: char, style: CellStyle)
pub fn write_text( &mut self, row: u16, col: u16, text: &str, style: CellStyle, ) -> u16
pub fn write_wrapped_text( &mut self, rect: Rect, text: &str, style: CellStyle, ) -> usize
pub fn write_scrolling_text<S: AsRef<str>>( &mut self, rect: Rect, lines: &[S], offset_from_bottom: usize, style: CellStyle, )
pub fn get_text( &self, start_row: u16, start_col: u16, end_row: u16, end_col: u16, ) -> String
pub fn get_all_text(&self) -> String
pub fn get_ansi_text(&self) -> String
pub fn get_cell(&self, row: u16, col: u16) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for FrameState
impl Clone for FrameState
Source§fn clone(&self) -> FrameState
fn clone(&self) -> FrameState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameState
impl Debug for FrameState
Source§impl Default for FrameState
impl Default for FrameState
Source§fn default() -> FrameState
fn default() -> FrameState
Returns the “default value” for a type. Read more
Source§impl PartialEq for FrameState
impl PartialEq for FrameState
impl Eq for FrameState
impl StructuralPartialEq for FrameState
Auto Trait Implementations§
impl Freeze for FrameState
impl RefUnwindSafe for FrameState
impl Send for FrameState
impl Sync for FrameState
impl Unpin for FrameState
impl UnsafeUnpin for FrameState
impl UnwindSafe for FrameState
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