#include <MyGUI_LayoutManager.h>
Definition at line 26 of file MyGUI_LayoutManager.h.
◆ LayoutManager() [1/2]
◆ LayoutManager() [2/2]
| MyGUI::LayoutManager::LayoutManager |
( |
| ) |
|
◆ getByName()
| ResourceLayout * MyGUI::LayoutManager::getByName |
( |
std::string_view | _name, |
|
|
bool | _throw = true ) const |
◆ getClassTypeName()
| std::string_view MyGUI::LayoutManager::getClassTypeName |
( |
| ) |
|
|
static |
◆ getCurrentLayout()
| const std::string & MyGUI::LayoutManager::getCurrentLayout |
( |
| ) |
const |
◆ getInstance()
◆ getInstancePtr()
◆ initialise()
| void MyGUI::LayoutManager::initialise |
( |
| ) |
|
◆ isExist()
| bool MyGUI::LayoutManager::isExist |
( |
std::string_view | _name | ) |
const |
◆ loadLayout()
| VectorWidgetPtr MyGUI::LayoutManager::loadLayout |
( |
std::string_view | _file, |
|
|
std::string_view | _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.
◆ operator=()
◆ 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, std::string_view _key, std::string_view _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 69 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 60 of file MyGUI_LayoutManager.h.
The documentation for this class was generated from the following files: