pub struct Stacker {
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 percentage-based positioning and Transform2D.anchor
to compose any rectilinear 2D layout.
Fields§
§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§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stacker
impl<'de> Deserialize<'de> for Stacker
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Interpolatable for Stacker
impl Interpolatable for Stacker
fn interpolate(&self, _other: &Self, _t: f64) -> Self
impl ImplToFromPaxAny for Stacker
Auto Trait Implementations§
impl Freeze for Stacker
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> CoercionRules for Twhere
T: ImplToFromPaxAny,
impl<T> CoercionRules for Twhere
T: ImplToFromPaxAny,
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.