A window.

To create a new window use GLFW.createWindow.

Using the window after it was destroyed with Window.destroy or after the GLFW object was destroyed with GLFW.destroy will throw a UseAfterDestroyException exception.

Variables

autoIconify:Bool

Whether the fullscreen window will automatically iconify and restore the previous video mode on input focus loss.

This is ignored for windowed mode windows.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

read onlycontentScale:{y:Float, x:Float}

The content scale of the window.

The content scale is the ratio between the current DPI and the platform's default DPI. This is especially important for text and any UI elements. If the pixel dimensions of your UI scaled by this look appropriate on your machine then it should appear at a reasonable size on other machines regardless of their DPI and scaling settings. This relies on the system DPI and scaling settings being somewhat correct.

On systems where each monitors can have its own content scale, the window content scale will depend on which monitor the system considers the window to be on.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

cursor:Null<Cursor>

The cursor of the window.

This is the cursor image to be used when the cursor is over the content area of the window.

Set this to null (the default value) to return to the system cursor.

It will only be visible if the Window.cursorMode is CursorMode.Normal.

On some platforms, the set cursor may not be visible unless the window also has input focus.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

cursorMode:CursorMode

The mode of the cursor, default to CursorMode.Normal.

See CursorMode for more details about the available modes.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

cursorPositionX:Float

The horizontal position of the cursor, in screen coordinates, relative to the upper-left corner of the content area of the window.

If the cursor is disabled (Window.cursorMode is CursorMode.Disabled) then the cursor position is unbounded and limited only by the minimum and maximum values of a Float.

The coordinate can be converted to their integer equivalents with the Math.floor function. Casting directly to an integer type works for positive coordinates, but fails for negative ones.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

cursorPositionY:Float

The vertical position of the cursor, in screen coordinates, relative to the upper-left corner of the content area of the window.

If the cursor is disabled (Window.cursorMode is CursorMode.Disabled) then the cursor position is unbounded and limited only by the minimum and maximum values of a Float.

The coordinate can be converted to their integer equivalents with the Math.floor function. Casting directly to an integer type works for positive coordinates, but fails for negative ones.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

decorated:Bool

Whether the windowed mode window will have window decorations such as a border, a close widget, etc. An undecorated window will not be resizable by the user but will still allow the user to generate close events on some platforms.

This is ignored for fullscreen windows.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

floating:Bool

Whether the windowed mode window will be floating above other regular windows, also called topmost or always-on-top. This is intended primarily for debugging purposes and cannot be used to implement proper fullscreen windows.

This is ignored for fullscreen windows.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

read onlyfocused:Bool

The current input focus state.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

focusOnShow:Bool

Whether the window will be given input focus when Window.show is called.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

read onlyframeSize:{top:Int, right:Int, left:Int, bottom:Int}

The size of the frame of the window.

This is the size, in screen coordinates, of each edge of the frame of the window. This size includes the title bar, if the window has one.

Because this function retrieves the size of each window frame edge and not the offset along a particular coordinate axis, the retrieved values will always be zero or positive.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

keysSticky:Bool

Whether sticky keys are enabled.

When sticky keys mode is enabled, the pollable state of a key will remain KeyState.Press until the state of that key is polled with Window.getKeyState. Once it has been polled, if a key release event had been processed in the meantime, the state will reset to KeyState.Release, otherwise it will remain KeyState.Press.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

lockKeyModifiers:Bool

Whether caps lock and num lock key modifiers are set for key events.

When this input mode is enabled, any callback that receives Modifiers state will have the Modifiers.capsLock set to true set if Caps Lock was on when the event occurred and the Modifiers.numLock set to true if Num Lock was on.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

read onlymaximized:Bool

The current maximization state.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

mouseButtonsSticky:Bool

Whether sticky mouse buttons are enabled.

If true a mouse button press will ensure that Window.getMouseButton returns true the next time it is called even if the mouse button had been released before the call. This is useful when you are only interested in whether mouse buttons have been pressed but not when or in which order.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

onChar:Array<(codePoint:UInt) ‑> Void>

The callbacks to be called when a Unicode character is input.

The character callback is intended for Unicode text input. As it deals with characters, it is keyboard layout dependent, whereas the key callback is not. Characters do not map 1:1 to physical keys, as a key may produce zero, one or more characters. If you want to know whether a specific physical key was pressed or released, see the Window.onKey callback instead.

The character callback behaves as system text input normally does and will not be called if modifier keys are held down that would prevent normal text input on that platform, for example a Super (Command) key on macOS or Alt key on Windows. For that use Window.onCharModifiers.

