Struct yew_layout::RowProps [−][src]
pub struct RowProps {Show 16 fields
pub children: Children,
pub fill: bool,
pub cross_fill: bool,
pub expand_by: Option<f32>,
pub shrink_by: Option<f32>,
pub inline: bool,
pub reverse: bool,
pub wrap: bool,
pub align: Option<Align>,
pub cross_align: Option<CrossAlign>,
pub align_self: Option<AlignSelf>,
pub gap: Option<Gap>,
pub reverse_rows: bool,
pub align_rows: Option<AlignRows>,
pub padding: Option<Padding>,
pub margin: Option<Margin>,
}Expand description
Row properties.
Here you can find all properties that can be used with Row component.
Fields
children: Childrenfill: boolFill the available sapce horizontally.
The default is true
cross_fill: boolFill the available sapce vertically.
The default is false
expand_by: Option<f32>Expand factor used to exapnd this row in direction relevant to it’s parent layout direction.
When the parent is Row it will expand horizontally, when the parent is
Column it will expand vertically.
Note: This only works when this Row inside another flex layout.
The default is None
shrink_by: Option<f32>Shrink factor used to shrink this row in direction relevant to it’s parent layout direction when needed.
When the parent is Row it will shrink horizontally, when the parent is
Column it will shrink vertically.
Note: This only works when this Row inside another flex layout.
The default is None
inline: boolMake this layout inline
The default is false
reverse: boolReverse the order of the children
The default is false
wrap: boolWrap into another row when there is no more horizontal space.
The default is false
align: Option<Align>Align the children inside this row in main direction (vertically).
The default is None
cross_align: Option<CrossAlign>Align the children inside this row in the cross direction (horizontally).
The default is None
align_self: Option<AlignSelf>Align this row when it’s inside another layout, the alignment direction is relevant to the parent layout direction
When the parent is Row it will align horizontally, when the parent is
Column it will align vertically.
Note: This only works when this Row inside another layout.
The default is None
gap: Option<Gap>Gap between children.
this take css_style::Gap value, which can take either one value that
defines the gap for both the columns and rows (if there is any), or two
values one for rows and the other for columns.
The default is None
reverse_rows: boolReverse rows if there is more than one column within this Column.
The default is false
align_rows: Option<AlignRows>Align rows in the corss direction (vertically) if there is more than one
row within this Row.
The default is None
padding: Option<Padding>Padding for the Row
The default is None
margin: Option<Margin>Margin for the Row
The default is None
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RowProps
impl !UnwindSafe for RowProps
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert self to a value of a Properties struct.
Convert self to a value of a Properties struct.
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds error is returned which contains
the unclamped color. Read more
