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
Moving a IGUIWindow?
Re: Moving a IGUIWindow?
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
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
Re: Moving a IGUIWindow?
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm