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<AlignItems>,
pub align_content: Option<AlignContent>,
pub justify_content: Option<AlignContent>,
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<AlignItems>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<AlignContent>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.
Trait Implementations§
Source§impl Clone for EngineLayoutStyle
impl Clone for EngineLayoutStyle
Source§fn clone(&self) -> EngineLayoutStyle
fn clone(&self) -> EngineLayoutStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for EngineLayoutStyle
impl RefUnwindSafe for EngineLayoutStyle
impl Send for EngineLayoutStyle
impl Sync for EngineLayoutStyle
impl Unpin for EngineLayoutStyle
impl UnsafeUnpin for EngineLayoutStyle
impl UnwindSafe for EngineLayoutStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more