---
title: mouseEnteredAndExited
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstrackingarea/options-swift.struct/mouseenteredandexited
---

# mouseEnteredAndExited

The owner of the tracking area receives mouseEntered(with:) when the mouse cursor enters the area and mouseExited(with:) events when the mouse leaves the area. This value specifies a type of tracking area.

## Declaration

```swift
static var mouseEnteredAndExited: NSTrackingArea.Options { get }
```

## See Also

### Constants

- [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)
