#include <MyGUI_LayoutManager.h>
Definition at line 23 of file MyGUI_LayoutManager.h.
◆ LayoutManager()
MyGUI::LayoutManager::LayoutManager |
( |
| ) |
|
◆ getByName()
ResourceLayout * MyGUI::LayoutManager::getByName |
( |
const std::string & |
_name, |
|
|
bool |
_throw = true |
|
) |
| const |
◆ getClassTypeName()
static const char * MyGUI::LayoutManager::getClassTypeName |
( |
| ) |
|
|
static |
◆ getCurrentLayout()
const std::string & MyGUI::LayoutManager::getCurrentLayout |
( |
| ) |
const |
◆ getInstance()
◆ getInstancePtr()
◆ initialise()
void MyGUI::LayoutManager::initialise |
( |
| ) |
|
◆ isExist()
bool MyGUI::LayoutManager::isExist |
( |
const std::string & |
_name | ) |
const |
◆ loadLayout()
VectorWidgetPtr MyGUI::LayoutManager::loadLayout |
( |
const std::string & |
_file, |
|
|
const std::string & |
_prefix = "" , |
|
|
Widget * |
_parent = nullptr |
|
) |
| |
Load layout file
- Parameters
-
_file | name of layout |
_prefix | will be added to all loaded widgets names |
_parent | widget to load on |
- Returns
- Return vector of pointers of loaded root widgets (root == without parents)
Definition at line 59 of file MyGUI_LayoutManager.cpp.
◆ shutdown()
void MyGUI::LayoutManager::shutdown |
( |
| ) |
|
◆ unloadLayout()
Unload layout (actually deletes vector of widgets returned by loadLayout)
Definition at line 81 of file MyGUI_LayoutManager.cpp.
◆ eventAddUserString
Event : Multidelegate. UserString was added from layout.
signature : void method(MyGUI::Widget* _widget, const std::string& _key, const std::string& _value)
- Parameters
-
_widget | Widget that got new UserString. |
_key | UserString key. |
_key | UserString value. |
- Note
- Happens only when UserString was loaded from layout, but not when it was added in code.
Definition at line 66 of file MyGUI_LayoutManager.h.
◆ eventCreateWidget
Event : Multidelegate. Widget was created from layout.
signature : void method(MyGUI::Widget* _sender, const MyGUI::WidgetInfo& _widgetInfo)
- Parameters
-
_widget | Widget that got new UserString. |
_key | UserString key. |
_key | UserString value. |
- Note
- Happens only when Widget was loaded from layout, but not when it was created in code.
Definition at line 57 of file MyGUI_LayoutManager.h.
The documentation for this class was generated from the following files: