Enum rinwindow::events::Event[][src]

pub enum Event {
    MousePressed {
        pos: Pnt2<f64>,
        button: MouseButton,
        mods: KeyModifiers,
    },
    MouseReleased {
        pos: Pnt2<f64>,
        button: MouseButton,
        mods: KeyModifiers,
    },
    MouseMoved {
        pos: Pnt2<f64>,
    },
    Scroll {
        scroll: Vec2<f64>,
    },
    KeyPressed {
        key: Key,
        mods: KeyModifiers,
        repeat: bool,
    },
    KeyReleased {
        key: Key,
    },
    Char {
        character: char,
    },
    WindowMoved {
        pos: Pnt2<i32>,
    },
    WindowResized {
        size: Vec2<i32>,
    },
    WindowClosing,
    Dropped {
        paths: Vec<PathBuf>,
    },
    Update {
        delta: f64,
    },
    FocusLost,
    FocusGained,
}

Variants

Fields of MousePressed

Fields of MouseReleased

Fields of MouseMoved

Fields of Scroll

Fields of KeyPressed

Fields of KeyReleased

Fields of Char

Fields of WindowMoved

Fields of WindowResized

Fields of Dropped

Fields of Update

Methods

impl Event
[src]

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. Read more

impl PartialEq for Event
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Event

impl Sync for Event