pub enum ScreenCommand {
Show(AssetId),
Hide,
Toggle(AssetId),
Push(AssetId),
Clear,
}Expand description
Runtime-only event sent by UiInputSystem when a screen:* action fires.
UiInputSystem reads these from its Events<ScreenCommand> queue on the next
step and applies the stack transition. World authors never declare this type
directly.
Variants§
Show(AssetId)
Replace the top of the stack (menu navigation).
Hide
Pop the top of the stack, revealing what was beneath.
Toggle(AssetId)
Pop if the screen is topmost, push it otherwise.
Push(AssetId)
Push on top of whatever is already showing.
Clear
Empty the stack (a scene change dismisses every open screen).
Trait Implementations§
Source§impl Clone for ScreenCommand
impl Clone for ScreenCommand
Source§fn clone(&self) -> ScreenCommand
fn clone(&self) -> ScreenCommand
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 moreSource§impl Debug for ScreenCommand
impl Debug for ScreenCommand
Source§impl Default for ScreenCommand
impl Default for ScreenCommand
Source§fn default() -> ScreenCommand
fn default() -> ScreenCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreenCommand
impl RefUnwindSafe for ScreenCommand
impl Send for ScreenCommand
impl Sync for ScreenCommand
impl Unpin for ScreenCommand
impl UnsafeUnpin for ScreenCommand
impl UnwindSafe for ScreenCommand
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