Struct x11rb_protocol::protocol::xinput::XIEventMask
source · pub struct XIEventMask(/* private fields */);
Implementations§
source§impl XIEventMask
impl XIEventMask
pub const DEVICE_CHANGED: Self = _
pub const KEY_PRESS: Self = _
pub const KEY_RELEASE: Self = _
pub const BUTTON_PRESS: Self = _
pub const BUTTON_RELEASE: Self = _
pub const MOTION: Self = _
pub const ENTER: Self = _
pub const LEAVE: Self = _
pub const FOCUS_IN: Self = _
pub const FOCUS_OUT: Self = _
pub const HIERARCHY: Self = _
pub const PROPERTY: Self = _
pub const RAW_KEY_PRESS: Self = _
pub const RAW_KEY_RELEASE: Self = _
pub const RAW_BUTTON_PRESS: Self = _
pub const RAW_BUTTON_RELEASE: Self = _
pub const RAW_MOTION: Self = _
pub const TOUCH_BEGIN: Self = _
pub const TOUCH_UPDATE: Self = _
pub const TOUCH_END: Self = _
pub const TOUCH_OWNERSHIP: Self = _
pub const RAW_TOUCH_BEGIN: Self = _
pub const RAW_TOUCH_UPDATE: Self = _
pub const RAW_TOUCH_END: Self = _
pub const BARRIER_HIT: Self = _
pub const BARRIER_LEAVE: Self = _
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.
Trait Implementations§
source§impl BitAnd<XIEventMask> for u32
impl BitAnd<XIEventMask> for u32
§type Output = XIEventMask
type Output = XIEventMask
The resulting type after applying the
&
operator.source§impl BitAnd<u32> for XIEventMask
impl BitAnd<u32> for XIEventMask
source§impl BitAnd for XIEventMask
impl BitAnd for XIEventMask
source§impl BitAndAssign<XIEventMask> for u32
impl BitAndAssign<XIEventMask> for u32
source§fn bitand_assign(&mut self, other: XIEventMask)
fn bitand_assign(&mut self, other: XIEventMask)
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<XIEventMask> for u32
impl BitOr<XIEventMask> for u32
§type Output = XIEventMask
type Output = XIEventMask
The resulting type after applying the
|
operator.source§impl BitOr<u32> for XIEventMask
impl BitOr<u32> for XIEventMask
source§impl BitOr for XIEventMask
impl BitOr for XIEventMask
source§impl BitOrAssign<XIEventMask> for u32
impl BitOrAssign<XIEventMask> for u32
source§fn bitor_assign(&mut self, other: XIEventMask)
fn bitor_assign(&mut self, other: XIEventMask)
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<XIEventMask> for Option<u32>
impl From<XIEventMask> for Option<u32>
source§fn from(input: XIEventMask) -> Self
fn from(input: XIEventMask) -> Self
Converts to this type from the input type.
source§impl From<XIEventMask> for u32
impl From<XIEventMask> for u32
source§fn from(input: XIEventMask) -> Self
fn from(input: XIEventMask) -> Self
Converts to this type from the input type.
source§impl From<u16> for XIEventMask
impl From<u16> for XIEventMask
source§impl From<u32> for XIEventMask
impl From<u32> for XIEventMask
source§impl From<u8> for XIEventMask
impl From<u8> for XIEventMask
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 StructuralEq for XIEventMask
impl StructuralPartialEq for XIEventMask
Auto Trait Implementations§
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