pub struct LayoutStack { /* private fields */ }Expand description
A vertical layout stack that tracks the current row and produces panels for each component drawn.
Compositors create a stack at a starting row, then call draw
for each component in order. The stack advances the row by the number
of rows each component consumed.
Implementations§
Source§impl LayoutStack
impl LayoutStack
pub fn new( start_row: u16, terminal_width: u16, box_column: u16, box_width: u16, ) -> Self
pub fn row(&self) -> u16
pub fn terminal_width(&self) -> u16
Auto Trait Implementations§
impl Freeze for LayoutStack
impl RefUnwindSafe for LayoutStack
impl Send for LayoutStack
impl Sync for LayoutStack
impl Unpin for LayoutStack
impl UnsafeUnpin for LayoutStack
impl UnwindSafe for LayoutStack
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