Enum dmc::event::Event [] [src]

pub enum Event {
    AudioOutputDeviceAdded,
    AudioOutputDeviceRemoved,
    AudioCaptureDeviceAdded,
    AudioCaptureDeviceRemoved,
    ControllerAxisMotion {
        axis_id: u32,
        axis: Vec2<i32>,
    },
    ControllerButtonPressed {
        controller_id: u32,
        button: u32,
    },
    ControllerButtonReleased {
        controller_id: u32,
        button: u32,
    },
    ControllerTrackballMotion {
        controller_id: u32,
        ball_index: u8,
        motion: Vec2<i32>,
    },
    ControllerAdded {
        controller_id: u32,
    },
    ControllerRemoved {
        controller_id: u32,
    },
    ControllerRemapped {
        controller_id: u32,
    },
    DollarGesture {
        touch_device_id: u32,
        gesture_id: u32,
        finger_count: u8,
        error: f32,
        normalized_center: Vec2<f32>,
    },
    DragAndDropBegin,
    DragAndDropCancel,
    DragAndDropFile {
        file_path: String,
    },
    DragAndDropText {
        text: String,
    },
    DragAndDropRawData {
        text: Vec<u8>,
    },
    FingerPressed {
        touch_id: u32,
        finger_id: u32,
        normalized_position: Vec2<f32>,
        pressure: f32,
    },
    FingerReleased {
        touch_id: u32,
        finger_id: u32,
        normalized_position: Vec2<f32>,
        pressure: f32,
    },
    FingerMotion {
        touch_id: u32,
        finger_id: u32,
        normalized_motion: Vec2<f32>,
        pressure: f32,
    },
    KeyPressed {
        window_id: Option<u32>,
        is_repeat: bool,
        vkey: VKey,
        key: Key,
    },
    KeyReleased {
        window_id: Option<u32>,
        is_repeat: bool,
        vkey: VKey,
        key: Key,
    },
    MouseButtonPressed {
        window_id: Option<u32>,
        mouse: u32,
        click: Click,
        button: MouseButton,
    },
    MouseButtonReleased {
        window_id: Option<u32>,
        mouse: u32,
        click: Click,
        button: MouseButton,
    },
    MouseMotion {
        window_id: Option<u32>,
        mouse: u32,
        new_position: Vec2<i32>,
    },
    MouseScroll {
        window_id: Option<u32>,
        mouse: u32,
        scroll: Vec2<i32>,
    },
    MultiGesture {
        touch_id: u32,
        theta: f32,
        dist: f32,
        normalized_center: Vec2<f32>,
        finger_count: u8,
    },
    WindowShown {
        window_id: u32,
    },
    WindowHidden {
        window_id: u32,
    },
    WindowShouldRedrawItself {
        window_id: u32,
    },
    WindowMoved {
        window_id: u32,
        position: Extent2<u32>,
    },
    WindowResized {
        window_id: u32,
        size: Extent2<u32>,
        by_user: bool,
    },
    WindowMinimized {
        window_id: u32,
    },
    WindowMaximized {
        window_id: u32,
    },
    WindowRestored {
        window_id: u32,
    },
    WindowGainedMouseFocus {
        window_id: u32,
    },
    WindowLostMouseFocus {
        window_id: u32,
    },
    WindowGainedKeyboardFocus {
        window_id: u32,
    },
    WindowLostKeyboardFocus {
        window_id: u32,
    },
    WindowCloseRequested {
        window_id: u32,
    },
    Quit,
    AppTerminating,
    AppLowMemory,
    AppEnteringBackground,
    AppEnteredBackground,
    AppEnteringForeground,
    AppEnteredForeground,
    KeymapChanged,
    ClipboardChanged,
    RenderTargetReset,
    DisplayLost,
    TextInput,
}

Variants

Fields of ControllerAxisMotion

Fields of ControllerButtonPressed

Fields of ControllerButtonReleased

Fields of ControllerTrackballMotion

Fields of ControllerAdded

Fields of ControllerRemoved

Fields of ControllerRemapped

Fields of DollarGesture

Fields of DragAndDropFile

Fields of DragAndDropText

Fields of DragAndDropRawData

Fields of FingerPressed

Fields of FingerReleased

Fields of FingerMotion

Fields of KeyPressed

Fields of KeyReleased

Fields of MouseButtonPressed

Fields of MouseButtonReleased

Fields of MouseMotion

Fields of MouseScroll

Fields of MultiGesture

Fields of WindowShown

Fields of WindowHidden

Fields of WindowShouldRedrawItself

Fields of WindowMoved

Fields of WindowResized

Fields of WindowMinimized

Fields of WindowMaximized

Fields of WindowRestored

Fields of WindowGainedMouseFocus

Fields of WindowLostMouseFocus

Fields of WindowGainedKeyboardFocus

Fields of WindowLostKeyboardFocus

Fields of WindowCloseRequested

The text input buffer was updated ! Use get_text_input_buffer().

Trait Implementations

impl Debug for Event
[src]

Formats the value using the given formatter.

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. 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 !=.