Trait FlexboxContainerStyle
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<AlignContent> { ... }
}Expand description
The set of styles required for a Flexbox container
Provided Methods§
fn flex_direction(&self) -> FlexDirection
fn flex_direction(&self) -> FlexDirection
Which direction does the main axis flow in?
fn gap(&self) -> Size<LengthPercentage>
fn gap(&self) -> Size<LengthPercentage>
How large should the gaps between items in a grid or flex container be?
fn 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
fn align_items(&self) -> Option<AlignItems>
fn align_items(&self) -> Option<AlignItems>
How this node’s children aligned in the cross/block axis?
fn justify_content(&self) -> Option<AlignContent>
fn justify_content(&self) -> Option<AlignContent>
How this node’s children should be aligned in the inline axis
Implementations on Foreign Types§
§impl<T> FlexboxContainerStyle for &Twhere
T: FlexboxContainerStyle,
Available on crate feature flexbox only.
impl<T> FlexboxContainerStyle for &Twhere
T: FlexboxContainerStyle,
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<AlignContent>
Implementors§
impl<S> FlexboxContainerStyle for Style<S>where
S: CheapCloneStr,
Available on crate feature
flexbox only.