Enum allegro::events::Event[][src]

pub enum Event {
    NoEvent,
    DisplayClose {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
    },
    DisplayResize {
        source: *mut ALLEGRO_EVENT_SOURCE,
        x: i32,
        y: i32,
        width: i32,
        height: i32,
        timestamp: f64,
    },
    JoystickAxes {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        id: *mut ALLEGRO_JOYSTICK,
        stick: i32,
        axis: i32,
        pos: f32,
    },
    JoystickButtonDown {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        id: *mut ALLEGRO_JOYSTICK,
        button: i32,
    },
    JoystickButtonUp {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        id: *mut ALLEGRO_JOYSTICK,
        button: i32,
    },
    JoystickConfiguration {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
    },
    KeyDown {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        keycode: KeyCode,
        display: *mut ALLEGRO_DISPLAY,
    },
    KeyUp {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        keycode: KeyCode,
        display: *mut ALLEGRO_DISPLAY,
    },
    KeyChar {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        keycode: KeyCode,
        display: *mut ALLEGRO_DISPLAY,
        unichar: char,
        repeat: bool,
        modifiers: KeyModifier,
    },
    MouseAxes {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        x: i32,
        y: i32,
        z: i32,
        w: i32,
        dx: i32,
        dy: i32,
        dz: i32,
        dw: i32,
        display: *mut ALLEGRO_DISPLAY,
    },
    MouseButtonDown {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        x: i32,
        y: i32,
        z: i32,
        w: i32,
        button: u32,
        display: *mut ALLEGRO_DISPLAY,
    },
    MouseButtonUp {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        x: i32,
        y: i32,
        z: i32,
        w: i32,
        button: u32,
        display: *mut ALLEGRO_DISPLAY,
    },
    MouseWarped {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        x: i32,
        y: i32,
        z: i32,
        w: i32,
        dx: i32,
        dy: i32,
        dz: i32,
        dw: i32,
        display: *mut ALLEGRO_DISPLAY,
    },
    MouseEnterDisplay {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        x: i32,
        y: i32,
        z: i32,
        w: i32,
        display: *mut ALLEGRO_DISPLAY,
    },
    MouseLeaveDisplay {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        x: i32,
        y: i32,
        z: i32,
        w: i32,
        display: *mut ALLEGRO_DISPLAY,
    },
    TimerTick {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        count: i64,
    },
    User {
        source: *mut ALLEGRO_EVENT_SOURCE,
        timestamp: f64,
        data: Rc<dyn Any>,
    },
}

Variants

NoEvent
DisplayClose

Fields of DisplayClose

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64
DisplayResize

Fields of DisplayResize

source: *mut ALLEGRO_EVENT_SOURCEx: i32y: i32width: i32height: i32timestamp: f64
JoystickAxes

Fields of JoystickAxes

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64id: *mut ALLEGRO_JOYSTICKstick: i32axis: i32pos: f32
JoystickButtonDown

Fields of JoystickButtonDown

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64id: *mut ALLEGRO_JOYSTICKbutton: i32
JoystickButtonUp

Fields of JoystickButtonUp

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64id: *mut ALLEGRO_JOYSTICKbutton: i32
JoystickConfiguration

Fields of JoystickConfiguration

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64
KeyDown

Fields of KeyDown

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64keycode: KeyCodedisplay: *mut ALLEGRO_DISPLAY
KeyUp

Fields of KeyUp

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64keycode: KeyCodedisplay: *mut ALLEGRO_DISPLAY
KeyChar

Fields of KeyChar

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64keycode: KeyCodedisplay: *mut ALLEGRO_DISPLAYunichar: charrepeat: boolmodifiers: KeyModifier
MouseAxes

Fields of MouseAxes

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64x: i32y: i32z: i32w: i32dx: i32dy: i32dz: i32dw: i32display: *mut ALLEGRO_DISPLAY
MouseButtonDown

Fields of MouseButtonDown

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64x: i32y: i32z: i32w: i32button: u32display: *mut ALLEGRO_DISPLAY
MouseButtonUp

Fields of MouseButtonUp

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64x: i32y: i32z: i32w: i32button: u32display: *mut ALLEGRO_DISPLAY
MouseWarped

Fields of MouseWarped

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64x: i32y: i32z: i32w: i32dx: i32dy: i32dz: i32dw: i32display: *mut ALLEGRO_DISPLAY
MouseEnterDisplay

Fields of MouseEnterDisplay

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64x: i32y: i32z: i32w: i32display: *mut ALLEGRO_DISPLAY
MouseLeaveDisplay

Fields of MouseLeaveDisplay

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64x: i32y: i32z: i32w: i32display: *mut ALLEGRO_DISPLAY
TimerTick

Fields of TimerTick

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64count: i64
User

Fields of User

source: *mut ALLEGRO_EVENT_SOURCEtimestamp: f64data: Rc<dyn Any>

Trait Implementations

impl Debug for Event[src]

Auto Trait Implementations

impl !RefUnwindSafe for Event

impl !Send for Event

impl !Sync for Event

impl Unpin for Event

impl !UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.