Struct XIEventMask
pub struct XIEventMask(/* private fields */);
Implementations§
§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
§impl XIEventMask
impl XIEventMask
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>) -> 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§
§impl BitAnd<u32> for XIEventMask
impl BitAnd<u32> for XIEventMask
§impl BitAnd for XIEventMask
impl BitAnd for XIEventMask
§type Output = XIEventMask
type Output = XIEventMask
The resulting type after applying the
&
operator.§fn bitand(self, other: XIEventMask) -> <XIEventMask as BitAnd>::Output
fn bitand(self, other: XIEventMask) -> <XIEventMask as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for XIEventMask
impl BitAndAssign<u32> for XIEventMask
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for XIEventMask
impl BitAndAssign for XIEventMask
§fn bitand_assign(&mut self, other: XIEventMask)
fn bitand_assign(&mut self, other: XIEventMask)
Performs the
&=
operation. Read more§impl BitOr<u32> for XIEventMask
impl BitOr<u32> for XIEventMask
§impl BitOr for XIEventMask
impl BitOr for XIEventMask
§type Output = XIEventMask
type Output = XIEventMask
The resulting type after applying the
|
operator.§fn bitor(self, other: XIEventMask) -> <XIEventMask as BitOr>::Output
fn bitor(self, other: XIEventMask) -> <XIEventMask as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for XIEventMask
impl BitOrAssign<u32> for XIEventMask
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for XIEventMask
impl BitOrAssign for XIEventMask
§fn bitor_assign(&mut self, other: XIEventMask)
fn bitor_assign(&mut self, other: XIEventMask)
Performs the
|=
operation. Read more§impl Clone for XIEventMask
impl Clone for XIEventMask
§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 more§impl Debug for XIEventMask
impl Debug for XIEventMask
§impl Default for XIEventMask
impl Default for XIEventMask
§fn default() -> XIEventMask
fn default() -> XIEventMask
Returns the “default value” for a type. Read more
§impl From<u16> for XIEventMask
impl From<u16> for XIEventMask
§fn from(value: u16) -> XIEventMask
fn from(value: u16) -> XIEventMask
Converts to this type from the input type.
§impl From<u32> for XIEventMask
impl From<u32> for XIEventMask
§fn from(value: u32) -> XIEventMask
fn from(value: u32) -> XIEventMask
Converts to this type from the input type.
§impl From<u8> for XIEventMask
impl From<u8> for XIEventMask
§fn from(value: u8) -> XIEventMask
fn from(value: u8) -> XIEventMask
Converts to this type from the input type.
§impl Hash for XIEventMask
impl Hash for XIEventMask
§impl Ord for XIEventMask
impl Ord for XIEventMask
§impl PartialEq for XIEventMask
impl PartialEq for XIEventMask
§impl PartialOrd for XIEventMask
impl PartialOrd for XIEventMask
impl 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