UiTransformConfig Class
Fluent configuration for spatial transform setup. More...
Declaration
Public Constructors Index
| UiTransformConfig (helios::engine::ecs::GameObject gameObject) | |
|
Constructs a UiTransformConfig and adds ComposeTransformComponent. More... | |
Public Member Functions Index
| UiTransformConfig & | anchor (const helios::engine::modules::ui::layout::Anchor anchor) |
|
Sets the anchor point for UI positioning. More... | |
| UiTransformConfig & | viewport (const helios::engine::common::types::ViewportId viewportId) |
|
Sets the viewport for this UI element. More... | |
| UiTransformConfig & | pivot (const helios::engine::modules::ui::layout::Anchor anchor) |
|
Sets the pivot point for transformations. More... | |
| UiTransformConfig & | offsets (const helios::math::vec4f offsets) |
|
Sets the offsets for UI positioning. More... | |
Private Member Attributes Index
| helios::engine::ecs::GameObject | gameObject_ |
|
Non-owning pointer to the target GameObject. More... | |
Description
Fluent configuration for spatial transform setup.
Automatically adds ComposeTransformComponent and provides methods for setting scale and translation.
Definition at line 30 of file UiTransformConfig.ixx.
Public Constructors
UiTransformConfig()
| inline explicit |
Constructs a UiTransformConfig and adds ComposeTransformComponent.
- Parameters
-
<a href="/docs/helios/namespaces/helios/engine/builder/gameobject">gameObject</a> Target GameObject to configure.
Definition at line 45 of file UiTransformConfig.ixx.
Public Member Functions
anchor()
| inline |
Sets the anchor point for UI positioning.
- Parameters
-
anchor The anchor position (e.g., TopLeft, Center).
- Returns
Reference to this config for chaining.
Definition at line 58 of file UiTransformConfig.ixx.
References anchor and UiTransformConfig.
offsets()
| inline |
Sets the offsets for UI positioning.
- Parameters
-
offsets The offsets as vec4f (top, right, bottom, left).
- Returns
Reference to this config for chaining.
Definition at line 97 of file UiTransformConfig.ixx.
References offsets and UiTransformConfig.
Referenced by offsets.
pivot()
| inline |
Sets the pivot point for transformations.
- Parameters
-
anchor The pivot position.
- Returns
Reference to this config for chaining.
Definition at line 84 of file UiTransformConfig.ixx.
References anchor and UiTransformConfig.
viewport()
| inline |
Sets the viewport for this UI element.
- Parameters
-
viewportId The ID of the viewport to attach to.
- Returns
Reference to this config for chaining.
Definition at line 71 of file UiTransformConfig.ixx.
Reference UiTransformConfig.
Private Member Attributes
gameObject_
|
Non-owning pointer to the target GameObject.
Definition at line 35 of file UiTransformConfig.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.