Widget component which can tap to MenuRootBase events.
More...
Widget component which can tap to MenuRootBase events.
Doesn't need to be added manually, will be created the first time GetComponent() function is called. Subcomponents (MenuRootSubComponent) can access menu and its handlers through this root.
◆ AddComponent()
Register subcomponent to this root component.
- Parameters
-
◆ ExecInit()
void MenuRootComponent.ExecInit |
( |
Widget |
w | ) |
|
|
protected |
◆ FindComponent()
Find first subcomponent of given type.
- Parameters
-
- Returns
- Subcomponent
◆ FindComponents()
int MenuRootComponent.FindComponents |
( |
TypeName |
type, |
|
|
notnull out array< MenuRootSubComponent > |
outComponents |
|
) |
| |
Find all subcomponents of given type.
- Parameters
-
| type | Subcomponent type |
[out] | outCOmponents | Array to be filled with all compatible subcomponents |
- Returns
- Number of matching subcomponents
◆ GetMenu()
Get the menu instance.
- Returns
- Menu
◆ GetRootOf() [1/2]
Get the component.
- Parameters
-
menu | Menu of which the root widget is used |
- Returns
- Root component on which events can be invoked.
◆ GetRootOf() [2/2]
Get the component.
- Parameters
-
widget | Widget of which the root widget is used |
- Returns
- Root component to which events can be attached
◆ GetWidget()
Widget MenuRootComponent.GetWidget |
( |
| ) |
|
Get widget to which the component belongs to.
- Returns
- Widget
◆ HandlerAttached()
override void MenuRootComponent.HandlerAttached |
( |
Widget |
w | ) |
|
◆ Init()
◆ InitNotRoot()
void MenuRootComponent.InitNotRoot |
( |
| ) |
|
|
protected |
◆ RemoveComponent()
Unregister subcomponent from this root component.
- Parameters
-
◆ m_aComponents
◆ m_Menu
◆ m_Widget
Widget MenuRootComponent.m_Widget |
|
protected |
The documentation for this interface was generated from the following file:
- Game/UI/Components/MenuRootComponent.c