pub enum EventOption {
Show 17 variants Key(KeyEvent), TextInput(TextInputEvent), Mouse(MouseEvent), MouseRelative(MouseRelativeEvent), Button(ButtonEvent), Scroll(ScrollEvent), Quit(QuitEvent), Focus(FocusEvent), Move(MoveEvent), Resize(ResizeEvent), Screen(ScreenEvent), Clipboard(ClipboardEvent), ClipboardUpdate(ClipboardUpdateEvent), Drop(DropEvent), Hover(HoverEvent), Unknown(Event), None,
}
Expand description

An optional event

Variants§

§

Key(KeyEvent)

A key event

§

TextInput(TextInputEvent)

A text input event

§

Mouse(MouseEvent)

A mouse event (absolute)

§

MouseRelative(MouseRelativeEvent)

A mouse event (relative)

§

Button(ButtonEvent)

A mouse button event

§

Scroll(ScrollEvent)

A mouse scroll event

§

Quit(QuitEvent)

A quit request event

§

Focus(FocusEvent)

A focus event

§

Move(MoveEvent)

A move event

§

Resize(ResizeEvent)

A resize event

§

Screen(ScreenEvent)

A screen report event

§

Clipboard(ClipboardEvent)

A clipboard event

§

ClipboardUpdate(ClipboardUpdateEvent)

A clipboard update event

§

Drop(DropEvent)

A drop file / text event (available on linux, windows and macOS)

§

Hover(HoverEvent)

A hover event

§

Unknown(Event)

An unknown event

§

None

No event

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.