glfwIconifyWindow

Iconifies the specified 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 specified window is a full screen window, the original monitor resolution is restored until the window is restored.

extern (C) @nogc nothrow __gshared
void
glfwIconifyWindow

Parameters

window GLFWwindow*

The window to iconify.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_PLATFORM_ERROR.

@remark @wayland There is no concept of iconification in wl_shell, this function will emit @ref GLFW_PLATFORM_ERROR when using this deprecated protocol.

Thread Safety

This function must only be called from the main thread.

@sa @ref window_iconify @sa @ref glfwRestoreWindow @sa @ref glfwMaximizeWindow

Meta

Since

Added in version 2.1. @glfw3 Added window handle parameter.

Ingroup: window