Struct x11rb::protocol::xinput::GestureSwipeEventFlags
source · pub struct GestureSwipeEventFlags(/* private fields */);
Implementations§
source§impl GestureSwipeEventFlags
impl GestureSwipeEventFlags
pub const GESTURE_SWIPE_CANCELLED: GestureSwipeEventFlags = _
source§impl GestureSwipeEventFlags
impl GestureSwipeEventFlags
sourcepub 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.
sourcepub 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.
sourcepub fn remove(self, flags: impl Into<u32>) -> GestureSwipeEventFlags
pub fn remove(self, flags: impl Into<u32>) -> GestureSwipeEventFlags
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
source§impl BitAnd<u32> for GestureSwipeEventFlags
impl BitAnd<u32> for GestureSwipeEventFlags
source§impl BitAnd for GestureSwipeEventFlags
impl BitAnd for GestureSwipeEventFlags
§type Output = GestureSwipeEventFlags
type Output = GestureSwipeEventFlags
The resulting type after applying the
&
operator.source§fn bitand(
self,
other: GestureSwipeEventFlags
) -> <GestureSwipeEventFlags as BitAnd>::Output
fn bitand( self, other: GestureSwipeEventFlags ) -> <GestureSwipeEventFlags as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<u32> for GestureSwipeEventFlags
impl BitAndAssign<u32> for GestureSwipeEventFlags
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for GestureSwipeEventFlags
impl BitAndAssign for GestureSwipeEventFlags
source§fn bitand_assign(&mut self, other: GestureSwipeEventFlags)
fn bitand_assign(&mut self, other: GestureSwipeEventFlags)
Performs the
&=
operation. Read moresource§impl BitOr<u32> for GestureSwipeEventFlags
impl BitOr<u32> for GestureSwipeEventFlags
source§impl BitOr for GestureSwipeEventFlags
impl BitOr for GestureSwipeEventFlags
§type Output = GestureSwipeEventFlags
type Output = GestureSwipeEventFlags
The resulting type after applying the
|
operator.source§fn bitor(
self,
other: GestureSwipeEventFlags
) -> <GestureSwipeEventFlags as BitOr>::Output
fn bitor( self, other: GestureSwipeEventFlags ) -> <GestureSwipeEventFlags as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<u32> for GestureSwipeEventFlags
impl BitOrAssign<u32> for GestureSwipeEventFlags
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for GestureSwipeEventFlags
impl BitOrAssign for GestureSwipeEventFlags
source§fn bitor_assign(&mut self, other: GestureSwipeEventFlags)
fn bitor_assign(&mut self, other: GestureSwipeEventFlags)
Performs the
|=
operation. Read moresource§impl Clone for GestureSwipeEventFlags
impl Clone for GestureSwipeEventFlags
source§fn clone(&self) -> GestureSwipeEventFlags
fn clone(&self) -> GestureSwipeEventFlags
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 GestureSwipeEventFlags
impl Debug for GestureSwipeEventFlags
source§impl Default for GestureSwipeEventFlags
impl Default for GestureSwipeEventFlags
source§fn default() -> GestureSwipeEventFlags
fn default() -> GestureSwipeEventFlags
Returns the “default value” for a type. Read more
source§impl From<u16> for GestureSwipeEventFlags
impl From<u16> for GestureSwipeEventFlags
source§fn from(value: u16) -> GestureSwipeEventFlags
fn from(value: u16) -> GestureSwipeEventFlags
Converts to this type from the input type.
source§impl From<u32> for GestureSwipeEventFlags
impl From<u32> for GestureSwipeEventFlags
source§fn from(value: u32) -> GestureSwipeEventFlags
fn from(value: u32) -> GestureSwipeEventFlags
Converts to this type from the input type.
source§impl From<u8> for GestureSwipeEventFlags
impl From<u8> for GestureSwipeEventFlags
source§fn from(value: u8) -> GestureSwipeEventFlags
fn from(value: u8) -> GestureSwipeEventFlags
Converts to this type from the input type.
source§impl Hash for GestureSwipeEventFlags
impl Hash for GestureSwipeEventFlags
source§impl Ord for GestureSwipeEventFlags
impl Ord for GestureSwipeEventFlags
source§fn cmp(&self, other: &GestureSwipeEventFlags) -> Ordering
fn cmp(&self, other: &GestureSwipeEventFlags) -> 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
source§impl PartialEq for GestureSwipeEventFlags
impl PartialEq for GestureSwipeEventFlags
source§fn eq(&self, other: &GestureSwipeEventFlags) -> bool
fn eq(&self, other: &GestureSwipeEventFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GestureSwipeEventFlags
impl PartialOrd for GestureSwipeEventFlags
source§fn partial_cmp(&self, other: &GestureSwipeEventFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &GestureSwipeEventFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for GestureSwipeEventFlags
impl Eq for GestureSwipeEventFlags
impl StructuralEq for GestureSwipeEventFlags
impl StructuralPartialEq for GestureSwipeEventFlags
Auto Trait Implementations§
impl RefUnwindSafe for GestureSwipeEventFlags
impl Send for GestureSwipeEventFlags
impl Sync for GestureSwipeEventFlags
impl Unpin for GestureSwipeEventFlags
impl UnwindSafe for GestureSwipeEventFlags
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