Struct x11rb::protocol::xinput::XIEventMask
source · pub struct XIEventMask(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl XIEventMask
impl XIEventMask
pub const DEVICE_CHANGED: XIEventMask = _
pub const KEY_PRESS: XIEventMask = _
pub const KEY_RELEASE: XIEventMask = _
pub const BUTTON_PRESS: XIEventMask = _
pub const BUTTON_RELEASE: XIEventMask = _
pub const MOTION: XIEventMask = _
pub const ENTER: XIEventMask = _
pub const LEAVE: XIEventMask = _
pub const FOCUS_IN: XIEventMask = _
pub const FOCUS_OUT: XIEventMask = _
pub const HIERARCHY: XIEventMask = _
pub const PROPERTY: XIEventMask = _
pub const RAW_KEY_PRESS: XIEventMask = _
pub const RAW_KEY_RELEASE: XIEventMask = _
pub const RAW_BUTTON_PRESS: XIEventMask = _
pub const RAW_BUTTON_RELEASE: XIEventMask = _
pub const RAW_MOTION: XIEventMask = _
pub const TOUCH_BEGIN: XIEventMask = _
pub const TOUCH_UPDATE: XIEventMask = _
pub const TOUCH_END: XIEventMask = _
pub const TOUCH_OWNERSHIP: XIEventMask = _
pub const RAW_TOUCH_BEGIN: XIEventMask = _
pub const RAW_TOUCH_UPDATE: XIEventMask = _
pub const RAW_TOUCH_END: XIEventMask = _
pub const BARRIER_HIT: XIEventMask = _
pub const BARRIER_LEAVE: XIEventMask = _
source§impl XIEventMask
impl XIEventMask
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>) -> XIEventMask
pub fn remove(self, flags: impl Into<u32>) -> XIEventMask
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 XIEventMask
impl BitAnd<u32> for XIEventMask
source§impl BitAnd for XIEventMask
impl BitAnd for XIEventMask
§type Output = XIEventMask
type Output = XIEventMask
The resulting type after applying the
&
operator.source§fn bitand(self, other: XIEventMask) -> <XIEventMask as BitAnd>::Output
fn bitand(self, other: XIEventMask) -> <XIEventMask as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<u32> for XIEventMask
impl BitAndAssign<u32> for XIEventMask
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for XIEventMask
impl BitAndAssign for XIEventMask
source§fn bitand_assign(&mut self, other: XIEventMask)
fn bitand_assign(&mut self, other: XIEventMask)
Performs the
&=
operation. Read moresource§impl BitOr<u32> for XIEventMask
impl BitOr<u32> for XIEventMask
source§impl BitOr for XIEventMask
impl BitOr for XIEventMask
§type Output = XIEventMask
type Output = XIEventMask
The resulting type after applying the
|
operator.source§fn bitor(self, other: XIEventMask) -> <XIEventMask as BitOr>::Output
fn bitor(self, other: XIEventMask) -> <XIEventMask as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<u32> for XIEventMask
impl BitOrAssign<u32> for XIEventMask
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for XIEventMask
impl BitOrAssign for XIEventMask
source§fn bitor_assign(&mut self, other: XIEventMask)
fn bitor_assign(&mut self, other: XIEventMask)
Performs the
|=
operation. Read moresource§impl Clone for XIEventMask
impl Clone for XIEventMask
source§fn clone(&self) -> XIEventMask
fn clone(&self) -> XIEventMask
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 XIEventMask
impl Debug for XIEventMask
source§impl Default for XIEventMask
impl Default for XIEventMask
source§fn default() -> XIEventMask
fn default() -> XIEventMask
Returns the “default value” for a type. Read more
source§impl From<u16> for XIEventMask
impl From<u16> for XIEventMask
source§fn from(value: u16) -> XIEventMask
fn from(value: u16) -> XIEventMask
Converts to this type from the input type.
source§impl From<u32> for XIEventMask
impl From<u32> for XIEventMask
source§fn from(value: u32) -> XIEventMask
fn from(value: u32) -> XIEventMask
Converts to this type from the input type.
source§impl From<u8> for XIEventMask
impl From<u8> for XIEventMask
source§fn from(value: u8) -> XIEventMask
fn from(value: u8) -> XIEventMask
Converts to this type from the input type.
source§impl Hash for XIEventMask
impl Hash for XIEventMask
source§impl Ord for XIEventMask
impl Ord for XIEventMask
source§fn cmp(&self, other: &XIEventMask) -> Ordering
fn cmp(&self, other: &XIEventMask) -> 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 XIEventMask
impl PartialEq for XIEventMask
source§fn eq(&self, other: &XIEventMask) -> bool
fn eq(&self, other: &XIEventMask) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for XIEventMask
impl PartialOrd for XIEventMask
source§fn partial_cmp(&self, other: &XIEventMask) -> Option<Ordering>
fn partial_cmp(&self, other: &XIEventMask) -> 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 XIEventMask
impl Eq for XIEventMask
impl StructuralPartialEq for XIEventMask
Auto Trait Implementations§
impl Freeze for XIEventMask
impl RefUnwindSafe for XIEventMask
impl Send for XIEventMask
impl Sync for XIEventMask
impl Unpin for XIEventMask
impl UnwindSafe for XIEventMask
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