How to create IGUIWindows by drawable area?
How to create IGUIWindows by drawable area?
I'm attempting to populate a window with child buttons, but I can't seem to find how to get the default titlebar, margins, etc areas or set them before I actually create the window. I could easily count the pixels, but that doesn't seem very programmatic. What am I missing? How do I calculate what the drawable area will be before I create the element?
Re: How to create IGUIWindows by drawable area?
Yeah, sorry - the way skins are used by gui-elements is still badly documented. The window does use draw3DWindowBackground from the skin. That function takes checkClientArea as last parameter and if you pass a non-null parameter there it does not draw but just returns the client-rectangle area.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm