pub struct EventMask { /* private fields */ }Implementations
sourceimpl 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
sourceimpl BitAndAssign<EventMask> for EventMask
impl BitAndAssign<EventMask> for EventMask
sourcefn bitand_assign(&mut self, other: EventMask)
fn bitand_assign(&mut self, other: EventMask)
Disables all flags disabled in the set.
sourceimpl BitOrAssign<EventMask> for EventMask
impl BitOrAssign<EventMask> for EventMask
sourcefn bitor_assign(&mut self, other: EventMask)
fn bitor_assign(&mut self, other: EventMask)
Adds the set of flags.
sourceimpl BitXorAssign<EventMask> for EventMask
impl BitXorAssign<EventMask> for EventMask
sourcefn bitxor_assign(&mut self, other: EventMask)
fn bitxor_assign(&mut self, other: EventMask)
Toggles the set of flags.
sourceimpl Extend<EventMask> for EventMask
impl Extend<EventMask> for EventMask
sourcefn 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
sourcefn 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.
sourcefn 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
sourceimpl FromIterator<EventMask> for EventMask
impl FromIterator<EventMask> for EventMask
sourceimpl<'a> FromValueOptional<'a> for EventMask
impl<'a> FromValueOptional<'a> for EventMask
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Ord for EventMask
impl Ord for EventMask
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
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>
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 moresourceimpl StaticType for EventMask
impl StaticType for EventMask
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.sourceimpl SubAssign<EventMask> for EventMask
impl SubAssign<EventMask> for EventMask
sourcefn 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 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.