UiStyleComponent.ixx File
Component for managing UI element visual styles. More...
Included Headers
#include <helios.math.types>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | modules |
|
Domain-specific components and systems. More... | |
| namespace | ui |
|
User interface components and systems for game entities. More... | |
| namespace | widgets |
|
UI widget components and systems. More... | |
| namespace | components |
|
UI widget state components. More... | |
Classes Index
| class | UiStyleComponent |
|
Stores color styles for different UI widget states. More... | |
Description
Component for managing UI element visual styles.
File Listing
The file content with the documentation metadata removed is:
9export namespace helios::engine::modules::ui::widgets::components {
18 class UiStyleComponent {
22 helios::math::vec4f normalColor_{1.0f, 1.0f, 1.0f, 1.0f};
23 helios::math::vec4f selectedColor_{0.8f, 0.8f, 1.0f, 1.0f};
24 helios::math::vec4f disabledColor_{0.5f, 0.5f, 0.5f, 1.0f};
57 void setNormalScale(const float scale) noexcept {
66 void setSelectedScale(const float scale) noexcept {
75 void setNormalColor(const helios::math::vec4f color) noexcept {
82 [[nodiscard]] const helios::math::vec4f normalColor() const noexcept {
91 void setSelectedColor(const helios::math::vec4f color) noexcept {
98 [[nodiscard]] const helios::math::vec4f selectedColor() const noexcept {
107 void setDisabledColor(const helios::math::vec4f color) noexcept {
114 [[nodiscard]] const helios::math::vec4f disabledColor() const noexcept {
121 [[nodiscard]] float selectedScale() const noexcept {
128 [[nodiscard]] float normalScale() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.