pub struct EngineLayoutStyle {Show 25 fields
pub display: Display,
pub overflow: Point<Overflow>,
pub scrollbar_width: AbsoluteLength,
pub position: Position,
pub inset: Edges<Length>,
pub size: Size<Length>,
pub min_size: Size<Length>,
pub max_size: Size<Length>,
pub aspect_ratio: Option<f32>,
pub margin: Edges<Length>,
pub padding: Edges<DefiniteLength>,
pub border_widths: Edges<AbsoluteLength>,
pub align_items: Option<AlignItems>,
pub align_self: Option<AlignSelf>,
pub align_content: Option<AlignContent>,
pub justify_content: Option<JustifyContent>,
pub gap: Size<DefiniteLength>,
pub flex_direction: FlexDirection,
pub flex_wrap: FlexWrap,
pub flex_basis: Length,
pub flex_grow: f32,
pub flex_shrink: f32,
pub grid_cols: Option<GridTemplate>,
pub grid_rows: Option<GridTemplate>,
pub grid_location: Option<GridLocation>,
}Expand description
The layout-affecting subset of an element’s style.
The facade resolves its Style into this before handing it to a layout
engine, so the engine never sees paint-only properties.
Fields§
§display: DisplayThe layout algorithm used for this node’s children.
overflow: Point<Overflow>How overflowing children affect this node’s scrollable area.
scrollbar_width: AbsoluteLengthSpace reserved for the scrollbars of Overflow::Scroll nodes.
position: PositionThe positioning strategy for this node.
inset: Edges<Length>Offsets applied relative to the layout position.
size: Size<Length>The preferred size.
min_size: Size<Length>The minimum size.
max_size: Size<Length>The maximum size.
aspect_ratio: Option<f32>The preferred aspect ratio, calculated as width divided by height.
margin: Edges<Length>Space around this node.
padding: Edges<DefiniteLength>Space inside this node.
border_widths: Edges<AbsoluteLength>Border widths.
align_items: Option<AlignItems>How this node’s children are aligned in the cross/block axis.
align_self: Option<AlignSelf>How this node is aligned in the cross/block axis.
align_content: Option<AlignContent>How this node’s content is aligned in the cross/block axis.
justify_content: Option<JustifyContent>How this node’s content is aligned in the main/inline axis.
gap: Size<DefiniteLength>Space between this node’s children.
flex_direction: FlexDirectionWhich direction the flex main axis flows in.
flex_wrap: FlexWrapWhether flex children wrap or stay on a single line.
flex_basis: LengthThe initial main-axis size of this node.
flex_grow: f32The rate at which this node grows when expanding to fill space.
flex_shrink: f32The rate at which this node shrinks when contracting.
grid_cols: Option<GridTemplate>The grid column template.
grid_rows: Option<GridTemplate>The grid row template.
grid_location: Option<GridLocation>This node’s location within its parent’s grid.