struct GridSize {
cols: usize,
rows: usize,
}Expand description
The dimensions a resize drives the grid with.
Fields§
§cols: usize§rows: usizeTrait Implementations§
Source§impl Dimensions for GridSize
impl Dimensions for GridSize
Source§fn total_lines(&self) -> usize
fn total_lines(&self) -> usize
Total number of lines in the buffer, this includes scrollback and visible lines.
Source§fn screen_lines(&self) -> usize
fn screen_lines(&self) -> usize
Height of the viewport in lines.
§fn last_column(&self) -> Column
fn last_column(&self) -> Column
Index for the last column.
§fn topmost_line(&self) -> Line
fn topmost_line(&self) -> Line
Line farthest up in the grid history.
§fn bottommost_line(&self) -> Line
fn bottommost_line(&self) -> Line
Line farthest down in the grid history.
§fn history_size(&self) -> usize
fn history_size(&self) -> usize
Number of invisible lines part of the scrollback history.
Auto Trait Implementations§
impl Freeze for GridSize
impl RefUnwindSafe for GridSize
impl Send for GridSize
impl Sync for GridSize
impl Unpin for GridSize
impl UnsafeUnpin for GridSize
impl UnwindSafe for GridSize
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