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.  Stackers 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 CoercionRules for Stacker
 
impl CoercionRules for Stacker
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 HelperFunctions for Stacker
 
impl HelperFunctions for Stacker
source§impl Interpolatable for Stacker
 
impl Interpolatable for Stacker
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl ToPaxValue for Stacker
 
impl ToPaxValue for Stacker
fn to_pax_value(self) -> PaxValue
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.