Struct TouchEventFlags
pub struct TouchEventFlags(/* private fields */);
Implementations§
§impl TouchEventFlags
impl TouchEventFlags
pub const TOUCH_PENDING_END: TouchEventFlags = _
pub const TOUCH_EMULATING_POINTER: TouchEventFlags = _
§impl TouchEventFlags
impl TouchEventFlags
pub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn intersects(self, flag: impl Into<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
pub fn remove(self, flags: impl Into<u32>) -> TouchEventFlags
pub fn remove(self, flags: impl Into<u32>) -> TouchEventFlags
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u32> for TouchEventFlags
impl BitAnd<u32> for TouchEventFlags
§impl BitAnd for TouchEventFlags
impl BitAnd for TouchEventFlags
§type Output = TouchEventFlags
type Output = TouchEventFlags
The resulting type after applying the
&
operator.§fn bitand(self, other: TouchEventFlags) -> <TouchEventFlags as BitAnd>::Output
fn bitand(self, other: TouchEventFlags) -> <TouchEventFlags as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for TouchEventFlags
impl BitAndAssign<u32> for TouchEventFlags
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for TouchEventFlags
impl BitAndAssign for TouchEventFlags
§fn bitand_assign(&mut self, other: TouchEventFlags)
fn bitand_assign(&mut self, other: TouchEventFlags)
Performs the
&=
operation. Read more§impl BitOr<u32> for TouchEventFlags
impl BitOr<u32> for TouchEventFlags
§impl BitOr for TouchEventFlags
impl BitOr for TouchEventFlags
§type Output = TouchEventFlags
type Output = TouchEventFlags
The resulting type after applying the
|
operator.§fn bitor(self, other: TouchEventFlags) -> <TouchEventFlags as BitOr>::Output
fn bitor(self, other: TouchEventFlags) -> <TouchEventFlags as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for TouchEventFlags
impl BitOrAssign<u32> for TouchEventFlags
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for TouchEventFlags
impl BitOrAssign for TouchEventFlags
§fn bitor_assign(&mut self, other: TouchEventFlags)
fn bitor_assign(&mut self, other: TouchEventFlags)
Performs the
|=
operation. Read more§impl Clone for TouchEventFlags
impl Clone for TouchEventFlags
§fn clone(&self) -> TouchEventFlags
fn clone(&self) -> TouchEventFlags
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 more§impl Debug for TouchEventFlags
impl Debug for TouchEventFlags
§impl Default for TouchEventFlags
impl Default for TouchEventFlags
§fn default() -> TouchEventFlags
fn default() -> TouchEventFlags
Returns the “default value” for a type. Read more
§impl From<u16> for TouchEventFlags
impl From<u16> for TouchEventFlags
§fn from(value: u16) -> TouchEventFlags
fn from(value: u16) -> TouchEventFlags
Converts to this type from the input type.
§impl From<u32> for TouchEventFlags
impl From<u32> for TouchEventFlags
§fn from(value: u32) -> TouchEventFlags
fn from(value: u32) -> TouchEventFlags
Converts to this type from the input type.
§impl From<u8> for TouchEventFlags
impl From<u8> for TouchEventFlags
§fn from(value: u8) -> TouchEventFlags
fn from(value: u8) -> TouchEventFlags
Converts to this type from the input type.
§impl Hash for TouchEventFlags
impl Hash for TouchEventFlags
§impl Ord for TouchEventFlags
impl Ord for TouchEventFlags
§impl PartialEq for TouchEventFlags
impl PartialEq for TouchEventFlags
§impl PartialOrd for TouchEventFlags
impl PartialOrd for TouchEventFlags
impl Copy for TouchEventFlags
impl Eq for TouchEventFlags
impl StructuralPartialEq for TouchEventFlags
Auto Trait Implementations§
impl Freeze for TouchEventFlags
impl RefUnwindSafe for TouchEventFlags
impl Send for TouchEventFlags
impl Sync for TouchEventFlags
impl Unpin for TouchEventFlags
impl UnwindSafe for TouchEventFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)