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
sourceimpl Stacker
impl Stacker
pub fn handle_will_render(&mut self, args: ArgsRender)
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
sourcefn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
sourceimpl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
sourcefn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.