Arguments:

  • codePoint The Unicode code point of the character.

To add a callback push a function to this array.

@:value([])onCharModifiers:Array<(codePoint:UInt, modifiers:Modifiers) ‑> Void> = []

Deprecated: "Scheduled for removal in GLFW version 4.0"

The callbacks to be called when a Unicode character is input regardless of what modifier keys are used.

The character with modifiers callback is intended for implementing custom Unicode character input. For regular Unicode text input, see the Window.onChar callback. Like the character callback, the character with modifiers callback deals with characters and is keyboard layout dependent. Characters do not map 1:1 to physical keys, as a key may produce zero, one or more characters. If you want to know whether a specific physical key was pressed or released, see the Window.onKey callback instead.

Arguments:

  • codePoint The Unicode code point of the character.
  • modifiers The modifier keys status.

To add a callback push a function to this array.

onClose:Array<() ‑> Void>

The callbacks to be called when the window is closed.

It is called when the user attempts to close the window, for example by clicking the close widget in the title bar.

The close flag is set before this callback is called, but you can modify it at any time with Window.shouldClose.

The close callback is not triggered by Window.destroy.

On MacOS selecting Quit from the application menu will trigger the close callback for all windows.

To add a callback push a function to this array.

onContentScaleChange:Array<(x:Float, y:Float) ‑> Void>

The callbacks to be called when the window's content scale change.

Arguments:

  • x The new x-axis content scale of the window.
  • y The new y-axis content scale of the window.

To add a callback push a function to this array.

See also:

onCursorHoverChange:Array<(inside:Bool) ‑> Void>

The callbacks to be called when the window's cursor enter or leave the window's content area.

Arguments:

  • inside True if the cursor is over the window's content area.

To add a callback push a function to this array.

onCursorPositionChange:Array<(x:Float, y:Float) ‑> Void>

The callbacks to be called when the window's cursor change position.

Arguments:

  • x The new cursor x-coordinate, relative to the left edge of the content area.
  • y The new cursor y-coordinate, relative to the left edge of the content area.

To add a callback push a function to this array.

onFocusChange:Array<(focused:Bool) ‑> Void>

The callbacks to be called when the window gains or loses input focus.

Arguments:

  • focused True if the window was given input focus, false if it lost it.

To add a callback push a function to this array.

onIconifyChange:Array<(iconified:Bool) ‑> Void>

The callbacks to be called when the window is iconified or restored.

Arguments:

  • iconified True if the window was iconified, false if it was restored.

To add a callback push a function to this array.

onKey:Array<(key:Key, scancode:Scancode, state:KeyState, modifiers:Modifiers) ‑> Void>

The callbacks to be called when a key is pressed, repeated or released.

This deals with physical keys, with layout independent Key tokens named after their values in the standard US keyboard layout. If you want to input text, use the Window.onChar callback instead.

When a window loses input focus, it will generate synthetic key release events for all pressed keys. You can tell these events from user-generated events by the fact that the synthetic ones are generated after the focus loss event has been processed, i.e. after the window focus callback has been called.

The scancode of a key is specific to that platform or sometimes even to that machine. Scancodes are intended to allow users to bind keys that don't have a GLFW key token. Such keys have key set to Key.Unknown, their state is not saved and so it cannot be queried with Window.getKeyState.

Sometimes GLFW needs to generate synthetic key events, in which case the scancode may be zero.

Arguments:

  • key The keyboard key that was pressed or released.
  • scancode The system-specific scancode of the key.
  • state The state of the key.
  • modifiers The modifier keys status.

onMaximizeChange:Array<(maximized:Bool) ‑> Void>

The callbacks to be called when the window is maximized or restored.

Arguments:

  • maximized True if the window was maximized, false if it was restored.

To add a callback push a function to this array.

onMouseButton:Array<(button:MouseButton, pressed:Bool, modifiers:Modifiers) ‑> Void>

The callbacks to be called when a mouse button is pressed or released.

When a window loses input focus, it will generate synthetic mouse button release events for all pressed mouse buttons. You can tell these events from user-generated events by the fact that the synthetic ones are generated after the focus loss event has been processed, i.e. after the Window.onFocusChange have been called.

Arguments:

  • button The button that was pressed or released.
  • pressed True if the button was pressed, false if released.
  • modifiers The modifier keys status.

To add a callback push a function to this array.

onMouseScroll:Array<(x:Float, y:Float) ‑> Void>

The callbacks to be called when a scrolling device is used, such as a mouse wheel or scrolling area of a touchpad.

