Struct yew_layout::RowProps [−][src]
pub struct RowProps {}Show 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>,
Row properties.
Here you can find all properties that can be used with Row component.
Fields
children: Children
fill: bool
Fill the available sapce horizontally.
The default is true
cross_fill: bool
Fill 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: bool
Make this layout inline
The default is false
reverse: bool
Reverse the order of the children
The default is false
wrap: bool
Wrap 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: bool
Reverse 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
impl Clone for RowProps
[src]
impl PartialEq<RowProps> for RowProps
[src]
impl Properties for RowProps
[src]
type Builder = RowPropsBuilder<RowPropsBuilderStep_missing_required_prop_children>
Builder that will be used to construct properties
fn builder() -> Self::Builder
[src]
impl StructuralPartialEq for RowProps
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RowProps
impl !Send for RowProps
impl !Sync for RowProps
impl Unpin for RowProps
impl !UnwindSafe for RowProps
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
[src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,