pub trait FlexboxItemStyle: CoreStyle {
// Provided methods
fn flex_basis(&self) -> Dimension { ... }
fn flex_grow(&self) -> f32 { ... }
fn flex_shrink(&self) -> f32 { ... }
fn align_self(&self) -> Option<AlignSelf> { ... }
}
Expand description
The set of styles required for a Flexbox item (child of a Flexbox container)
Provided Methods§
Sourcefn flex_basis(&self) -> Dimension
fn flex_basis(&self) -> Dimension
Sets the initial main axis size of the item
Sourcefn flex_grow(&self) -> f32
fn flex_grow(&self) -> f32
The relative rate at which this item grows when it is expanding to fill space
Sourcefn flex_shrink(&self) -> f32
fn flex_shrink(&self) -> f32
The relative rate at which this item shrinks when it is contracting to fit into space
Sourcefn align_self(&self) -> Option<AlignSelf>
fn align_self(&self) -> Option<AlignSelf>
How this node should be aligned in the cross/block axis
Falls back to the parents AlignItems
if not set
Implementations on Foreign Types§
Source§impl<T: FlexboxItemStyle> FlexboxItemStyle for &T
Available on crate feature flexbox
only.
impl<T: FlexboxItemStyle> FlexboxItemStyle for &T
Available on crate feature
flexbox
only.Implementors§
impl FlexboxItemStyle for Style
Available on crate feature
flexbox
only.