pub struct NativeKeyboardEvent { /* private fields */ }Expand description
Data associated with a keyboard event.
Captures the pressed key, physical code, location, and modifier states.
Implementations§
Source§impl NativeKeyboardEvent
impl NativeKeyboardEvent
pub fn get_key(&self) -> &String
pub fn get_mut_key(&mut self) -> &mut String
pub fn set_key(&mut self, val: String) -> &mut Self
pub fn get_code(&self) -> &String
pub fn get_mut_code(&mut self) -> &mut String
pub fn set_code(&mut self, val: String) -> &mut Self
pub fn get_location(&self) -> &u32
pub fn get_mut_location(&mut self) -> &mut u32
pub fn set_location(&mut self, val: u32) -> &mut Self
pub fn get_ctrl_key(&self) -> &bool
pub fn get_mut_ctrl_key(&mut self) -> &mut bool
pub fn set_ctrl_key(&mut self, val: bool) -> &mut Self
pub fn get_shift_key(&self) -> &bool
pub fn get_mut_shift_key(&mut self) -> &mut bool
pub fn set_shift_key(&mut self, val: bool) -> &mut Self
pub fn get_alt_key(&self) -> &bool
pub fn get_mut_alt_key(&mut self) -> &mut bool
pub fn set_alt_key(&mut self, val: bool) -> &mut Self
pub fn get_meta_key(&self) -> &bool
pub fn get_mut_meta_key(&mut self) -> &mut bool
pub fn set_meta_key(&mut self, val: bool) -> &mut Self
pub fn get_repeat(&self) -> &bool
pub fn get_mut_repeat(&mut self) -> &mut bool
pub fn set_repeat(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Default for NativeKeyboardEvent
impl Default for NativeKeyboardEvent
Source§fn default() -> NativeKeyboardEvent
fn default() -> NativeKeyboardEvent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NativeKeyboardEvent
impl RefUnwindSafe for NativeKeyboardEvent
impl Send for NativeKeyboardEvent
impl Sync for NativeKeyboardEvent
impl Unpin for NativeKeyboardEvent
impl UnsafeUnpin for NativeKeyboardEvent
impl UnwindSafe for NativeKeyboardEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more