---
title: NSCell.HitResult
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nscell/hitresult
---

# NSCell.HitResult

Constants used by the hitTest(for:in:of:) method to determine the effect of an event.

## Declaration

```swift
struct HitResult
```

## Topics

### Constants

- [contentArea](appkit/nscell/hitresult/contentarea.md)
- [editableTextArea](appkit/nscell/hitresult/editabletextarea.md)
- [trackableArea](appkit/nscell/hitresult/trackablearea.md)

### Initializers

- [init(rawValue:)](appkit/nscell/hitresult/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)

## See Also

### Constants

- [NSCell.CellType](appkit/nscell/celltype.md)
- [NSCell.Attribute](appkit/nscell/attribute.md)
- [NSControl.ImagePosition](appkit/nscontrol/imageposition.md)
- [NSImageScaling](appkit/nsimagescaling.md)
- [NSCell.StateValue](appkit/nscell/statevalue.md)
- [NSCell.StyleMask](appkit/nscell/stylemask.md)
- [NSControlTint](appkit/nscontroltint.md)
- [NSControl.ControlSize](appkit/nscontrol/controlsize-swift.enum.md)
- [NSView.BackgroundStyle](appkit/nsview/backgroundstyle.md)
- [Deprecated Scaling Constants](appkit/deprecated-scaling-constants.md)
- [Data Entry Types](appkit/data-entry-types.md)
