Struct PointerEventFlags
pub struct PointerEventFlags(/* private fields */);
Implementations§
§impl PointerEventFlags
impl PointerEventFlags
pub const POINTER_EMULATED: PointerEventFlags = _
§impl PointerEventFlags
impl PointerEventFlags
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>) -> PointerEventFlags
pub fn remove(self, flags: impl Into<u32>) -> PointerEventFlags
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 PointerEventFlags
impl BitAnd<u32> for PointerEventFlags
§impl BitAnd for PointerEventFlags
impl BitAnd for PointerEventFlags
§type Output = PointerEventFlags
type Output = PointerEventFlags
The resulting type after applying the
&
operator.§fn bitand(
self,
other: PointerEventFlags,
) -> <PointerEventFlags as BitAnd>::Output
fn bitand( self, other: PointerEventFlags, ) -> <PointerEventFlags as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for PointerEventFlags
impl BitAndAssign<u32> for PointerEventFlags
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for PointerEventFlags
impl BitAndAssign for PointerEventFlags
§fn bitand_assign(&mut self, other: PointerEventFlags)
fn bitand_assign(&mut self, other: PointerEventFlags)
Performs the
&=
operation. Read more§impl BitOr<u32> for PointerEventFlags
impl BitOr<u32> for PointerEventFlags
§impl BitOr for PointerEventFlags
impl BitOr for PointerEventFlags
§type Output = PointerEventFlags
type Output = PointerEventFlags
The resulting type after applying the
|
operator.§fn bitor(self, other: PointerEventFlags) -> <PointerEventFlags as BitOr>::Output
fn bitor(self, other: PointerEventFlags) -> <PointerEventFlags as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for PointerEventFlags
impl BitOrAssign<u32> for PointerEventFlags
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for PointerEventFlags
impl BitOrAssign for PointerEventFlags
§fn bitor_assign(&mut self, other: PointerEventFlags)
fn bitor_assign(&mut self, other: PointerEventFlags)
Performs the
|=
operation. Read more§impl Clone for PointerEventFlags
impl Clone for PointerEventFlags
§fn clone(&self) -> PointerEventFlags
fn clone(&self) -> PointerEventFlags
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 PointerEventFlags
impl Debug for PointerEventFlags
§impl Default for PointerEventFlags
impl Default for PointerEventFlags
§fn default() -> PointerEventFlags
fn default() -> PointerEventFlags
Returns the “default value” for a type. Read more
§impl From<u16> for PointerEventFlags
impl From<u16> for PointerEventFlags
§fn from(value: u16) -> PointerEventFlags
fn from(value: u16) -> PointerEventFlags
Converts to this type from the input type.
§impl From<u32> for PointerEventFlags
impl From<u32> for PointerEventFlags
§fn from(value: u32) -> PointerEventFlags
fn from(value: u32) -> PointerEventFlags
Converts to this type from the input type.
§impl From<u8> for PointerEventFlags
impl From<u8> for PointerEventFlags
§fn from(value: u8) -> PointerEventFlags
fn from(value: u8) -> PointerEventFlags
Converts to this type from the input type.
§impl Hash for PointerEventFlags
impl Hash for PointerEventFlags
§impl Ord for PointerEventFlags
impl Ord for PointerEventFlags
§fn cmp(&self, other: &PointerEventFlags) -> Ordering
fn cmp(&self, other: &PointerEventFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for PointerEventFlags
impl PartialEq for PointerEventFlags
§impl PartialOrd for PointerEventFlags
impl PartialOrd for PointerEventFlags
impl Copy for PointerEventFlags
impl Eq for PointerEventFlags
impl StructuralPartialEq for PointerEventFlags
Auto Trait Implementations§
impl Freeze for PointerEventFlags
impl RefUnwindSafe for PointerEventFlags
impl Send for PointerEventFlags
impl Sync for PointerEventFlags
impl Unpin for PointerEventFlags
impl UnwindSafe for PointerEventFlags
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
)