pub enum SceneEvent {
WindowResized {
width: u32,
height: u32,
},
GainedFocus,
LostFocus,
Custom(String),
}Expand description
Events that can be passed to scenes.
Variants§
WindowResized
Window was resized.
GainedFocus
Window gained focus.
LostFocus
Window lost focus.
Custom(String)
A custom event with a string tag.
Trait Implementations§
Source§impl Clone for SceneEvent
impl Clone for SceneEvent
Source§fn clone(&self) -> SceneEvent
fn clone(&self) -> SceneEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SceneEvent
impl RefUnwindSafe for SceneEvent
impl Send for SceneEvent
impl Sync for SceneEvent
impl Unpin for SceneEvent
impl UnsafeUnpin for SceneEvent
impl UnwindSafe for SceneEvent
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