pub struct EventMask { /* private fields */ }
Implementations§
Source§impl EventMask
impl EventMask
pub const EXPOSURE_MASK: EventMask
pub const POINTER_MOTION_MASK: EventMask
pub const POINTER_MOTION_HINT_MASK: EventMask
pub const BUTTON_MOTION_MASK: EventMask
pub const BUTTON1_MOTION_MASK: EventMask
pub const BUTTON2_MOTION_MASK: EventMask
pub const BUTTON3_MOTION_MASK: EventMask
pub const BUTTON_PRESS_MASK: EventMask
pub const BUTTON_RELEASE_MASK: EventMask
pub const KEY_PRESS_MASK: EventMask
pub const KEY_RELEASE_MASK: EventMask
pub const ENTER_NOTIFY_MASK: EventMask
pub const LEAVE_NOTIFY_MASK: EventMask
pub const FOCUS_CHANGE_MASK: EventMask
pub const STRUCTURE_MASK: EventMask
pub const PROPERTY_CHANGE_MASK: EventMask
pub const VISIBILITY_NOTIFY_MASK: EventMask
pub const PROXIMITY_IN_MASK: EventMask
pub const PROXIMITY_OUT_MASK: EventMask
pub const SUBSTRUCTURE_MASK: EventMask
pub const SCROLL_MASK: EventMask
pub const TOUCH_MASK: EventMask
pub const SMOOTH_SCROLL_MASK: EventMask
pub const TOUCHPAD_GESTURE_MASK: EventMask
pub const TABLET_PAD_MASK: EventMask
pub const ALL_EVENTS_MASK: EventMask
Sourcepub fn from_bits(bits: u32) -> Option<EventMask>
pub fn from_bits(bits: u32) -> Option<EventMask>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> EventMask
pub const fn from_bits_truncate(bits: u32) -> EventMask
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> EventMask
pub const unsafe fn from_bits_unchecked(bits: u32) -> EventMask
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: EventMask) -> bool
pub const fn intersects(&self, other: EventMask) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for EventMask
impl BitAndAssign for EventMask
Source§fn bitand_assign(&mut self, other: EventMask)
fn bitand_assign(&mut self, other: EventMask)
Disables all flags disabled in the set.
Source§impl BitOrAssign for EventMask
impl BitOrAssign for EventMask
Source§fn bitor_assign(&mut self, other: EventMask)
fn bitor_assign(&mut self, other: EventMask)
Adds the set of flags.
Source§impl BitXorAssign for EventMask
impl BitXorAssign for EventMask
Source§fn bitxor_assign(&mut self, other: EventMask)
fn bitxor_assign(&mut self, other: EventMask)
Toggles the set of flags.
Source§impl Extend<EventMask> for EventMask
impl Extend<EventMask> for EventMask
Source§fn extend<T: IntoIterator<Item = EventMask>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = EventMask>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<EventMask> for EventMask
impl FromIterator<EventMask> for EventMask
Source§impl<'a> FromValueOptional<'a> for EventMask
impl<'a> FromValueOptional<'a> for EventMask
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Ord for EventMask
impl Ord for EventMask
Source§impl PartialOrd for EventMask
impl PartialOrd for EventMask
Source§impl StaticType for EventMask
impl StaticType for EventMask
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl SubAssign for EventMask
impl SubAssign for EventMask
Source§fn sub_assign(&mut self, other: EventMask)
fn sub_assign(&mut self, other: EventMask)
Disables all flags enabled in the set.
impl Copy for EventMask
impl Eq for EventMask
impl StructuralPartialEq for EventMask
Auto Trait Implementations§
impl Freeze for EventMask
impl RefUnwindSafe for EventMask
impl Send for EventMask
impl Sync for EventMask
impl Unpin for EventMask
impl UnwindSafe for EventMask
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§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.