UiActionCommand Class
A command that encapsulates a UI action request. More...
Declaration
Public Constructors Index
| UiActionCommand (const helios::engine::ecs::EntityHandle source, const helios::engine::modules::ui::widgets::types::ActionId actionId) | |
|
Constructs a command with source entity and action ID. More... | |
Public Member Functions Index
| helios::engine::ecs::EntityHandle | source () const noexcept |
|
Returns the source entity that triggered the action. More... | |
| helios::engine::modules::ui::widgets::types::ActionId | actionId () const noexcept |
|
Returns the action identifier. More... | |
Private Member Attributes Index
| helios::engine::ecs::EntityHandle | source_ |
|
Handle of the entity that triggered the action. More... | |
| helios::engine::modules::ui::widgets::types::ActionId | actionId_ |
|
Identifier of the action to execute. More... | |
Description
A command that encapsulates a UI action request.
UiActionCommands are submitted when UI elements are activated (e.g., button pressed, menu item selected). They carry the source entity and the action identifier to execute.
- See Also
- See Also
UiActionComponent
Definition at line 31 of file UiActionCommand.ixx.
Public Constructors
UiActionCommand()
| inline explicit |
Constructs a command with source entity and action ID.
- Parameters
-
source The entity that triggered the action.
actionId The identifier of the action to execute.
Definition at line 52 of file UiActionCommand.ixx.
Public Member Functions
actionId()
| inline nodiscard noexcept |
Returns the action identifier.
- Returns
The ActionId.
Definition at line 72 of file UiActionCommand.ixx.
Referenced by UiActionCommand.
source()
| inline nodiscard noexcept |
Returns the source entity that triggered the action.
- Returns
The entity handle.
Definition at line 63 of file UiActionCommand.ixx.
Referenced by UiActionCommand.
Private Member Attributes
actionId_
|
Identifier of the action to execute.
Definition at line 41 of file UiActionCommand.ixx.
source_
|
Handle of the entity that triggered the action.
Definition at line 36 of file UiActionCommand.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.