[ static enum ] State

Class: Window.

Description:

Represents the display state of a Window. Pass one of these values to Window > state to get or set the Window's current state.

Type: number

Properties:

Name Description

Normal

The window is in its default, restored state (not minimized or maximized).

Minimized

The window is collapsed to the taskbar or dock.

Maximized

The window is expanded to fill the entire application area on the screen.

MaximizedHorizontally

The window is maximized horizontally but not vertically. Doesn't apply to InternalWindow component.

MaximizedVertically

The window is maximized vertically but not horizontally. Doesn't apply to InternalWindow component.

Examples:

Checking and setting Window state

if(window.state() === Window.State.Minimized)
{
   window.state(Window.State.Normal);
}

Also See: