Public Member Functions

sp::gui::GUIWindow Class Reference
[Built in GUI]

#include <spGUIWindow.hpp>

Inheritance diagram for sp::gui::GUIWindow:
sp::gui::GUIController sp::gui::GUIScrollViewBased sp::gui::GUIBaseObject

List of all members.

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.
GUIButtonGadgetaddButtonGadget (const dim::point2di &Position, const dim::size2di &Size, const io::stringc &Text="", s32 Flags=0)
GUICheckboxGadgetaddCheckboxGadget (const dim::point2di &Position, const dim::size2di &Size, const io::stringc &Text="", s32 Flags=0)
GUIContainerGadgetaddContainerGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Flags=0)
GUIListGadgetaddListGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Flags=0)
GUIProgressbarGadgetaddProgressbarGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Range=100, s32 Flags=0)
GUIScrollbarGadgetaddScrollbarGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Range=100, s32 Flags=0)
GUIStringGadgetaddStringGadget (const dim::point2di &Position, const dim::size2di &Size, const io::stringc &Text="", s32 Flags=0)
GUITextGadgetaddTextGadget (const dim::point2di &Position, const dim::size2di &Size, const io::stringc &Text="", s32 Flags=0)
GUITrackbarGadgetaddTrackbarGadget (const dim::point2di &Position, const dim::size2di &Size, s32 MinRange=0, s32 MaxRange=100, s32 Flags=0)
GUITreeGadgetaddTreeGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Flags=0)
GUIWebGadgetaddWebGadget (const dim::point2di &Position, const dim::size2di &Size, s32 Flags=0)
GUIMenuItemgetMenuRoot () 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

Detailed Description

Main GUI window class.


Constructor & Destructor Documentation

sp::gui::GUIWindow::GUIWindow (  ) 
sp::gui::GUIWindow::~GUIWindow (  ) 

Member Function Documentation

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 (  ) 

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines