syBR::Game::GUIContainer Class Reference

GUI container widget class. More...

#include <GUIContainer.hpp>

Inheritance diagram for syBR::Game::GUIContainer:

syBR::Game::GUIWidget

List of all members.

Public Member Functions

 GUIContainer (GUIManager *pManager)
 Constructor.
virtual ~GUIContainer ()
 Destructor.
bool load (Core::XMLNode *pNode)
 Load the widget.
virtual void render (std::vector< GUIManager::Quad > &renderList)
 Render the widget.
void insert (GUIWidget *pChild)
 Insert a child to the end of the children list.

Protected Attributes

std::vector
< GUIWidget * > 
m_vChildren
 List of subcomponents.


Detailed Description

GUI container widget class.

It is the base container composent of the GUI, from which every GUI container must inherit. It does nothing when being rendered except recursively rendering children widgets.


Constructor & Destructor Documentation

syBR::Game::GUIContainer::GUIContainer ( GUIManager pManager  ) 

Constructor.

Parameters:
pManager GUI manager using this widget

syBR::Game::GUIContainer::~GUIContainer (  )  [virtual]

Destructor.

Release used resources and recursively delete children.


Member Function Documentation

bool syBR::Game::GUIContainer::load ( Core::XMLNode pNode  )  [virtual]

Load the widget.

Implements syBR::Game::GUIWidget.

void syBR::Game::GUIContainer::render ( std::vector< GUIManager::Quad > &  renderList  )  [virtual]

Render the widget.

Render the widget and its subcomponents.

Parameters:
renderList List of renderables where all the renderables of this widget and its subcomponents will be pushed back

Reimplemented from syBR::Game::GUIWidget.

void syBR::Game::GUIContainer::insert ( GUIWidget pChild  ) 

Insert a child to the end of the children list.

Parameters:
pChild Pointer to the child widget to be added to the list


Member Data Documentation

std::vector<GUIWidget *> syBR::Game::GUIContainer::m_vChildren [protected]

List of subcomponents.


The documentation for this class was generated from the following files:

Copyright © 2008 by Sebastien Frippiat
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:33 2008