<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/ButtonType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWindowButton"
  },
  "title" : "NSWindow.ButtonType"
}
-->

# NSWindow.ButtonType

Constants that provide a way to access standard title bar buttons.

```
enum ButtonType
```

## Topics

### Constants

[`NSWindowCloseButton`](/documentation/AppKit/NSWindow/ButtonType/closeButton)

The close button.

[`NSWindowMiniaturizeButton`](/documentation/AppKit/NSWindow/ButtonType/miniaturizeButton)

The minimize button.

[`NSWindowZoomButton`](/documentation/AppKit/NSWindow/ButtonType/zoomButton)

The zoom button.

[`NSWindowToolbarButton`](/documentation/AppKit/NSWindow/ButtonType/toolbarButton)

The toolbar button.

[`NSWindowDocumentIconButton`](/documentation/AppKit/NSWindow/ButtonType/documentIconButton)

The document icon button.

[`NSWindowDocumentVersionsButton`](/documentation/AppKit/NSWindow/ButtonType/documentVersionsButton)

The document versions button.

[`NSWindowFullScreenButton`](/documentation/AppKit/NSWindow/ButtonType/fullScreenButton)

The fullscreen icon button.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)