pub struct Stack {
pub margin: u32,
pub orientation: Orientation,
pub positioning: ElementPositioning,
pub update_seq: bool,
pub content: Vec<Box<dyn Stackable>>,
}
Expand description
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
Implementations
Trait Implementations
sourceimpl<'a> Drawable for Stack
impl<'a> Drawable for Stack
sourcefn content_mut(&mut self) -> Vec<&mut dyn Drawable>
fn content_mut(&mut self) -> Vec<&mut dyn Drawable>
What this object contains, mutably
sourcefn draw(&self, canvas: &mut Canvas<Window>, pos: &Position, settings: DrawSettings)
fn draw(&self, canvas: &mut Canvas<Window>, pos: &Position, settings: DrawSettings)
Draw everything
sourcefn step(&mut self)
fn step(&mut self)
When the user presses space, the state of the presentation is advanced. This
method is what is called. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Stack
impl Send for Stack
impl !Sync for Stack
impl Unpin for Stack
impl !UnwindSafe for Stack
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