pub struct Stacker {
pub cells: Property<Numeric>,
pub direction: Property<StackerDirection>,
pub _cell_specs: Property<Vec<StackerCell>>,
pub gutter: Property<Size>,
pub sizes: Property<Vec<Option<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. Stacker
s can be stacked inside of each other, horizontally
and vertically, along with Transform.align
and Transform.anchor
to compose any rectilinear 2D layout.
Fields§
§cells: Property<Numeric>
§direction: Property<StackerDirection>
§_cell_specs: Property<Vec<StackerCell>>
§gutter: Property<Size>
§sizes: Property<Vec<Option<Size>>>
For for specifying sizes of each cell. None-values (or array-index out-of-bounds values) will fall back to computed, equal-sizing
Implementations§
source§impl Stacker
impl Stacker
pub fn handle_will_render(&mut self, ctx: RuntimeContext)
Trait Implementations§
source§impl Interpolatable for Stacker
impl Interpolatable for Stacker
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for Stacker
impl !Send for Stacker
impl !Sync for Stacker
impl Unpin for Stacker
impl !UnwindSafe for Stacker
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.