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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)