[][src]Struct ytesrev::layout::stack::Stack

pub struct Stack {
    pub margin: u32,
    pub orientation: Orientation,
    pub positioning: ElementPositioning,
    pub update_seq: bool,
    pub content: Vec<Box<dyn Stackable>>,
}

The stack

Fields

margin: u32

The margin between each element

orientation: Orientation

Which way the stack faces

positioning: ElementPositioning

Positioning of each element

update_seq: bool

Update sequentially or all at once

content: Vec<Box<dyn Stackable>>

The content in the stack

Methods

impl Stack[src]

pub fn new(
    margin: u32,
    orientation: Orientation,
    positioning: ElementPositioning,
    update_seq: bool,
    content: Vec<Box<dyn Stackable>>
) -> Stack
[src]

Create a new Stack

Trait Implementations

impl<'a> Drawable for Stack[src]

fn register(&mut self)[src]

Register all content. This is mostly just used by [LatexObj]s, that need to be registered before loaded. Read more

fn load(&mut self)[src]

Load all content

fn event(&mut self, e: Event)[src]

When any event occurs

fn update(&mut self, dt: f64)[src]

Tick the object

impl KnownSize for Stack[src]

Auto Trait Implementations

impl !Sync for Stack

impl Unpin for Stack

impl Send for Stack

impl !RefUnwindSafe for Stack

impl !UnwindSafe for Stack

Blanket Implementations

impl<T> Layerable for T where
    T: Drawable
[src]

impl<T> Stackable for T where
    T: Drawable + KnownSize
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,