glfwIconifyWindow function

void glfwIconifyWindow(
  1. Pointer<GLFWwindow> window
)

! @brief 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, GLFW restores the original video mode of the monitor. The window's desired video mode is set again when the window is restored.

@paramin window The window to iconify.

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

@thread_safety This function must only be called from the main thread.

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

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

@ingroup window

GLFWAPI void glfwIconifyWindow(GLFWwindow* window)

Implementation

void glfwIconifyWindow(Pointer<GLFWwindow> window) {
  final glfwIconifyWindowLookupFunction = libglfw.lookupFunction<
      Void Function(Pointer<GLFWwindow> window),
      void Function(Pointer<GLFWwindow> window)>('glfwIconifyWindow');
  return glfwIconifyWindowLookupFunction(window);
}