pub trait FlexboxContainerStyle: CoreStyle {
// Provided methods
fn flex_direction(&self) -> FlexDirection { ... }
fn flex_wrap(&self) -> FlexWrap { ... }
fn gap(&self) -> Size<LengthPercentage> { ... }
fn align_content(&self) -> Option<AlignContent> { ... }
fn align_items(&self) -> Option<AlignItems> { ... }
fn justify_content(&self) -> Option<JustifyContent> { ... }
}
Expand description
The set of styles required for a Flexbox container
Provided Methods§
Sourcefn flex_direction(&self) -> FlexDirection
fn flex_direction(&self) -> FlexDirection
Which direction does the main axis flow in?
Sourcefn gap(&self) -> Size<LengthPercentage>
fn gap(&self) -> Size<LengthPercentage>
How large should the gaps between items in a grid or flex container be?
Sourcefn align_content(&self) -> Option<AlignContent>
fn align_content(&self) -> Option<AlignContent>
How should content contained within this item be aligned in the cross/block axis
Sourcefn align_items(&self) -> Option<AlignItems>
fn align_items(&self) -> Option<AlignItems>
How this node’s children aligned in the cross/block axis?
Sourcefn justify_content(&self) -> Option<JustifyContent>
fn justify_content(&self) -> Option<JustifyContent>
How this node’s children should be aligned in the inline axis
Implementations on Foreign Types§
Source§impl<T: FlexboxContainerStyle> FlexboxContainerStyle for &T
Available on crate feature flexbox
only.
impl<T: FlexboxContainerStyle> FlexboxContainerStyle for &T
Available on crate feature
flexbox
only.fn flex_direction(&self) -> FlexDirection
fn flex_wrap(&self) -> FlexWrap
fn gap(&self) -> Size<LengthPercentage>
fn align_content(&self) -> Option<AlignContent>
fn align_items(&self) -> Option<AlignItems>
fn justify_content(&self) -> Option<JustifyContent>
Implementors§
impl FlexboxContainerStyle for Style
Available on crate feature
flexbox
only.