NSWindowStyleMask enum

Constants that specify the style of a window.

Inheritance
Available extensions

Values

borderless → const NSWindowStyleMask

The window displays none of the usual peripheral elements. Useful only for display or caching purposes. A window that uses NSWindowStyleMaskBorderless can't become key or main, unless the value of canBecomeKey or canBecomeMain is true.

titled → const NSWindowStyleMask

The window displays a title bar.

closable → const NSWindowStyleMask

The window displays a close button.

miniaturizable → const NSWindowStyleMask

The window displays a minimize button.

resizable → const NSWindowStyleMask

The window can be resized by the user.

unifiedTitleAndToolbar → const NSWindowStyleMask

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

fullScreen → const NSWindowStyleMask

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(_:) is called.)

fullSizeContentView → const NSWindowStyleMask

When set, the window's 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 or the contentLayoutGuide to lay out views underneath the title bar–toolbar area.

utilityWindow → const NSWindowStyleMask

The window is a panel or a subclass of NSPanel.

docModalWindow → const NSWindowStyleMask

The window is a document-modal panel (or a subclass of NSPanel).

nonactivatingPanel → const NSWindowStyleMask

The window is a panel or a subclass of NSPanel that does not activate the owning app.

hudWindow → const NSWindowStyleMask

The window is a HUD panel.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<NSWindowStyleMask>
A constant List of the values in this enum, in order of their declaration.