---
title: NSTrackingArea.Options
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nstrackingarea/options-swift.struct
---

# NSTrackingArea.Options

The data type defined for the constants specified in the options parameter of init(rect:options:owner:userInfo:). These constants are described below; you can specify multiple constants by performing a bitwise-OR operation with them. In particular, you must supply one or more of the tracking-type constants (that is, mouseEnteredAndExited, mouseMoved, and cursorUpdate) and one of the active constants (that is, activeWhenFirstResponder, activeInKeyWindow, activeInActiveApp, and activeAlways). In addition, you may specify any of the behavior constants (that is, assumeInside, inVisibleRect, and enabledDuringMouseDrag).

## Declaration

```swift
struct Options
```

## Topics

### Constants

- [mouseEnteredAndExited](appkit/nstrackingarea/options-swift.struct/mouseenteredandexited.md)
- [mouseMoved](appkit/nstrackingarea/options-swift.struct/mousemoved.md)
- [cursorUpdate](appkit/nstrackingarea/options-swift.struct/cursorupdate.md)
- [activeWhenFirstResponder](appkit/nstrackingarea/options-swift.struct/activewhenfirstresponder.md)
- [activeInKeyWindow](appkit/nstrackingarea/options-swift.struct/activeinkeywindow.md)
- [activeInActiveApp](appkit/nstrackingarea/options-swift.struct/activeinactiveapp.md)
- [activeAlways](appkit/nstrackingarea/options-swift.struct/activealways.md)
- [assumeInside](appkit/nstrackingarea/options-swift.struct/assumeinside.md)
- [inVisibleRect](appkit/nstrackingarea/options-swift.struct/invisiblerect.md)
- [enabledDuringMouseDrag](appkit/nstrackingarea/options-swift.struct/enabledduringmousedrag.md)

### Initializers

- [init(rawValue:)](appkit/nstrackingarea/options-swift.struct/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
