pub struct Props {Show 24 fields
pub children: Children,
pub length: Option<Length>,
pub min_length: Option<Length>,
pub max_length: Option<Length>,
pub width: Option<Length>,
pub min_width: Option<Length>,
pub max_width: Option<Length>,
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 overflow: Overflow,
pub padding: Option<Padding>,
pub margin: Option<Margin>,
pub background: Option<Background>,
pub border: Option<Border>,
pub shadow: Option<Shadow>,
}Expand description
Row properties.
Here you can find all properties that can be used with Row component.
Fields§
§children: Children§length: Option<Length>Control the length of the Row
The default is Length::from(1.0)
min_length: Option<Length>Control the minimum length of the Row
The default is Length::MinContent
max_length: Option<Length>Control the maximum length of the Row
The default is None
width: Option<Length>Control the width of the Row
The default is None
min_width: Option<Length>Control the minimum width of the Row
The default is Length::MinContent
max_width: Option<Length>Control the maximum width of the Row
The default is None
expand_by: Option<f32>Expand factor used to expand 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 layout (e.g. Row/Column).
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 layout (e.g. Row/Column).
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 (e.g. Row/Column).
The default is None
gap: Option<Gap>Gap between children.
This take 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.
This only works when used with wrap=true.
The default is false
align_rows: Option<AlignRows>Align rows in the cross direction (vertically) if there is more than one
row within this Row.
The default is None
overflow: OverflowOverflow behavior for this Row
By default any child that get oversized will be visible and may overlap with other UI components. Change this property if you like to make the content scrollable or make the oversized hidden/cliped.
The default is Overflow::visible()
padding: Option<Padding>Padding for the Row
The default is None
margin: Option<Margin>Margin for the Row
The default is None
background: Option<Background>Background for the Row
The default is None
border: Option<Border>Border for the Row
The default is None
shadow: Option<Shadow>Shadow for the Row
The default is None
Trait Implementations§
Source§impl Properties for Props
impl Properties for Props
impl StructuralPartialEq for Props
Auto Trait Implementations§
impl Freeze for Props
impl !RefUnwindSafe for Props
impl !Send for Props
impl !Sync for Props
impl Unpin for Props
impl !UnwindSafe for Props
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
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, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self to a value of a Properties struct.Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more