pub struct NSEventMask(/* private fields */);ImplementationsΒ§
SourceΒ§impl NSEventMask
impl NSEventMask
pub const NSLeftMouseDownMask: Self
pub const NSLeftMouseUpMask: Self
pub const NSRightMouseDownMask: Self
pub const NSRightMouseUpMask: Self
pub const NSMouseMovedMask: Self
pub const NSLeftMouseDraggedMask: Self
pub const NSRightMouseDraggedMask: Self
pub const NSMouseEnteredMask: Self
pub const NSMouseExitedMask: Self
pub const NSKeyDownMask: Self
pub const NSKeyUpMask: Self
pub const NSFlagsChangedMask: Self
pub const NSAppKitDefinedMask: Self
pub const NSSystemDefinedMask: Self
pub const NSApplicationDefinedMask: Self
pub const NSPeriodicMask: Self
pub const NSCursorUpdateMask: Self
pub const NSScrollWheelMask: Self
pub const NSTabletPointMask: Self
pub const NSTabletProximityMask: Self
pub const NSOtherMouseDownMask: Self
pub const NSOtherMouseUpMask: Self
pub const NSOtherMouseDraggedMask: Self
pub const NSEventMaskGesture: Self
pub const NSEventMaskSwipe: Self
pub const NSEventMaskRotate: Self
pub const NSEventMaskBeginGesture: Self
pub const NSEventMaskEndGesture: Self
pub const NSEventMaskPressure: Self
pub const NSAnyEventMask: Self
SourceΒ§impl NSEventMask
impl NSEventMask
Sourcepub const fn empty() -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn empty() -> Self
Get a flags value with all bits unset.
Sourcepub const fn all() -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn all() -> Self
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> c_ulonglong
πDeprecated: use the objc2-app-kit crate instead
pub const fn bits(&self) -> c_ulonglong
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: c_ulonglong) -> Option<Self>
πDeprecated: use the objc2-app-kit crate instead
pub const fn from_bits(bits: c_ulonglong) -> Option<Self>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: c_ulonglong) -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn from_bits_truncate(bits: c_ulonglong) -> Self
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: c_ulonglong) -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn from_bits_retain(bits: c_ulonglong) -> Self
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<Self>
πDeprecated: use the objc2-app-kit crate instead
pub fn from_name(name: &str) -> Option<Self>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesnβt
correspond to any named flag.
Sourcepub const fn is_empty(&self) -> bool
πDeprecated: use the objc2-app-kit crate instead
pub const fn is_empty(&self) -> bool
Whether all bits in this flags value are unset.
Sourcepub const fn is_all(&self) -> bool
πDeprecated: use the objc2-app-kit crate instead
pub const fn is_all(&self) -> bool
Whether all known bits in this flags value are set.
Sourcepub const fn intersects(&self, other: Self) -> bool
πDeprecated: use the objc2-app-kit crate instead
pub const fn intersects(&self, other: Self) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: Self) -> bool
πDeprecated: use the objc2-app-kit crate instead
pub const fn contains(&self, other: Self) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn insert(&mut self, other: Self)
πDeprecated: use the objc2-app-kit crate instead
pub fn insert(&mut self, other: Self)
The bitwise or (|) of the bits in two flags values.
Sourcepub fn remove(&mut self, other: Self)
πDeprecated: use the objc2-app-kit crate instead
pub fn remove(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove wonβt truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: Self)
πDeprecated: use the objc2-app-kit crate instead
pub fn toggle(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn set(&mut self, other: Self, value: bool)
πDeprecated: use the objc2-app-kit crate instead
pub fn set(&mut self, other: Self, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(self, other: Self) -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn intersection(self, other: Self) -> Self
The bitwise and (&) of the bits in two flags values.
Sourcepub const fn union(self, other: Self) -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn union(self, other: Self) -> Self
The bitwise or (|) of the bits in two flags values.
Sourcepub const fn difference(self, other: Self) -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn difference(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference wonβt truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn symmetric_difference(self, other: Self) -> Self
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub const fn complement(self) -> Self
πDeprecated: use the objc2-app-kit crate instead
pub const fn complement(self) -> Self
The bitwise negation (!) of the bits in a flags value, truncating the result.
SourceΒ§impl NSEventMask
impl NSEventMask
Sourcepub const fn iter(&self) -> Iter<NSEventMask>
πDeprecated: use the objc2-app-kit crate instead
pub const fn iter(&self) -> Iter<NSEventMask>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<NSEventMask>
πDeprecated: use the objc2-app-kit crate instead
pub const fn iter_names(&self) -> IterNames<NSEventMask>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
SourceΒ§impl NSEventMask
impl NSEventMask
pub fn from_type(ty: NSEventType) -> NSEventMask
Trait ImplementationsΒ§
SourceΒ§impl Binary for NSEventMask
impl Binary for NSEventMask
SourceΒ§impl BitAnd for NSEventMask
impl BitAnd for NSEventMask
SourceΒ§impl BitAndAssign for NSEventMask
impl BitAndAssign for NSEventMask
SourceΒ§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
The bitwise and (&) of the bits in two flags values.
SourceΒ§impl BitOr for NSEventMask
impl BitOr for NSEventMask
SourceΒ§fn bitor(self, other: NSEventMask) -> Self
fn bitor(self, other: NSEventMask) -> Self
The bitwise or (|) of the bits in two flags values.
SourceΒ§type Output = NSEventMask
type Output = NSEventMask
| operator.SourceΒ§impl BitOrAssign for NSEventMask
impl BitOrAssign for NSEventMask
SourceΒ§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
The bitwise or (|) of the bits in two flags values.
SourceΒ§impl BitXor for NSEventMask
impl BitXor for NSEventMask
SourceΒ§impl BitXorAssign for NSEventMask
impl BitXorAssign for NSEventMask
SourceΒ§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in two flags values.
SourceΒ§impl Clone for NSEventMask
impl Clone for NSEventMask
SourceΒ§fn clone(&self) -> NSEventMask
fn clone(&self) -> NSEventMask
1.0.0 Β· SourceΒ§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceΒ§impl Debug for NSEventMask
impl Debug for NSEventMask
SourceΒ§impl Default for NSEventMask
impl Default for NSEventMask
SourceΒ§fn default() -> NSEventMask
fn default() -> NSEventMask
SourceΒ§impl Extend<NSEventMask> for NSEventMask
impl Extend<NSEventMask> for NSEventMask
SourceΒ§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
The bitwise or (|) of the bits in each flags value.
SourceΒ§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)SourceΒ§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)SourceΒ§impl Flags for NSEventMask
impl Flags for NSEventMask
SourceΒ§const FLAGS: &'static [Flag<NSEventMask>]
const FLAGS: &'static [Flag<NSEventMask>]
SourceΒ§fn bits(&self) -> c_ulonglong
fn bits(&self) -> c_ulonglong
SourceΒ§fn from_bits_retain(bits: c_ulonglong) -> NSEventMask
fn from_bits_retain(bits: c_ulonglong) -> NSEventMask
SourceΒ§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.SourceΒ§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
SourceΒ§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
SourceΒ§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
SourceΒ§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
SourceΒ§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
SourceΒ§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.SourceΒ§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read moreSourceΒ§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.SourceΒ§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.SourceΒ§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read moreSourceΒ§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.SourceΒ§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.SourceΒ§impl FromIterator<NSEventMask> for NSEventMask
impl FromIterator<NSEventMask> for NSEventMask
SourceΒ§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
The bitwise or (|) of the bits in each flags value.
SourceΒ§impl Hash for NSEventMask
impl Hash for NSEventMask
SourceΒ§impl IntoIterator for NSEventMask
impl IntoIterator for NSEventMask
SourceΒ§impl LowerHex for NSEventMask
impl LowerHex for NSEventMask
SourceΒ§impl Not for NSEventMask
impl Not for NSEventMask
SourceΒ§impl Octal for NSEventMask
impl Octal for NSEventMask
SourceΒ§impl Ord for NSEventMask
impl Ord for NSEventMask
SourceΒ§fn cmp(&self, other: &NSEventMask) -> Ordering
fn cmp(&self, other: &NSEventMask) -> Ordering
1.21.0 Β· SourceΒ§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
SourceΒ§impl PartialEq for NSEventMask
impl PartialEq for NSEventMask
SourceΒ§impl PartialOrd for NSEventMask
impl PartialOrd for NSEventMask
SourceΒ§impl PublicFlags for NSEventMask
impl PublicFlags for NSEventMask
SourceΒ§impl Sub for NSEventMask
impl Sub for NSEventMask
SourceΒ§fn sub(self, other: Self) -> Self
fn sub(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference wonβt truncate other, but the ! operator will.
SourceΒ§type Output = NSEventMask
type Output = NSEventMask
- operator.SourceΒ§impl SubAssign for NSEventMask
impl SubAssign for NSEventMask
SourceΒ§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference wonβt truncate other, but the ! operator will.