#[repr(C)]
pub struct NSTDEventData { pub event: NSTDEvent, pub mouse_delta: [c_double; 2], pub size: [u32; 2], pub pos: [i32; 2], pub window_id: NSTDWindowID, pub raw_input: NSTDRawInput, pub touch_state: NSTDTouchState, pub mouse_button_event: NSTDMouseButtonEvent, pub key: NSTDKeyEvent, pub mod_keys: u8, pub has_focus: i8, }
Expand description

Holds an event’s data.

Fields

event: NSTDEventmouse_delta: [c_double; 2]size: [u32; 2]pos: [i32; 2]window_id: NSTDWindowIDraw_input: NSTDRawInputtouch_state: NSTDTouchStatemouse_button_event: NSTDMouseButtonEventkey: NSTDKeyEventmod_keys: u8has_focus: i8

Trait Implementations

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.