Struct amethyst_ui::UiEvent [−][src]
pub struct UiEvent { pub event_type: UiEventType, pub target: Entity, }
A ui event instance.
Fields
event_type: UiEventType
The type of ui event.
target: Entity
The entity on which the event happened.
Methods
impl UiEvent
[src]
impl UiEvent
pub fn new(event_type: UiEventType, target: Entity) -> Self
[src]
pub fn new(event_type: UiEventType, target: Entity) -> Self
Creates a new UiEvent.