Struct tuix_internal::events::Event [−][src]
pub struct Event {
pub origin: Entity,
pub target: Entity,
pub propagation: Propagation,
pub consumable: bool,
pub unique: bool,
pub order: i32,
pub message: Box<dyn Message + 'static, Global>,
// some fields omitted
}
Expand description
An event is a wrapper around a message and provides metadata on how the event should be propagated through the tree
Fields
origin: Entity
target: Entity
propagation: Propagation
consumable: bool
unique: bool
order: i32
message: Box<dyn Message + 'static, Global>
Implementations
Creates a new event with a specified message
Specifies that the event is unique (only one of this event type should exist in the event queue at once)
Sets the propagation of the event