#include <GUIContainer.hpp>
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. | |
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.
| syBR::Game::GUIContainer::GUIContainer | ( | GUIManager * | pManager | ) |
Constructor.
| pManager | GUI manager using this widget |
| syBR::Game::GUIContainer::~GUIContainer | ( | ) | [virtual] |
Destructor.
Release used resources and recursively delete children.
| bool syBR::Game::GUIContainer::load | ( | Core::XMLNode * | pNode | ) | [virtual] |
| void syBR::Game::GUIContainer::render | ( | std::vector< GUIManager::Quad > & | renderList | ) | [virtual] |
Render the widget.
Render the widget and its subcomponents.
| 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.
| pChild | Pointer to the child widget to be added to the list |
std::vector<GUIWidget *> syBR::Game::GUIContainer::m_vChildren [protected] |
List of subcomponents.
Copyright © 2008 by Sebastien Frippiat

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