Logo Search packages:      
Sourcecode: blender version File versions

GHOST_RectangleHandle GHOST_GetWindowBounds ( GHOST_WindowHandle  windowhandle  ) 

Returns the window rectangle dimensions. These are screen coordinates.

Parameters:
windowhandle The handle to the window
Returns:
A handle to the bounding rectangle of the window.

Definition at line 507 of file GHOST_C-api.cpp.

References GHOST_IWindow::getWindowBounds(), and GHOST_GetWindowBounds().

Referenced by GHOST_GetWindowBounds().

{
      GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
      GHOST_Rect* rectangle = NULL;

      rectangle = new GHOST_Rect();
      window->getWindowBounds(*rectangle);

      return (GHOST_RectangleHandle)rectangle;
}


Generated by  Doxygen 1.6.0   Back to index