pub struct EventMask(_);
Implementations
sourceimpl EventMask
impl EventMask
pub const NO_EVENT: Self = Self(0)
pub const KEY_PRESS: Self = Self(1 << 0)
pub const KEY_RELEASE: Self = Self(1 << 1)
pub const BUTTON_PRESS: Self = Self(1 << 2)
pub const BUTTON_RELEASE: Self = Self(1 << 3)
pub const ENTER_WINDOW: Self = Self(1 << 4)
pub const LEAVE_WINDOW: Self = Self(1 << 5)
pub const POINTER_MOTION: Self = Self(1 << 6)
pub const POINTER_MOTION_HINT: Self = Self(1 << 7)
pub const BUTTON1_MOTION: Self = Self(1 << 8)
pub const BUTTON2_MOTION: Self = Self(1 << 9)
pub const BUTTON3_MOTION: Self = Self(1 << 10)
pub const BUTTON4_MOTION: Self = Self(1 << 11)
pub const BUTTON5_MOTION: Self = Self(1 << 12)
pub const BUTTON_MOTION: Self = Self(1 << 13)
pub const KEYMAP_STATE: Self = Self(1 << 14)
pub const EXPOSURE: Self = Self(1 << 15)
pub const VISIBILITY_CHANGE: Self = Self(1 << 16)
pub const STRUCTURE_NOTIFY: Self = Self(1 << 17)
pub const RESIZE_REDIRECT: Self = Self(1 << 18)
pub const SUBSTRUCTURE_NOTIFY: Self = Self(1 << 19)
pub const SUBSTRUCTURE_REDIRECT: Self = Self(1 << 20)
pub const FOCUS_CHANGE: Self = Self(1 << 21)
pub const PROPERTY_CHANGE: Self = Self(1 << 22)
pub const COLOR_MAP_CHANGE: Self = Self(1 << 23)
pub const OWNER_GRAB_BUTTON: Self = Self(1 << 24)
Trait Implementations
sourceimpl BitOrAssign<EventMask> for u32
impl BitOrAssign<EventMask> for u32
sourcefn bitor_assign(&mut self, other: EventMask)
fn bitor_assign(&mut self, other: EventMask)
Performs the |=
operation. Read more
sourceimpl BitOrAssign<u32> for EventMask
impl BitOrAssign<u32> for EventMask
sourcefn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the |=
operation. Read more
sourceimpl Ord for EventMask
impl Ord for EventMask
sourceimpl PartialOrd<EventMask> for EventMask
impl PartialOrd<EventMask> for EventMask
sourcefn partial_cmp(&self, other: &EventMask) -> Option<Ordering>
fn partial_cmp(&self, other: &EventMask) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for EventMask
impl Eq for EventMask
impl StructuralEq for EventMask
impl StructuralPartialEq for EventMask
Auto Trait Implementations
impl RefUnwindSafe for EventMask
impl Send for EventMask
impl Sync for EventMask
impl Unpin for EventMask
impl UnwindSafe for EventMask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more