Struct ytesrev::empty::Empty [−][src]
pub struct Empty;
An object that contains nothing and doesn't display anything.
This is not very useful on it's own, but when used together with a WithSize
-wrapper, it
can act as a breaker in a Stack
.
Trait Implementations
impl Drawable for Empty
[src]
impl Drawable for Empty
fn content(&self) -> Vec<&Drawable>
[src]
fn content(&self) -> Vec<&Drawable>
What this object contains
fn content_mut(&mut self) -> Vec<&mut Drawable>
[src]
fn content_mut(&mut self) -> Vec<&mut Drawable>
What this object contains, mutably
fn step(&mut self)
[src]
fn step(&mut self)
When the user presses space, the state of the presentation is advanced. This method is what is called. Read more
fn state(&self) -> State
[src]
fn state(&self) -> State
What state the object is in
fn draw(
&self,
_canvas: &mut Canvas<Window>,
_position: &Position,
_settings: DrawSettings
)
[src]
fn draw(
&self,
_canvas: &mut Canvas<Window>,
_position: &Position,
_settings: DrawSettings
)
Draw everything
fn register(&mut self)
[src]
fn register(&mut self)
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]
fn load(&mut self)
Load all content
fn event(&mut self, e: Event)
[src]
fn event(&mut self, e: Event)
When any event occurs
fn update(&mut self, dt: f64)
[src]
fn update(&mut self, dt: f64)
Tick the object