Enum winit::Event [] [src]

pub enum Event {
    Resized(u32u32),
    Moved(i32i32),
    Closed,
    DroppedFile(PathBuf),
    ReceivedCharacter(char),
    Focused(bool),
    KeyboardInput(ElementStateScanCodeOption<VirtualKeyCode>),
    MouseMoved(i32i32),
    MouseEntered,
    MouseLeft,
    MouseWheel(MouseScrollDeltaTouchPhase),
    MouseInput(ElementStateMouseButton),
    TouchpadPressure(f32i64),
    Awakened,
    Refresh,
    Suspended(bool),
    Touch(Touch),
}

Variants

The size of the window has changed.

The position of the window has changed.

The window has been closed.

A file has been dropped into the window.

The window received a unicode character.

The window gained or lost focus.

The parameter is true if the window has gained focus, and false if it has lost focus.

An event from the keyboard has been received.

The cursor has moved on the window.

The parameter are the (x,y) coords in pixels relative to the top-left corner of the window.

The cursor has entered the window.

The cursor has left the window.

A mouse wheel movement or touchpad scroll occurred.

An event from the mouse has been received.

Touchpad pressure event.

At the moment, only supported on Apple forcetouch-capable macbooks. The parameters are: pressure level (value between 0 and 1 representing how hard the touchpad is being pressed) and stage (integer representing the click level).

The event loop was woken up by another thread.

The window needs to be redrawn.

App has been suspended or resumed.

The parameter is true if app was suspended, and false if it has been resumed.

Touch event has been received

Trait Implementations

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Event
[src]

Formats the value using the given formatter.