pub struct Chrome {
pub gap: u16,
pub justify: Justify,
pub border: Option<Border>,
pub title: Option<Line<'static>>,
pub padding: u16,
}Expand description
Container chrome (gap, border, title, padding) shared by Vbox, Hbox,
and Leaf.
Fields§
§gap: u16Cells between adjacent children; 0 packs flush.
justify: JustifySurplus-space placement along the primary axis.
border: Option<Border>Frame around the container; each enabled side reserves one row/col. None = no inset.
title: Option<Line<'static>>Title in the top border row. Requires border = Some(_); renders as a styled [Line].
padding: u16Uniform inner padding (cells) on all four sides, inside any
border. Increases the container’s natural size by 2 * padding on
each axis; children are laid out in the padded-inset rect.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chrome
impl RefUnwindSafe for Chrome
impl Send for Chrome
impl Sync for Chrome
impl Unpin for Chrome
impl UnsafeUnpin for Chrome
impl UnwindSafe for Chrome
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