glfwGetWindowFrameSize function

void glfwGetWindowFrameSize(
  1. Pointer<GLFWwindow> window,
  2. Pointer<Int32> left,
  3. Pointer<Int32> top,
  4. Pointer<Int32> right,
  5. Pointer<Int32> bottom,
)

! @brief Retrieves the size of the frame of the window.

This function retrieves the size, in screen coordinates, of each edge of the frame of the specified window. This size includes the title bar, if the window has one. The size of the frame may vary depending on the window-related hints(@ref window_hints_wnd) used to create it.

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.

Any or all of the size arguments may be NULL. If an error occurs, all non-NULL size arguments will be set to zero.

@paramin window The window whose frame size to query. @paramout left Where to store the size, in screen coordinates, of the left edge of the window frame, or NULL. @paramout top Where to store the size, in screen coordinates, of the top edge of the window frame, or NULL. @paramout right Where to store the size, in screen coordinates, of the right edge of the window frame, or NULL. @paramout bottom Where to store the size, in screen coordinates, of the bottom edge of the window frame, or NULL.

@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_size

@since Added in version 3.1.

@ingroup window

GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom)

Implementation

void glfwGetWindowFrameSize(Pointer<GLFWwindow> window, Pointer<Int32> left,
    Pointer<Int32> top, Pointer<Int32> right, Pointer<Int32> bottom) {
  final glfwGetWindowFrameSizeLookupFunction = libglfw.lookupFunction<
      Void Function(Pointer<GLFWwindow> window, Pointer<Int32> left,
          Pointer<Int32> top, Pointer<Int32> right, Pointer<Int32> bottom),
      void Function(
          Pointer<GLFWwindow> window,
          Pointer<Int32> left,
          Pointer<Int32> top,
          Pointer<Int32> right,
          Pointer<Int32> bottom)>('glfwGetWindowFrameSize');
  return glfwGetWindowFrameSizeLookupFunction(window, left, top, right, bottom);
}