Login  Register

Re: How can I get the top level size of a GLWindow?

Posted by Sven Gothel on Dec 05, 2011; 11:55pm
URL: https://forum.jogamp.org/How-can-I-get-the-top-level-size-of-a-GLWindow-tp3562705p3563031.html

On Monday, December 05, 2011 10:31:09 PM gouessej [via jogamp] wrote:
>
> Hi
>
> GLWindow.getHeight() and GLWindow.getWidth() return the size of its
> GLDrawable instance, I assume it doesn't return the whole size of the window
> including its decorations if any. How can I get such a size?

Adding the Insets values. Same restrictions as in setTopLevelSize(),
see API doc (only valid/avail after native window creation).

~Sven