Struct oxid::wasm::oxid_event
source · [−]#[repr(C)]pub struct oxid_event {Show 19 fields
pub frame_count: u64,
pub type_: oxid_event_type,
pub key_code: oxid_keycode,
pub char_code: u32,
pub key_repeat: bool,
pub modifiers: u32,
pub mouse_button: oxid_mousebutton,
pub mouse_x: f32,
pub mouse_y: f32,
pub mouse_dx: f32,
pub mouse_dy: f32,
pub scroll_x: f32,
pub scroll_y: f32,
pub num_touches: c_int,
pub touches: [oxid_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: u64
type_: oxid_event_type
key_code: oxid_keycode
char_code: u32
key_repeat: bool
modifiers: u32
mouse_x: f32
mouse_y: f32
mouse_dx: f32
mouse_dy: f32
scroll_x: f32
scroll_y: f32
num_touches: c_int
touches: [oxid_touchpoint; 8]
window_width: c_int
window_height: c_int
framebuffer_width: c_int
framebuffer_height: c_int
Trait Implementations
sourceimpl Clone for oxid_event
impl Clone for oxid_event
sourcefn clone(&self) -> oxid_event
fn clone(&self) -> oxid_event
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for oxid_event
impl Debug for oxid_event
impl Copy for oxid_event
Auto Trait Implementations
impl RefUnwindSafe for oxid_event
impl Send for oxid_event
impl Sync for oxid_event
impl Unpin for oxid_event
impl UnwindSafe for oxid_event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more