Structure

NSEvent.EventTypeMask

Constants that you use to filter out specific event types from the stream of incoming events.

Declaration

struct EventTypeMask

Overview

Pass these constants to the NSCell method sendAction(on:) to specify when an NSCell object should send its action message.

Topics

Event Types

static var leftMouseDown: NSEvent.EventTypeMask

A mask for left mouse-down events.

static var leftMouseUp: NSEvent.EventTypeMask

A mask for left mouse-up events.

static var rightMouseDown: NSEvent.EventTypeMask

A mask for right mouse-down events.

static var rightMouseUp: NSEvent.EventTypeMask

A mask for right mouse-up events.

static var mouseMoved: NSEvent.EventTypeMask

A mask for mouse-moved events.

static var leftMouseDragged: NSEvent.EventTypeMask

A mask for left mouse-dragged events.

static var rightMouseDragged: NSEvent.EventTypeMask

A mask for right mouse-dragged events.

static var mouseEntered: NSEvent.EventTypeMask

A mask for mouse-entered events.

static var mouseExited: NSEvent.EventTypeMask

A mask for mouse-exited events.

static var flagsChanged: NSEvent.EventTypeMask

A mask for flags-changed events.

static var appKitDefined: NSEvent.EventTypeMask

A mask for AppKit–defined events.

static var systemDefined: NSEvent.EventTypeMask

A mask for system-defined events.

static var cursorUpdate: NSEvent.EventTypeMask

A mask for cursor-update events.

static var scrollWheel: NSEvent.EventTypeMask

A mask for scroll-wheel events.

static var tabletPoint: NSEvent.EventTypeMask

A mask for tablet-point events.

static var tabletProximity: NSEvent.EventTypeMask

A mask for tablet-proximity events.

static var otherMouseDown: NSEvent.EventTypeMask

A mask for tertiary mouse-down events.

static var otherMouseUp: NSEvent.EventTypeMask

A mask for tertiary mouse-up events.

static var otherMouseDragged: NSEvent.EventTypeMask

A mask for tertiary mouse-dragged events.

static var gesture: NSEvent.EventTypeMask

A mask for generic gesture events.

static var magnify: NSEvent.EventTypeMask

A mask for magnify-gesture events.

static var swipe: NSEvent.EventTypeMask

A mask for swipe-gesture events.

static var rotate: NSEvent.EventTypeMask

A mask for rotate-gesture events.

static var beginGesture: NSEvent.EventTypeMask

A mask for begin-gesture events.

static var endGesture: NSEvent.EventTypeMask

A mask for end-gesture events.

static var smartMagnify: NSEvent.EventTypeMask

A mask for smart-zoom gesture events.

static var pressure: NSEvent.EventTypeMask

A mask for pressure-change events.

static var changeMode: NSEvent.EventTypeMask

A mask for change-mode events.

static var any: NSEvent.EventTypeMask

A mask that matches any type of event.

Initializers

init(type: NSEvent.EventType)

Returns the event mask for the specified type.

Relationships

Conforms To

See Also

Getting the Event Type

var type: NSEvent.EventType

The event’s type.

enum NSEvent.EventType

The types of events handled by responder objects.

var subtype: NSEvent.EventSubtype

The event’s subtype.

enum NSEvent.EventSubtype

Subtypes for various types of events.

var modifierFlags: NSEvent.ModifierFlags

An integer bit field indicating the event’s modifier keys.