#include <gui.h>
Public Member Functions | |
Gui (irr::IrrlichtDevice *d, irr::core::stringc name, irr::core::rect< irr::s32 > position) | |
~Gui () | |
void | addSlider (irr::s32 id, irr::core::stringw text, irr::s32 initialValue) |
irr::s32 | getSliderValue (irr::s32 id) |
void | addButton (irr::s32 id, irr::core::stringw text) |
void | addText (irr::s32 id, irr::core::stringw text) |
void | setVisible (bool visible) |
bool | isVisible (void) |
irr::core::stringc | getTextFromID (irr::s32 id) |
void | setTextFromID (irr::s32 id, irr::core::stringw text) |
void | bringToFront (void) |
Sets root window top most. |
As you call addSlider(), addButton() or addText() a representative GUI element will be created and added to a IGUIWindow. As you implement an irr::IEventReceiver and have set it as current receiver inside irrlicht system, you will receive all GUI events and thus have to handle them. The root window grows when more elements were added than inital window can fit in.
Definition at line 13 of file gui.h.
|
Constructor. Will create a IGUIWindow in which you can add elements with addSlider(), ...
|
|
Destructor. Removes all added GUI emenets and the IGUIWindow. |
|
Puts a button right under the last added GUI element.
Referenced by StateTerrain::entry(), StateMenu::entry(), and StateFlockSimulation::entry(). |
|
Puts a horizontal slider right under the last added GUI element.
Referenced by StateFlockSimulation::entry(). |
|
Puts a satic text right under the last added GUI element.
Referenced by StateFlockSimulation::entry(). |
|
Gets position (current value) of the movalble slider thing.
|
|
|
|
Useful to control menus on/off by keyboard input.
|
|
Usefule to store text in GUI text and button elements.
|
|
Disables GUI drawing, no GUI will be seen.
Definition at line 142 of file gui.cpp. Referenced by StateTerrain::entry(). |