Arguments:

  • x The scroll offset along the x-axis.
  • y The scroll offset along the y-axis.

To add a callback push a function to this array.

onPathDrop:Array<(paths:Array<String>) ‑> Void>

The callbacks to be called when one or more dragged paths are dropped on the window.

Arguments:

  • paths The array of UTF-8 encoded file and/or directory path names.

To add a callback push a function to this array.

onPositionChange:Array<(x:Int, y:Int) ‑> Void>

The callbacks to be called when the window is moved.

Arguments:

  • x The new x-coordinate, in screen coordinates, of the upper-left corner of the content area of the window.
  • y The new y-coordinate, in screen coordinates, of the upper-left corner of the content area of the window.

To add a callback push a function to this array.

onRefresh:Array<() ‑> Void>

The callbacks to be called when the content area of the window needs to be redrawn, for example if the window has been exposed after having been covered by another window.

On compositing window systems such as Aero, Compiz, Aqua or Wayland, where the window contents are saved off-screen, this callback may be called only very infrequently or never at all.

To add a callback push a function to this array.

onSizeChange:Array<(width:Int, height:Int) ‑> Void>

The callbacks to be called when the window is resized.

Arguments:

  • width The new width, in screen coordinates, of the window.
  • height The new height, in screen coordinates, of the window.

To add a callback push a function to this array.

opacity:Float

The opacity of the whole window, including any decorations.

The opacity (or alpha) value is a positive finite number between zero and one, where zero is fully transparent and one is fully opaque. If the system does not support whole window transparency, this is always one.

The initial opacity value for newly created windows is one.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

rawMouseMotion:Bool

Whether raw mouse motion is enabled.

Raw mouse motion is closer to the actual motion of the mouse across a surface. It is not affected by the scaling and acceleration applied to the motion of the desktop cursor. That processing is suitable for a cursor while raw motion is better for controlling for example a 3D camera. Because of this, raw mouse motion is only provided when the cursor is disabled.

Setting this to true if Window.rawMouseMotionSupported is false will leave it to false.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

read onlyrawMouseMotionSupported:Bool

Whether raw mouse motion is supported on the current system.

This status does not change after GLFW has been initialized so you only need to check this once.

Thread safety: This variable must only be used from the main thread.

Throws:

null

UseAfterDestroyException

See also:

resizable:Bool

Whether the windowed mode window will be resizable by the user. The window will still be resizable using the Window.setSize function.

This is ignored for fullscreen and undecorated windows.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

shouldClose:Bool

The close flag of the window.

Setting this can be used to override the user's attempt to close the window, or to signal that it should be closed.

Thread safety: This variable may be used from any thread. Access is not synchronized.

Throws:

null

UseAfterDestroyException

title:String

The title of the window.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

read onlyvisible:Bool

The current visibility state.

Thread safety: This variable must only be used from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

Methods

@:has_untypeddestroy():Void

Destroys the window.

On calling this function, no further callbacks will be called for that window.

Using the object after this will throw a UseAfterDestroyException exception.

Reentrancy: This function must not be called from a callback.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

@:has_untypedfocus():Void

Brings the window to front and sets input focus.

The window should already be visible and not iconified.

By default, both windowed and fullscreen mode windows are focused when initially created.

Also by default, windowed mode windows are focused when shown with Window.show. Set WindowOptions.focusOnShow or Window.focusOnShow to disable this behavior.

Do not use this function to steal focus from other applications unless you are certain that is what the user wants. Focus stealing can be extremely disruptive.

For a less disruptive way of getting the user's attention, see Window.requestAttention.

On wayland it is not possible for an application to bring its windows to front, this function will always throw an exception.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

@:has_untypedgetFullscreenMonitor():Monitor

Returns the monitor that the window uses for fullscreen mode.

Thread safety: This function must only be called from the main thread.

Throws:

NotFullscreenException

if the window is in windowed mode.

null

UseAfterDestroyException

@:has_untypedgetKeyState(key:Key):KeyState

Get a key state.

This returns the last state reported for the specified key to the window. The returned state is one of KeyState.Press or KeyState.Release. The higher-level action KeyState.Repeat is only reported to the Window.onKey callback.

This function only returns cached key event state. It does not poll the system for the current physical state of the key.

Whenever you poll state, you risk missing the state change you are looking for. If a pressed key is released again before you poll its state, you will have missed the key press. The recommended solution for this is to use a Window.onKey callback, but there is also the Window.keysSticky input mode.

If the Window.keysSticky input mode is set to true, this function returns KeyState.Press the first time you call it for a key that was pressed, even if that key has already been released.

