How to create IGUIWindows by drawable area?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Tobias314
Posts: 10
Joined: Thu Oct 20, 2011 6:27 pm

How to create IGUIWindows by drawable area?

Post by Tobias314 »

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?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to create IGUIWindows by drawable area?

Post by CuteAlien »

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
Post Reply