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