Trait bevy::prelude::Event

source ·
pub trait Event: Send + Sync + 'static { }
Expand description

A type that can be stored in an Events<E> resource You can conveniently access events using the EventReader and EventWriter system parameter.

Events must be thread-safe.

Implementors§

source§

impl Event for HierarchyEvent
where HierarchyEvent: Send + Sync + 'static,

source§

impl Event for GamepadEvent
where GamepadEvent: Send + Sync + 'static,

source§

impl Event for GamepadRumbleRequest
where GamepadRumbleRequest: Send + Sync + 'static,

source§

impl Event for ApplicationLifetime
where ApplicationLifetime: Send + Sync + 'static,

source§

impl Event for FileDragAndDrop
where FileDragAndDrop: Send + Sync + 'static,

source§

impl Event for Ime
where Ime: Send + Sync + 'static,

source§

impl Event for ActionRequest
where ActionRequest: Send + Sync + 'static,

source§

impl Event for AppExit
where AppExit: Send + Sync + 'static,

source§

impl Event for UntypedAssetLoadFailedEvent

source§

impl Event for RemovedComponentEntity
where RemovedComponentEntity: Send + Sync + 'static,

source§

impl Event for GamepadAxisChangedEvent
where GamepadAxisChangedEvent: Send + Sync + 'static,

source§

impl Event for GamepadButtonChangedEvent
where GamepadButtonChangedEvent: Send + Sync + 'static,

source§

impl Event for GamepadButtonInput
where GamepadButtonInput: Send + Sync + 'static,

source§

impl Event for GamepadConnectionEvent
where GamepadConnectionEvent: Send + Sync + 'static,

source§

impl Event for KeyboardInput
where KeyboardInput: Send + Sync + 'static,

source§

impl Event for MouseButtonInput
where MouseButtonInput: Send + Sync + 'static,

source§

impl Event for MouseMotion
where MouseMotion: Send + Sync + 'static,

source§

impl Event for MouseWheel
where MouseWheel: Send + Sync + 'static,

source§

impl Event for TouchInput
where TouchInput: Send + Sync + 'static,

source§

impl Event for TouchpadMagnify
where TouchpadMagnify: Send + Sync + 'static,

source§

impl Event for TouchpadRotate
where TouchpadRotate: Send + Sync + 'static,

source§

impl Event for SceneInstanceReady
where SceneInstanceReady: Send + Sync + 'static,

source§

impl Event for CursorEntered
where CursorEntered: Send + Sync + 'static,

source§

impl Event for CursorLeft
where CursorLeft: Send + Sync + 'static,

source§

impl Event for CursorMoved
where CursorMoved: Send + Sync + 'static,

source§

impl Event for ReceivedCharacter
where ReceivedCharacter: Send + Sync + 'static,

source§

impl Event for RequestRedraw
where RequestRedraw: Send + Sync + 'static,

source§

impl Event for WindowBackendScaleFactorChanged

source§

impl Event for WindowCloseRequested
where WindowCloseRequested: Send + Sync + 'static,

source§

impl Event for WindowClosed
where WindowClosed: Send + Sync + 'static,

source§

impl Event for WindowCreated
where WindowCreated: Send + Sync + 'static,

source§

impl Event for WindowDestroyed
where WindowDestroyed: Send + Sync + 'static,

source§

impl Event for WindowFocused
where WindowFocused: Send + Sync + 'static,

source§

impl Event for WindowMoved
where WindowMoved: Send + Sync + 'static,

source§

impl Event for WindowOccluded
where WindowOccluded: Send + Sync + 'static,

source§

impl Event for WindowResized
where WindowResized: Send + Sync + 'static,

source§

impl Event for WindowScaleFactorChanged
where WindowScaleFactorChanged: Send + Sync + 'static,

source§

impl Event for WindowThemeChanged
where WindowThemeChanged: Send + Sync + 'static,

source§

impl<A> Event for AssetEvent<A>
where A: Asset, AssetEvent<A>: Send + Sync + 'static,

source§

impl<A> Event for AssetLoadFailedEvent<A>
where A: Asset, AssetLoadFailedEvent<A>: Send + Sync + 'static,

source§

impl<S> Event for StateTransitionEvent<S>
where S: States, StateTransitionEvent<S>: Send + Sync + 'static,