pub struct KeyData {
pub key: Key,
pub key_state: KeyState,
}Expand description
height-level key data wrapper
Fields§
§key: Key§key_state: KeyStateImplementations§
Source§impl KeyData
impl KeyData
pub fn function_enable(&self) -> bool
pub fn r_shift(&self) -> bool
pub fn l_shift(&self) -> bool
pub fn shift(&self) -> bool
pub fn r_ctrl(&self) -> bool
pub fn l_ctrl(&self) -> bool
pub fn ctrl(&self) -> bool
pub fn r_alt(&self) -> bool
pub fn l_alt(&self) -> bool
pub fn alt(&self) -> bool
pub fn r_logo(&self) -> bool
pub fn l_logo(&self) -> bool
pub fn logo(&self) -> bool
pub fn sys_req(&self) -> bool
pub fn toggle_enable(&self) -> bool
pub fn is_realtime(&self) -> bool
pub fn scroll_lock(&self) -> bool
pub fn num_lock(&self) -> bool
pub fn caps_lock(&self) -> bool
Trait Implementations§
Source§impl From<KeyData> for RawKeyData
reverse conversion to C struct
impl From<KeyData> for RawKeyData
reverse conversion to C struct
Source§impl From<RawKeyData> for KeyData
forward conversion to Rust struct
impl From<RawKeyData> for KeyData
forward conversion to Rust struct
Source§fn from(raw: RawKeyData) -> Self
fn from(raw: RawKeyData) -> Self
Converts to this type from the input type.
impl Copy for KeyData
Auto Trait Implementations§
impl Freeze for KeyData
impl RefUnwindSafe for KeyData
impl Send for KeyData
impl Sync for KeyData
impl Unpin for KeyData
impl UnwindSafe for KeyData
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