pub struct PreparedLayout<K> { /* private fields */ }Expand description
A renderer frame after wrapping, viewport allocation, and clipping.
It intentionally exposes only aggregate information and views of the visible
panes.
Coordinate mappings are installed by super::Renderer after the panes
have been drawn at a known screen origin.
Implementations§
Source§impl<K> PreparedLayout<K>
impl<K> PreparedLayout<K>
Sourcepub fn panes(&self) -> Vec<Vec<&StyledGraphemes>>
pub fn panes(&self) -> Vec<Vec<&StyledGraphemes>>
Returns views of the visible rows grouped by renderer pane.
Sourcepub fn pane_count(&self) -> usize
pub fn pane_count(&self) -> usize
Returns the number of non-empty panes allocated in this frame.
Sourcepub fn visual_row_count(&self) -> usize
pub fn visual_row_count(&self) -> usize
Returns the number of visual rows produced before viewport clipping.
Sourcepub fn visible_row_count(&self) -> usize
pub fn visible_row_count(&self) -> usize
Returns the number of rows that will be written to the terminal.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for PreparedLayout<K>
impl<K> RefUnwindSafe for PreparedLayout<K>where
K: RefUnwindSafe,
impl<K> Send for PreparedLayout<K>where
K: Send,
impl<K> Sync for PreparedLayout<K>where
K: Sync,
impl<K> Unpin for PreparedLayout<K>where
K: Unpin,
impl<K> UnsafeUnpin for PreparedLayout<K>
impl<K> UnwindSafe for PreparedLayout<K>where
K: 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