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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

gouessej
Administrator
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?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
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).

~Sven
Reply | Threaded
Open this post in threaded view
|

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

gouessej
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()?
Julien Gouesse | Personal blog | Website