Struct android_activity::input::MetaState
source · pub struct MetaState(pub u32);
Expand description
A bitfield representing the state of modifier keys during an event.
See the NDK docs
Tuple Fields§
§0: u32
Implementations§
source§impl MetaState
impl MetaState
pub fn alt_on(self) -> bool
pub fn alt_left_on(self) -> bool
pub fn alt_right_on(self) -> bool
pub fn shift_on(self) -> bool
pub fn shift_left_on(self) -> bool
pub fn shift_right_on(self) -> bool
pub fn sym_on(self) -> bool
pub fn function_on(self) -> bool
pub fn ctrl_on(self) -> bool
pub fn ctrl_left_on(self) -> bool
pub fn ctrl_right_on(self) -> bool
pub fn meta_on(self) -> bool
pub fn meta_left_on(self) -> bool
pub fn meta_right_on(self) -> bool
pub fn caps_lock_on(self) -> bool
pub fn num_lock_on(self) -> bool
pub fn scroll_lock_on(self) -> bool
Trait Implementations§
source§impl PartialEq for MetaState
impl PartialEq for MetaState
impl Copy for MetaState
impl Eq for MetaState
impl StructuralPartialEq for MetaState
Auto Trait Implementations§
impl Freeze for MetaState
impl RefUnwindSafe for MetaState
impl Send for MetaState
impl Sync for MetaState
impl Unpin for MetaState
impl UnwindSafe for MetaState
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