Public Member Functions | Static Public Member Functions

MyGUI::LayoutManager Class Reference

#include <MyGUI_LayoutManager.h>

Public Member Functions

 LayoutManager ()
 ~LayoutManager ()
void initialise ()
void shutdown ()
VectorWidgetPtrload (const std::string &_file)
void _load (xml::ElementPtr _node, const std::string &_file, Version _version)
VectorWidgetPtrloadLayout (const std::string &_file, const std::string &_prefix="", WidgetPtr _parent=0)
void unloadLayout (VectorWidgetPtr &_widgets)

Static Public Member Functions

static LayoutManagergetInstance ()
static LayoutManagergetInstancePtr ()

Detailed Description

Definition at line 35 of file MyGUI_LayoutManager.h.


Constructor & Destructor Documentation

MyGUI::LayoutManager::LayoutManager (  ) 

Definition at line 38 of file MyGUI_LayoutManager.cpp.

MyGUI::LayoutManager::~LayoutManager (  ) 

Definition at line 38 of file MyGUI_LayoutManager.cpp.


Member Function Documentation

void MyGUI::LayoutManager::_load ( xml::ElementPtr  _node,
const std::string &  _file,
Version  _version 
)

Definition at line 71 of file MyGUI_LayoutManager.cpp.

LayoutManager & MyGUI::LayoutManager::getInstance (  )  [static]

Definition at line 38 of file MyGUI_LayoutManager.cpp.

LayoutManager * MyGUI::LayoutManager::getInstancePtr (  )  [static]

Definition at line 38 of file MyGUI_LayoutManager.cpp.

void MyGUI::LayoutManager::initialise (  ) 

Definition at line 40 of file MyGUI_LayoutManager.cpp.

VectorWidgetPtr & MyGUI::LayoutManager::load ( const std::string &  _file  ) 

Load layout file

Parameters:
_file name of layout
_group MyGUI resource group where _file is
Returns:
Return vector of pointers of loaded root widgets (root == without parents)

Definition at line 64 of file MyGUI_LayoutManager.cpp.

VectorWidgetPtr & MyGUI::LayoutManager::loadLayout ( const std::string &  _file,
const std::string &  _prefix = "",
WidgetPtr  _parent = 0 
)

Load layout file

Parameters:
_file name of layout
_prefix will be added to all loaded widgets names
_parent widget to load on
_group MyGUI resource group where _file is
Returns:
Return vector of pointers of loaded root widgets (root == without parents)

Definition at line 79 of file MyGUI_LayoutManager.cpp.

void MyGUI::LayoutManager::shutdown (  ) 

Definition at line 53 of file MyGUI_LayoutManager.cpp.

void MyGUI::LayoutManager::unloadLayout ( VectorWidgetPtr _widgets  ) 

Unload layout file

Definition at line 92 of file MyGUI_LayoutManager.cpp.


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