Sprache

NSTrackingAreaOptions Enum

Definition

Specifies a bitmask of options that control when and how an NSTrackingArea generates tracking events.

This enumeration supports a bitwise combination of its member values.

[ObjCRuntime.Native]
[System.Flags]
public enum NSTrackingAreaOptions
[<ObjCRuntime.Native>]
[<System.Flags>]
type NSTrackingAreaOptions = 
Inheritance
NSTrackingAreaOptions
Attributes

Fields

Name Value Description
MouseEnteredAndExited 1

Generates events when the pointer enters or exits the tracking area.

MouseMoved 2

Generates events when the pointer moves within the tracking area.

CursorUpdate 4

Generates a cursor-update event when the pointer enters the tracking area.

ActiveWhenFirstResponder 16

The tracking area is active only while its owning view is the first responder.

ActiveInKeyWindow 32

The tracking area is active only while its owning window is the key window.

ActiveInActiveApp 64

The tracking area is active only while its owning application is the active application.

ActiveAlways 128

The tracking area is always active, regardless of the key window or active application.

AssumeInside 256

Assumes the pointer starts inside the tracking area, allowing a mouse-exited event when the pointer leaves without a preceding mouse-entered event.

InVisibleRect 512

Automatically updates the tracking area's rectangle to always match the visible portion of its owning view.

EnabledDuringMouseDrag 1024

Continues to generate tracking events even while the mouse button is held down and being dragged.

Applies to