pub struct Stacker {
    pub computed_layout_spec: Property<Vec<Rc<StackerCellProperties>>>,
    pub direction: Property<StackerDirection>,
    pub cells: Property<usize>,
    pub gutter_width: Property<Size>,
    pub overrides_cell_size: Property<Vec<(usize, Size)>>,
    pub overrides_gutter_size: Property<Vec<(usize, Size)>>,
}
Expand description

Stacker lays out a series of nodes either vertically or horizontally (i.e. a single row or column) with a specified gutter in between each node. Stackers can be stacked inside of each other, horizontally and vertically, along with Transform.align and Transform.anchor to compose any rectilinear 2D layout.

Fields

computed_layout_spec: Property<Vec<Rc<StackerCellProperties>>>direction: Property<StackerDirection>cells: Property<usize>gutter_width: Property<Size>overrides_cell_size: Property<Vec<(usize, Size)>>overrides_gutter_size: Property<Vec<(usize, Size)>>

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.

Performs the conversion.

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.