pub struct NodeLayout {Show 34 fields
pub display: Display,
pub flex_direction: FlexDirection,
pub flex_wrap: FlexWrap,
pub grid_template_columns: Option<TrackList>,
pub grid_template_rows: Option<TrackList>,
pub grid_auto_columns: Option<TrackList>,
pub grid_auto_rows: Option<TrackList>,
pub grid_auto_flow: GridAutoFlow,
pub row_gap: f32,
pub column_gap: f32,
pub justify_content: JustifyContent,
pub align_items: AlignItems,
pub align_content: AlignContent,
pub justify_items: AlignItems,
pub padding: Sides,
pub border_width: f32,
pub overflow: Overflow,
pub width: Option<LayoutLength>,
pub height: Option<LayoutLength>,
pub min_width: Option<LayoutLength>,
pub min_height: Option<LayoutLength>,
pub max_width: Option<LayoutLength>,
pub max_height: Option<LayoutLength>,
pub aspect_ratio: Option<f32>,
pub margin: Sides,
pub flex_grow: f32,
pub flex_shrink: f32,
pub flex_basis: Option<LayoutLength>,
pub align_self: Option<AlignItems>,
pub justify_self: Option<AlignItems>,
pub grid_column: GridPlacement,
pub grid_row: GridPlacement,
pub position: Position,
pub inset: [Option<LayoutLength>; 4],
}Expand description
A box’s sampled box-model, flex and grid values. Lengths are fractions or percents, never pixels.
Fields§
§display: Display§flex_direction: FlexDirection§flex_wrap: FlexWrap§grid_template_columns: Option<TrackList>§grid_template_rows: Option<TrackList>§grid_auto_columns: Option<TrackList>§grid_auto_rows: Option<TrackList>§grid_auto_flow: GridAutoFlow§row_gap: f32The gap between rows: row_gap, else gap.
column_gap: f32The gap between columns: column_gap, else gap.
justify_content: JustifyContent§align_items: AlignItems§align_content: AlignContent§justify_items: AlignItems§padding: Sides§border_width: f32The border’s width; zero without one.
overflow: Overflow§width: Option<LayoutLength>§height: Option<LayoutLength>§min_width: Option<LayoutLength>§min_height: Option<LayoutLength>§max_width: Option<LayoutLength>§max_height: Option<LayoutLength>§aspect_ratio: Option<f32>§margin: Sides§flex_grow: f32§flex_shrink: f32§flex_basis: Option<LayoutLength>§align_self: Option<AlignItems>§justify_self: Option<AlignItems>§grid_column: GridPlacement§grid_row: GridPlacement§position: Position§inset: [Option<LayoutLength>; 4]Left, top, right, bottom; None is auto.
Trait Implementations§
Source§impl Clone for NodeLayout
impl Clone for NodeLayout
Source§impl Debug for NodeLayout
impl Debug for NodeLayout
Source§impl PartialEq for NodeLayout
impl PartialEq for NodeLayout
impl StructuralPartialEq for NodeLayout
Auto Trait Implementations§
impl Freeze for NodeLayout
impl RefUnwindSafe for NodeLayout
impl Send for NodeLayout
impl Sync for NodeLayout
impl Unpin for NodeLayout
impl UnsafeUnpin for NodeLayout
impl UnwindSafe for NodeLayout
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