glfwShowWindow function

void glfwShowWindow(
  1. Pointer<GLFWwindow> window
)

! @brief Makes the specified window visible.

This function makes the specified 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 the GLFW_FOCUS_ON_SHOW(@ref GLFW_FOCUS_ON_SHOW_hint) window hint to change this behavior for all newly created windows, or change the behavior for an existing window with @ref glfwSetWindowAttrib.

@paramin window The window to make visible.

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

@remark @wayland Because Wayland wants every frame of the desktop to be complete, this function does not immediately make the window visible. Instead it will become visible the next time the window framebuffer is updated after this call.

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

@sa @ref window_hide @sa @ref glfwHideWindow

@since Added in version 3.0.

@ingroup window

GLFWAPI void glfwShowWindow(GLFWwindow* window)

Implementation

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