pub enum Event {
    TouchBegin {
        id: usize,
        position: LocalPoint,
    },
    TouchMove {
        id: usize,
        position: LocalPoint,
    },
    TouchEnd {
        id: usize,
        position: LocalPoint,
    },
    Command(String),
    Key(Key),
    Anim,
}
Expand description

User interface event.

Variants

TouchBegin

Fields

id: usize

Identifies a touch so we can track it.

position: LocalPoint

Touch event, or mouse down.

TouchMove

Fields

id: usize

Identifies a touch so we can track it.

position: LocalPoint

Touch moved or mouse moved while down.

TouchEnd

Fields

id: usize

Identifies a touch so we can track it.

position: LocalPoint

Touch went up or mouse button released.

Command(String)

Menu command.

Key(Key)

Key press.

Anim

Animation.

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.