Enum input::Event [−][src]
pub enum Event {
Input(Input, Option<TimeStamp>),
Loop(Loop),
Custom(EventId, Arc<dyn Any + Send + Sync>, Option<TimeStamp>),
}
Expand description
Models all events.
Variants
Input events.
Time stamp is ignored when comparing input events for equality and order.
Loop(Loop)
Events that commonly used by event loops.
Tuple Fields of Loop
0: Loop
Custom event.
When comparing two custom events for equality,
they always return false
.
When comparing partial order of two custom events,
the event ids are checked and if they are equal it returns None
.
Time stamp is ignored both when comparing custom events for equality and order.
Trait Implementations
Creates an after render event.
Calls closure if this is an after render event.
Returns after render arguments.
Creates a button event. Read more
Calls closure if this is a button event.
Returns button arguments.
Creates a close event from arguments. Read more
Calls closure if this is a close event.
Returns close arguments.
Creates a controller axis event. Read more
Calls closure if this is a controller axis event.
Returns controller axis arguments.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Creates an idle event.
Calls closure if this is an idle event.
Creates a mouse cursor event. Read more
Calls closure if this is a mouse cursor event.
Creates a mouse relative event. Read more
Calls closure if this is a mouse relative event.
Creates a mouse scroll event. Read more
Calls a closure if this is a mouse scroll event.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Creates a render event.
Calls closure if this is a render event.
Returns render arguments.
Creates a resize event. Read more
Calls closure if this is a resize event.
Returns resize arguments.
Creates an update event.
Calls closure if this is an update event.
Returns update arguments.
Auto Trait Implementations
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more