Struct yew_layout::ColumnProps[][src]

pub struct ColumnProps {
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_columns: bool, pub align_columns: Option<AlignColumns>, pub padding: Option<Padding>, pub margin: Option<Margin>,
}
Expand description

Column properties.

Here you can find all properties that can be used with Column component.

Fields

children: Childrenfill: bool

Fill the available sapce vertically.

The default is true

cross_fill: bool

Fill the available sapce horizontally.

The default is false

expand_by: Option<f32>

Expand factor used to exapnd this column 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 Column inside another flex layout.

The default is None

shrink_by: Option<f32>

Shrink factor used to shrink this column 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 Column 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 column when there is no more vertical space.

The default is false

align: Option<Align>

Align the children inside this column in main direction (horizontally).

The default is None

cross_align: Option<CrossAlign>

Align the children inside this column in the cross direction (vertically).

The default is None

align_self: Option<AlignSelf>

Align this column 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 Column 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 (if there is any) and rows, or two values one for rows and the other for columns.

The default is None

reverse_columns: bool

Reverse columns if there is more than one column within this Column.

The default is false

align_columns: Option<AlignColumns>

Align columns in the corss direction (horizontally) if there is more than one column within this Column.

The default is None

padding: Option<Padding>

Padding for the Column

The default is None

margin: Option<Margin>

Margin for the Column

The default is None

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Builder that will be used to construct properties

Entrypoint for building properties

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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