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

# NSWindow.StyleMask

Constants that specify the style of a window, and that you can combine with the C bitwise OR operator.

```
struct StyleMask
```

## Topics

### Constants

[`borderless`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/borderless)

The window displays none of the usual peripheral elements.

[`titled`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/titled)

The window displays a title bar.

[`closable`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/closable)

The window displays a close button.

[`miniaturizable`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/miniaturizable)

The window displays a minimize button.

[`resizable`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/resizable)

The window can be resized by the user.

[`texturedBackground`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/texturedBackground)

The window uses a textured background that darkens when the window is key or main and lightens when it is inactive, and may have a second gradient in the section below the window content.

[`unifiedTitleAndToolbar`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/unifiedTitleAndToolbar)

This constant has no effect, because all windows that include a toolbar use the unified style.

[`fullScreen`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/fullScreen)

The window can appear full screen. A fullscreen window does not draw its title bar, and may have special handling for its toolbar. (This mask is automatically toggled when [`toggleFullScreen(_:)`](/documentation/AppKit/NSWindow/toggleFullScreen(_:)) is called.)

[`fullSizeContentView`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/fullSizeContentView)

When set, the window’s [`contentView`](/documentation/AppKit/NSWindow/contentView) consumes the full size of the window. Although you can combine this constant with other window style masks, it is respected only for windows with a title bar. Note that using this mask opts in to layer-backing. Use the [`contentLayoutRect`](/documentation/AppKit/NSWindow/contentLayoutRect) or the [`contentLayoutGuide`](/documentation/AppKit/NSWindow/contentLayoutGuide) to lay out views underneath the title bar–toolbar area.

[`utilityWindow`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/utilityWindow)

The window is a panel or a subclass of [`NSPanel`](/documentation/AppKit/NSPanel).

[`docModalWindow`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/docModalWindow)

The window is a document-modal panel (or  a subclass of [`NSPanel`](/documentation/AppKit/NSPanel)).

[`nonactivatingPanel`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/nonactivatingPanel)

The window is a panel or a subclass of [`NSPanel`](/documentation/AppKit/NSPanel) that does not activate the owning app.

[`hudWindow`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/hudWindow)

The window is a HUD panel.

### Style Mask Creation

[`init(rawValue:)`](/documentation/AppKit/NSWindow/StyleMask-swift.struct/init(rawValue:))

Creates a style mask using the given raw value.

### Deprecated

[`NSBorderlessWindowMask`](/documentation/AppKit/NSBorderlessWindowMask)

The window displays none of the usual peripheral elements.

[`NSTitledWindowMask`](/documentation/AppKit/NSTitledWindowMask)

The window displays a title bar.

[`NSClosableWindowMask`](/documentation/AppKit/NSClosableWindowMask)

The window displays a close button.

[`NSMiniaturizableWindowMask`](/documentation/AppKit/NSMiniaturizableWindowMask)

The window displays a minimize button.

[`NSResizableWindowMask`](/documentation/AppKit/NSResizableWindowMask)

The window displays a resize control.

[`NSTexturedBackgroundWindowMask`](/documentation/AppKit/NSTexturedBackgroundWindowMask)

The window displays with a metal-textured background. Additionally, the window may be moved by clicking and dragging anywhere in the window background. A bordered window with this mask gets rounded bottom corners.

[`NSUnifiedTitleAndToolbarWindowMask`](/documentation/AppKit/NSUnifiedTitleAndToolbarWindowMask)

The window’s title bar and toolbar have a unified look—that is, a continuous background. A horizontal separator line appears under the title bar and toolbar .

[`NSFullScreenWindowMask`](/documentation/AppKit/NSFullScreenWindowMask)

The window can appear full screen. A fullscreen window does not draw its title bar, and may have special handling for its toolbar. This mask is automatically toggled when [`toggleFullScreen(_:)`](/documentation/AppKit/NSWindow/toggleFullScreen(_:)) is called.

[`NSFullSizeContentViewWindowMask`](/documentation/AppKit/NSFullSizeContentViewWindowMask)

When set, the content view consumes the full size of the window; it can be combined with other window style masks, but is only respected for windows with a title bar. Using this mask opts in to layer backing. Use the [`contentLayoutRect`](/documentation/AppKit/NSWindow/contentLayoutRect) or [`contentLayoutGuide`](/documentation/AppKit/NSWindow/contentLayoutGuide) to lay out views underneath the title bar-toolbar area.

[`NSUnscaledWindowMask`](/documentation/AppKit/NSUnscaledWindowMask)



---

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)