The key functions deal with physical keys, with key tokens named after their use on the standard US keyboard layout. If you want to input text, use the Unicode Window.onChar callback instead.

Do not use this function to implement text input.

Thread safety: This function must only be called from the main thread.

Parameters:

key

The desired keyboard key. Key.Unknown is not a valid key for this function.

Returns:

The state of the key.

Throws:

null

UseAfterDestroyException

@:has_untypedgetMouseButton(button:MouseButton):Bool

Returns the last reported state of a mouse button.

If Window.mouseButtonSticky is true, this function returns true the first time you call it for a mouse button that was pressed, even if that mouse button has already been released.

Thread safety: This function must only be called from the main thread.

Parameters:

button

The mouse button to get.

Returns:

True if the button is pressed, false otherwise.

Throws:

null

UseAfterDestroyException

@:has_untypedgetPosition():{y:Int, x:Int}

Retrieves the position of the content area of the window.

This function retrieves the position, in screen coordinates, of the upper-left corner of the content area of window.

On wayland there is no way for an application to retrieve the global position of its windows, this function will always throw an exception.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

@:has_untypedgetSize():{width:Int, height:Int}

Retrieves the size, in screen coordinates, of the content area of the window.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

@:has_untypedhide():Void

Hides the window.

This function hides the window if it was previously visible. If the window is already hidden or is in fullscreen mode, this function does nothing.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

@:has_untypediconify():Void

Iconifies the window.

This function iconifies (minimizes) the specified window if it was previously restored. If the window is already iconified, this function does nothing.

If the window is a fullscreen window, the original monitor resolution is restored until the window is restored.

On wayland once a window is iconified, Window.restore won’t be able to restore it. This is a design decision of the xdg-shell protocol.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

@:has_untypedmaximize():Void

Maximizes the window.

This function maximizes the window if it was previously not maximized. If the window is already maximized, this function does nothing.

If the specified window is a fullscreen window, this function does nothing.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

@:has_untypednativeHandle():{windowsHWND:Star<Void>, macNSWindow:Star<Void>, linuxX11Window:UInt32, linuxX11Display:Star<Void>}

Obtain the native handle of the window.

On Windows windowsHWND will contain the HWND of the window, all other fields will be empty.

On MacOS macNSWindow will contain the NSWindow of the window, all other fields will be empty.

On Linux X11 linuxX11Display will contain Display used by GLFW and linuxX11Window the Window of the window, all other fields will be empty.

Thread safety: This function may be called from any thread. Access is not synchronized.

Throws:

null

UseAfterDestroyException

@:has_untypedrequestAttention():Void

Requests user attention to the window.

On platforms where this is not supported, attention is requested to the application as a whole.

Once the user has given attention, usually by focusing the window or application, the system will end the request automatically.

On MacOS attention is requested to the application as a whole, not the specific window.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

@:has_untypedrestore():Void

Restores the window.

This function restores the window if it was previously iconified (minimized) or maximized. If the window is already restored, this function does nothing.

If the window is a fullscreen window, the resolution chosen for the window is restored on the selected monitor.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

@:has_untypedsetAspectRatio(numerator:Int, denominator:Int):Void

Sets the required aspect ratio of the content area of the window.

If the window is fullscreen, the aspect ratio only takes effect once it is made windowed.

If the window is not resizable, this function does nothing.

The aspect ratio is specified as a numerator and a denominator and both values must be greater than zero. For example, the common 16:9 aspect ratio is specified as 16 and 9, respectively.

The aspect ratio is applied immediately to a windowed mode window and may cause it to be resized.

If you set size limits and an aspect ratio that conflict, the results are undefined.

On wayland the aspect ratio will not be applied until the window is actually resized, either by the user or by the compositor.

Thread safety: This function must only be called from the main thread.

Parameters:

numerator

The numerator of the desired aspect ratio.

denominator

The denominator of the desired aspect ratio.

Throws:

PlatformErrorException
null

UseAfterDestroyException

@:has_untypedsetFullscreenMonitor(monitor:Null<Monitor>, x:Int, y:Int, width:Int, height:Int, ?refreshRate:Int):Void

Sets the monitor that the window uses for fullscreen mode or, if monitor is null, makes it windowed mode.

When setting a monitor, this function updates the width, height and refresh rate of the desired video mode and switches to the video mode closest to it.

The window position is ignored when setting a monitor.

When monitor is null, the position x and y, width and height are used to place the window content area. The refresh rate refreshRate is ignored when no monitor is specified.

If you only wish to update the resolution of a fullscreen window or the size of a windowed mode window, see Window.setSize.

