---
title: NSCell.StyleMask
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nscell/stylemask
---

# NSCell.StyleMask

Constants for specifying what happens when a button is pressed or is displaying its alternate state.

## Declaration

```swift
struct StyleMask
```

## Overview

Overview These contents are used by the highlightsBy and showsStateBy methods of NSButtonCell.

## Topics

### Constants

- [pushInCellMask](appkit/nscell/stylemask/pushincellmask.md)
- [contentsCellMask](appkit/nscell/stylemask/contentscellmask.md)
- [changeGrayCellMask](appkit/nscell/stylemask/changegraycellmask.md)
- [changeBackgroundCellMask](appkit/nscell/stylemask/changebackgroundcellmask.md)

### Initializers

- [init(rawValue:)](appkit/nscell/stylemask/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)
- [NSControlTint](appkit/nscontroltint.md)
- [NSControl.ControlSize](appkit/nscontrol/controlsize-swift.enum.md)
- [NSCell.HitResult](appkit/nscell/hitresult.md)
- [NSView.BackgroundStyle](appkit/nsview/backgroundstyle.md)
- [Deprecated Scaling Constants](appkit/deprecated-scaling-constants.md)
- [Data Entry Types](appkit/data-entry-types.md)
