[][src]Struct sokol::app::SAppEvent

pub struct SAppEvent {
    pub event_type: SAppEventType,
    pub frame_count: u32,
    pub key_code: SAppKeycode,
    pub char_code: u32,
    pub modifiers: SAppModifier,
    pub mouse_button: SAppMouseButton,
    pub mouse_x: f32,
    pub mouse_y: f32,
    pub scroll_x: f32,
    pub scroll_y: f32,
    pub num_touches: i32,
    pub touches: [SAppTouchPoint; 8],
    pub window_width: i32,
    pub window_height: i32,
    pub framebuffer_width: i32,
    pub framebuffer_height: i32,
}

Fields

event_type: SAppEventTypeframe_count: u32key_code: SAppKeycodechar_code: u32modifiers: SAppModifiermouse_button: SAppMouseButtonmouse_x: f32mouse_y: f32scroll_x: f32scroll_y: f32num_touches: i32touches: [SAppTouchPoint; 8]window_width: i32window_height: i32framebuffer_width: i32framebuffer_height: i32

Trait Implementations

impl Debug for SAppEvent[src]

Auto Trait Implementations

impl Send for SAppEvent

impl Sync for SAppEvent

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.