Struct android_activity::input::KeyEventFlags
source · pub struct KeyEventFlags(pub u32);
Expand description
Flags associated with KeyEvent
.
See the NDK docs
Tuple Fields§
§0: u32
Implementations§
source§impl KeyEventFlags
impl KeyEventFlags
pub fn cancelled(&self) -> bool
pub fn cancelled_long_press(&self) -> bool
pub fn editor_action(&self) -> bool
pub fn fallback(&self) -> bool
pub fn from_system(&self) -> bool
pub fn keep_touch_mode(&self) -> bool
pub fn long_press(&self) -> bool
pub fn soft_keyboard(&self) -> bool
pub fn tracking(&self) -> bool
pub fn virtual_hard_key(&self) -> bool
pub fn woke_here(&self) -> bool
Trait Implementations§
source§impl Clone for KeyEventFlags
impl Clone for KeyEventFlags
source§fn clone(&self) -> KeyEventFlags
fn clone(&self) -> KeyEventFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyEventFlags
impl Debug for KeyEventFlags
source§impl From<KeyEventFlags> for KeyEventFlags
impl From<KeyEventFlags> for KeyEventFlags
source§fn from(value: KeyEventFlags) -> Self
fn from(value: KeyEventFlags) -> Self
Converts to this type from the input type.
source§impl PartialEq for KeyEventFlags
impl PartialEq for KeyEventFlags
source§fn eq(&self, other: &KeyEventFlags) -> bool
fn eq(&self, other: &KeyEventFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for KeyEventFlags
impl Eq for KeyEventFlags
impl StructuralPartialEq for KeyEventFlags
Auto Trait Implementations§
impl RefUnwindSafe for KeyEventFlags
impl Send for KeyEventFlags
impl Sync for KeyEventFlags
impl Unpin for KeyEventFlags
impl UnwindSafe for KeyEventFlags
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