When a window transitions from full screen to windowed mode, this function restores any previous window settings such as whether it is decorated, floating, resizable, has size or aspect ratio limits, etc.

On wayland the desired window position is ignored, as there is no way for an application to set this property.

On wayland setting the window to fullscreen will not attempt to change the mode, no matter what the requested size or refresh rate.

Thread safety: This function must only be called from the main thread.

Parameters:

monitor

The desired monitor, or null to set windowed mode.

x

The desired x-coordinate of the upper-left corner of the content area.

y

The desired y-coordinate of the upper-left corner of the content area.

width

The desired with, in screen coordinates, of the content area or video mode.

height

The desired height, in screen coordinates, of the content area or video mode.

refreshRate

Optional, the desired refresh rate, in Hz, of the video mode.

Throws:

PlatformErrorException
null

UseAfterDestroyException

@:has_untypedsetIcon(icons:Array<Image>):Void

Sets the icon of the window.

If passed several candidate images, those of or closest to the sizes desired by the system are selected.

If an empty array is passed, the window reverts to its default icon.

The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. They are arranged canonically as packed sequential rows, starting from the top-left corner.

The desired image sizes varies depending on platform and system settings. The selected images will be rescaled as needed. Good sizes include 16x16, 32x32 and 48x48.

On MacOS the GLFW window has no icon, as it is not a document window, so this function does nothing. The dock icon will be the same as the application bundle's icon. For more information on bundles, see the Bundle Programming Guide in the Mac Developer Library.

On wayland there is no existing protocol to change an icon, the window will thus inherit the one defined in the application's desktop file. This function will always throw an exception.

Thread safety: This function must only be called from the main thread.

Parameters:

icons

The images to create the icon from, or an empty array to revert to the default window icon.

Throws:

PlatformErrorException
null

UseAfterDestroyException

@:has_untypedsetPosition(x:Int, y:Int):Void

Sets the position, in screen coordinates, of the upper-left corner of the content area of the windowed mode window.

If the window is a fullscreen window, this function does nothing.

Do not use this function to move an already visible window unless you have very good reasons for doing so, as it will confuse and annoy the user.

The window manager may put limits on what positions are allowed. GLFW cannot and should not override these limits.

On wayland there is no way for an application to set the global position of its windows, this function will always throw an exception.

Thread safety: This function must only be called from the main thread.

Parameters:

x

The x-coordinate of the upper-left corner of the content area.

y

The y-coordinate of the upper-left corner of the content area.

Throws:

PlatformErrorException
null

UseAfterDestroyException

@:has_untypedsetSize(width:Int, height:Int):Void

Sets the size, in screen coordinates, of the content area of the window.

For fullscreen windows, this function updates the resolution of its desired video mode and switches to the video mode closest to it.

If you wish to update the refresh rate of the desired video mode in addition to its resolution, see Window.setFullscreenMonitor.

The window manager may put limits on what sizes are allowed. GLFW cannot and should not override these limits.

On wayland a fullscreen window will not attempt to change the mode, no matter what the requested size.

Thread safety: This function must only be called from the main thread.

Parameters:

width

The desired width, in screen coordinates, of the window content area.

height

The desired height, in screen coordinates, of the window content area.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also:

@:has_untypedsetSizeLimits(minWidth:Int, minHeight:Int, maxWidth:Int, maxHeight:Int):Void

Sets the size limits of the content area of the window.

If the window is fullscreen, the size limits only take effect once it is made windowed.

If the window is not resizable, this function does nothing.

The size limits are applied immediately to a windowed mode window and may cause it to be resized.

The maximum dimensions must be greater than or equal to the minimum dimensions and all must be greater than or equal to zero.

If you set size limits and an aspect ratio that conflict, the results are undefined.

On wayland the size limits will not be applied until the window is actually resized, either by the user or by the compositor.

Thread safety: This function must only be called from the main thread.

Parameters:

minWidth

The minimum width, in screen coordinates, of the content area.

minHeight

The minimum height, in screen coordinates, of the content area.

maxWidth

The maximum width, in screen coordinates, of the content area.

maxHeight

The maximum height, in screen coordinates, of the content area.

Throws:

PlatformErrorException
null

UseAfterDestroyException

@:has_untypedshow():Void

Makes the window visible if it was previously hidden.

If the window is already visible or is in full screen mode, this function does nothing.

By default, windowed mode windows are focused when shown, set WindowOptions.focusOnShow or Window.focusOnShow to change this behavior.

Thread safety: This function must only be called from the main thread.

Throws:

PlatformErrorException
null

UseAfterDestroyException

See also: