[−][src]Struct cocoa::appkit::NSEventMask
Implementations
impl NSEventMask
[src]
pub const NSLeftMouseDownMask: NSEventMask
[src]
pub const NSLeftMouseUpMask: NSEventMask
[src]
pub const NSRightMouseDownMask: NSEventMask
[src]
pub const NSRightMouseUpMask: NSEventMask
[src]
pub const NSMouseMovedMask: NSEventMask
[src]
pub const NSLeftMouseDraggedMask: NSEventMask
[src]
pub const NSRightMouseDraggedMask: NSEventMask
[src]
pub const NSMouseEnteredMask: NSEventMask
[src]
pub const NSMouseExitedMask: NSEventMask
[src]
pub const NSKeyDownMask: NSEventMask
[src]
pub const NSKeyUpMask: NSEventMask
[src]
pub const NSFlagsChangedMask: NSEventMask
[src]
pub const NSAppKitDefinedMask: NSEventMask
[src]
pub const NSSystemDefinedMask: NSEventMask
[src]
pub const NSApplicationDefinedMask: NSEventMask
[src]
pub const NSPeriodicMask: NSEventMask
[src]
pub const NSCursorUpdateMask: NSEventMask
[src]
pub const NSScrollWheelMask: NSEventMask
[src]
pub const NSTabletPointMask: NSEventMask
[src]
pub const NSTabletProximityMask: NSEventMask
[src]
pub const NSOtherMouseDownMask: NSEventMask
[src]
pub const NSOtherMouseUpMask: NSEventMask
[src]
pub const NSOtherMouseDraggedMask: NSEventMask
[src]
pub const NSEventMaskGesture: NSEventMask
[src]
pub const NSEventMaskSwipe: NSEventMask
[src]
pub const NSEventMaskRotate: NSEventMask
[src]
pub const NSEventMaskBeginGesture: NSEventMask
[src]
pub const NSEventMaskEndGesture: NSEventMask
[src]
pub const NSEventMaskPressure: NSEventMask
[src]
pub const NSAnyEventMask: NSEventMask
[src]
pub const fn empty() -> NSEventMask
[src]
Returns an empty set of flags
pub const fn all() -> NSEventMask
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> c_ulonglong
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: c_ulonglong) -> Option<NSEventMask>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: c_ulonglong) -> NSEventMask
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: c_ulonglong) -> NSEventMask
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: NSEventMask) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: NSEventMask) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: NSEventMask)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: NSEventMask)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: NSEventMask)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: NSEventMask, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
impl NSEventMask
[src]
pub fn from_type(ty: NSEventType) -> NSEventMask
[src]
Trait Implementations
impl Binary for NSEventMask
[src]
impl BitAnd<NSEventMask> for NSEventMask
[src]
type Output = NSEventMask
The resulting type after applying the &
operator.
fn bitand(self, other: NSEventMask) -> NSEventMask
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<NSEventMask> for NSEventMask
[src]
fn bitand_assign(&mut self, other: NSEventMask)
[src]
Disables all flags disabled in the set.
impl BitOr<NSEventMask> for NSEventMask
[src]
type Output = NSEventMask
The resulting type after applying the |
operator.
fn bitor(self, other: NSEventMask) -> NSEventMask
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<NSEventMask> for NSEventMask
[src]
fn bitor_assign(&mut self, other: NSEventMask)
[src]
Adds the set of flags.
impl BitXor<NSEventMask> for NSEventMask
[src]
type Output = NSEventMask
The resulting type after applying the ^
operator.
fn bitxor(self, other: NSEventMask) -> NSEventMask
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<NSEventMask> for NSEventMask
[src]
fn bitxor_assign(&mut self, other: NSEventMask)
[src]
Toggles the set of flags.
impl Clone for NSEventMask
[src]
fn clone(&self) -> NSEventMask
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for NSEventMask
[src]
impl Debug for NSEventMask
[src]
impl Eq for NSEventMask
[src]
impl Extend<NSEventMask> for NSEventMask
[src]
fn extend<T: IntoIterator<Item = NSEventMask>>(&mut self, iterator: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<NSEventMask> for NSEventMask
[src]
fn from_iter<T: IntoIterator<Item = NSEventMask>>(iterator: T) -> NSEventMask
[src]
impl Hash for NSEventMask
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for NSEventMask
[src]
impl Not for NSEventMask
[src]
type Output = NSEventMask
The resulting type after applying the !
operator.
fn not(self) -> NSEventMask
[src]
Returns the complement of this set of flags.
impl Octal for NSEventMask
[src]
impl Ord for NSEventMask
[src]
fn cmp(&self, other: &NSEventMask) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<NSEventMask> for NSEventMask
[src]
fn eq(&self, other: &NSEventMask) -> bool
[src]
fn ne(&self, other: &NSEventMask) -> bool
[src]
impl PartialOrd<NSEventMask> for NSEventMask
[src]
fn partial_cmp(&self, other: &NSEventMask) -> Option<Ordering>
[src]
fn lt(&self, other: &NSEventMask) -> bool
[src]
fn le(&self, other: &NSEventMask) -> bool
[src]
fn gt(&self, other: &NSEventMask) -> bool
[src]
fn ge(&self, other: &NSEventMask) -> bool
[src]
impl StructuralEq for NSEventMask
[src]
impl StructuralPartialEq for NSEventMask
[src]
impl Sub<NSEventMask> for NSEventMask
[src]
type Output = NSEventMask
The resulting type after applying the -
operator.
fn sub(self, other: NSEventMask) -> NSEventMask
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<NSEventMask> for NSEventMask
[src]
fn sub_assign(&mut self, other: NSEventMask)
[src]
Disables all flags enabled in the set.
impl UpperHex for NSEventMask
[src]
Auto Trait Implementations
impl RefUnwindSafe for NSEventMask
impl Send for NSEventMask
impl Sync for NSEventMask
impl Unpin for NSEventMask
impl UnwindSafe for NSEventMask
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,