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?
Re: How can I get the top level size of a GLWindow?
Administrator
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).
Re: How can I get the top level size of a GLWindow?
Administrator
Ok. I should check that the native window has been created before using it. Why not adding a method getTopLevelSize() which would return such a size with the same restriction than getTopLevelSize()?