#[repr(C)]
pub struct sapp_event {
Show 19 fields pub frame_count: u64, pub type_: sapp_event_type, pub key_code: sapp_keycode, pub char_code: u32, pub key_repeat: bool, pub modifiers: u32, pub mouse_button: sapp_mousebutton, pub mouse_x: c_float, pub mouse_y: c_float, pub mouse_dx: c_float, pub mouse_dy: c_float, pub scroll_x: c_float, pub scroll_y: c_float, pub num_touches: c_int, pub touches: [sapp_touchpoint; 8], pub window_width: c_int, pub window_height: c_int, pub framebuffer_width: c_int, pub framebuffer_height: c_int,
}

Fields

frame_count: u64type_: sapp_event_typekey_code: sapp_keycodechar_code: u32key_repeat: boolmodifiers: u32mouse_button: sapp_mousebuttonmouse_x: c_floatmouse_y: c_floatmouse_dx: c_floatmouse_dy: c_floatscroll_x: c_floatscroll_y: c_floatnum_touches: c_inttouches: [sapp_touchpoint; 8]window_width: c_intwindow_height: c_intframebuffer_width: c_intframebuffer_height: c_int

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.