#include <spGUIWindow.hpp>
Public Member Functions | |
GUIWindow () | |
~GUIWindow () | |
bool | update () |
void | draw () |
dim::rect2di | getLocalViewArea (const GUIController *Obj=0) const |
dim::point2di | getViewOrigin () const |
void | setSize (const dim::size2di &Size) |
void | close () |
Closes the window. | |
void | maximize () |
Maximizes the window. | |
void | minimize () |
Minimizes the window. | |
void | normalize () |
Normalizes the window (when it was minimized or maximized before). | |
void | setMenuRoot (GUIMenuItem *MenuRoot) |
Sets the main menu of the window. If 0 the last menu will be removed. | |
GUIButtonGadget * | addButtonGadget (const dim::point2di &Position, const dim::size2di &Size, const io::stringc &Text="", s32 Flags=0) |
GUICheckboxGadget * | addCheckboxGadget (const dim::point2di &Position, const dim::size2di &Size, const io::stringc &Text="", s32 Flags=0) |
GUIContainerGadget * | addContainerGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Flags=0) |
GUIListGadget * | addListGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Flags=0) |
GUIProgressbarGadget * | addProgressbarGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Range=100, s32 Flags=0) |
GUIScrollbarGadget * | addScrollbarGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Range=100, s32 Flags=0) |
GUIStringGadget * | addStringGadget (const dim::point2di &Position, const dim::size2di &Size, const io::stringc &Text="", s32 Flags=0) |
GUITextGadget * | addTextGadget (const dim::point2di &Position, const dim::size2di &Size, const io::stringc &Text="", s32 Flags=0) |
GUITrackbarGadget * | addTrackbarGadget (const dim::point2di &Position, const dim::size2di &Size, s32 MinRange=0, s32 MaxRange=100, s32 Flags=0) |
GUITreeGadget * | addTreeGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Flags=0) |
GUIWebGadget * | addWebGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Flags=0) |
GUIMenuItem * | getMenuRoot () const |
Returns pointer to a GUIMenuItem object which is currently used as main menu entry point. | |
void | setGadgetOrigin (const dim::point2di &Position) |
Sets the origin position for each new gadget. | |
dim::point2di | getGadgetOrigin () const |
Main GUI window class.
sp::gui::GUIWindow::GUIWindow | ( | ) |
sp::gui::GUIWindow::~GUIWindow | ( | ) |
GUIButtonGadget * sp::gui::GUIWindow::addButtonGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
const io::stringc & | Text = "" , |
|||
s32 | Flags = 0 | |||
) |
GUICheckboxGadget * sp::gui::GUIWindow::addCheckboxGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
const io::stringc & | Text = "" , |
|||
s32 | Flags = 0 | |||
) |
GUIContainerGadget * sp::gui::GUIWindow::addContainerGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
s32 | Flags = 0 | |||
) |
GUIListGadget * sp::gui::GUIWindow::addListGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
s32 | Flags = 0 | |||
) |
GUIProgressbarGadget * sp::gui::GUIWindow::addProgressbarGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
s32 | Range = 100 , |
|||
s32 | Flags = 0 | |||
) |
GUIScrollbarGadget * sp::gui::GUIWindow::addScrollbarGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
s32 | Range = 100 , |
|||
s32 | Flags = 0 | |||
) |
GUIStringGadget * sp::gui::GUIWindow::addStringGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
const io::stringc & | Text = "" , |
|||
s32 | Flags = 0 | |||
) |
GUITextGadget * sp::gui::GUIWindow::addTextGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
const io::stringc & | Text = "" , |
|||
s32 | Flags = 0 | |||
) |
GUITrackbarGadget * sp::gui::GUIWindow::addTrackbarGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
s32 | MinRange = 0 , |
|||
s32 | MaxRange = 100 , |
|||
s32 | Flags = 0 | |||
) |
GUITreeGadget * sp::gui::GUIWindow::addTreeGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
s32 | Flags = 0 | |||
) |
GUIWebGadget * sp::gui::GUIWindow::addWebGadget | ( | const dim::point2di & | Position, | |
const dim::size2di & | Size, | |||
s32 | Flags = 0 | |||
) |
void sp::gui::GUIWindow::close | ( | ) |
Closes the window.
void sp::gui::GUIWindow::draw | ( | ) |
dim::point2di sp::gui::GUIWindow::getGadgetOrigin | ( | ) | const [inline] |
dim::rect2di sp::gui::GUIWindow::getLocalViewArea | ( | const GUIController * | Obj = 0 |
) | const |
GUIMenuItem* sp::gui::GUIWindow::getMenuRoot | ( | ) | const [inline] |
Returns pointer to a GUIMenuItem object which is currently used as main menu entry point.
dim::point2di sp::gui::GUIWindow::getViewOrigin | ( | ) | const |
void sp::gui::GUIWindow::maximize | ( | ) |
Maximizes the window.
void sp::gui::GUIWindow::minimize | ( | ) |
Minimizes the window.
void sp::gui::GUIWindow::normalize | ( | ) |
Normalizes the window (when it was minimized or maximized before).
void sp::gui::GUIWindow::setGadgetOrigin | ( | const dim::point2di & | Position | ) | [inline] |
Sets the origin position for each new gadget.
void sp::gui::GUIWindow::setMenuRoot | ( | GUIMenuItem * | MenuRoot | ) |
Sets the main menu of the window. If 0 the last menu will be removed.
void sp::gui::GUIWindow::setSize | ( | const dim::size2di & | Size | ) |
bool sp::gui::GUIWindow::update | ( | ) |