[][src]Struct cocoa::appkit::NSEventMask

pub struct NSEventMask { /* fields omitted */ }

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]

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]

impl Copy for NSEventMask[src]

impl Debug for NSEventMask[src]

impl Eq for NSEventMask[src]

impl Extend<NSEventMask> for NSEventMask[src]

impl FromIterator<NSEventMask> for NSEventMask[src]

impl Hash for NSEventMask[src]

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]

impl PartialEq<NSEventMask> for NSEventMask[src]

impl PartialOrd<NSEventMask> for NSEventMask[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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.