UiActionComponent Class
Associates an action identifier with a UI element. More...
Declaration
Public Constructors Index
| UiActionComponent (const helios::engine::modules::ui::widgets::types::ActionId actionId) noexcept | |
|
Constructs the component with the given action ID. More... | |
Public Member Functions Index
| helios::engine::modules::ui::widgets::types::ActionId | actionId () const noexcept |
|
Returns the associated action identifier. More... | |
Private Member Attributes Index
| helios::engine::modules::ui::widgets::types::ActionId | actionId_ |
|
The action identifier associated with this UI element. More... | |
Description
Associates an action identifier with a UI element.
When a UI element (e.g., menu item) is activated, the associated ActionId can be used to trigger the corresponding action.
Definition at line 19 of file UiActionComponent.ixx.
Public Constructors
UiActionComponent()
| inline explicit noexcept |
Constructs the component with the given action ID.
- Parameters
-
actionId The action identifier to associate.
Definition at line 33 of file UiActionComponent.ixx.
Reference actionId.
Public Member Functions
actionId()
| inline nodiscard noexcept |
Returns the associated action identifier.
- Returns
The ActionId.
Definition at line 42 of file UiActionComponent.ixx.
Referenced by UiActionComponent.
Private Member Attributes
actionId_
|
The action identifier associated with this UI element.
Definition at line 24 of file UiActionComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.