Moving a IGUIWindow?

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
danielmccarthy
Posts: 51
Joined: Fri May 30, 2014 12:55 am

Moving a IGUIWindow?

Post by danielmccarthy »

I know you can set the position of a window while creating it but how do you move a window?

The IGUIWindow header does not contain a setPosition method like nodes do?

Is their any way to move a window?

Many thanks,
Dan
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Re: Moving a IGUIWindow?

Post by Seven »

Settelativeposition and the updateabsoluteposition
Set relative sets the position and size relative to the parent so rect 0 20 120 200 would resize it to 120 wide and 180 tall and place it at parent's screen coord + 0 x and + 20 y
Updateabsoluteposition will then make the actual changes
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Moving a IGUIWindow?

Post by CuteAlien »

IGUIWindow is derived from IGUIElement - so you can use all IGUIElement functions for it as well.
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