pub struct ScreenShown {
pub screen: AssetId,
}Expand description
Runtime-only event sent by UiInputSystem whenever a screen reaches the top
of the stack: the initial screen at world start, a screen:show /
screen:push / screen:toggle navigation, or a pop revealing the screen
beneath. Read by AudioSystem to fire AudioCues. World authors never declare
this type directly.
Fields§
§screen: AssetIdThe screen that reached the top of the stack.
Trait Implementations§
Source§impl Clone for ScreenShown
impl Clone for ScreenShown
Source§fn clone(&self) -> ScreenShown
fn clone(&self) -> ScreenShown
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 moreimpl Copy for ScreenShown
Source§impl Debug for ScreenShown
impl Debug for ScreenShown
Source§impl Default for ScreenShown
impl Default for ScreenShown
Source§fn default() -> ScreenShown
fn default() -> ScreenShown
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreenShown
impl RefUnwindSafe for ScreenShown
impl Send for ScreenShown
impl Sync for ScreenShown
impl Unpin for ScreenShown
impl UnsafeUnpin for ScreenShown
impl UnwindSafe for ScreenShown
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