UiStyleComponent Class
Stores color styles for different UI widget states. More...
Declaration
Public Member Functions Index
| bool | isEnabled () const noexcept |
|
Returns the enabled state. More... | |
| void | enable () noexcept |
|
Enables this component. More... | |
| void | disable () noexcept |
|
Disables this component. More... | |
| void | setNormalScale (const float scale) noexcept |
|
Sets the scale for normal state. More... | |
| void | setSelectedScale (const float scale) noexcept |
|
Sets the scale for selected state. More... | |
| void | setNormalColor (const helios::math::vec4f color) noexcept |
|
Sets the color for normal state. More... | |
| const helios::math::vec4f | normalColor () const noexcept |
|
Returns the normal state color. More... | |
| void | setSelectedColor (const helios::math::vec4f color) noexcept |
|
Sets the color for selected state. More... | |
| const helios::math::vec4f | selectedColor () const noexcept |
|
Returns the selected state color. More... | |
| void | setDisabledColor (const helios::math::vec4f color) noexcept |
|
Sets the color for disabled state. More... | |
| const helios::math::vec4f | disabledColor () const noexcept |
|
Returns the disabled state color. More... | |
| float | selectedScale () const noexcept |
|
Returns the selected state scale. More... | |
| float | normalScale () const noexcept |
|
Returns the normal state scale. More... | |
Private Member Attributes Index
| bool | isEnabled_ = true |
| helios::math::vec4f | normalColor_ {1.0f, 1.0f, 1.0f, 1.0f} |
| helios::math::vec4f | selectedColor_ {0.8f, 0.8f, 1.0f, 1.0f} |
| helios::math::vec4f | disabledColor_ {0.5f, 0.5f, 0.5f, 1.0f} |
| float | normalScale_ = 1.0f |
| float | selectedScale_ = 1.0f |
Description
Stores color styles for different UI widget states.
Defines colors for normal, selected, and disabled states of UI elements.
Definition at line 18 of file UiStyleComponent.ixx.
Public Member Functions
disable()
| inline noexcept |
Disables this component.
Definition at line 48 of file UiStyleComponent.ixx.
disabledColor()
| inline nodiscard noexcept |
Returns the disabled state color.
Definition at line 114 of file UiStyleComponent.ixx.
enable()
| inline noexcept |
Enables this component.
Definition at line 41 of file UiStyleComponent.ixx.
isEnabled()
| inline nodiscard noexcept |
Returns the enabled state.
Definition at line 34 of file UiStyleComponent.ixx.
normalColor()
| inline nodiscard noexcept |
Returns the normal state color.
Definition at line 82 of file UiStyleComponent.ixx.
normalScale()
| inline nodiscard noexcept |
Returns the normal state scale.
Definition at line 128 of file UiStyleComponent.ixx.
selectedColor()
| inline nodiscard noexcept |
Returns the selected state color.
Definition at line 98 of file UiStyleComponent.ixx.
selectedScale()
| inline nodiscard noexcept |
Returns the selected state scale.
Definition at line 121 of file UiStyleComponent.ixx.
setDisabledColor()
| inline noexcept |
Sets the color for disabled state.
- Parameters
-
color The RGBA color.
Definition at line 107 of file UiStyleComponent.ixx.
setNormalColor()
| inline noexcept |
Sets the color for normal state.
- Parameters
-
color The RGBA color.
Definition at line 75 of file UiStyleComponent.ixx.
setNormalScale()
| inline noexcept |
Sets the scale for normal state.
- Parameters
-
scale The scale factor.
Definition at line 57 of file UiStyleComponent.ixx.
setSelectedColor()
| inline noexcept |
Sets the color for selected state.
- Parameters
-
color The RGBA color.
Definition at line 91 of file UiStyleComponent.ixx.
setSelectedScale()
| inline noexcept |
Sets the scale for selected state.
- Parameters
-
scale The scale factor.
Definition at line 66 of file UiStyleComponent.ixx.
Private Member Attributes
disabledColor_
|
Definition at line 24 of file UiStyleComponent.ixx.
isEnabled_
|
Definition at line 20 of file UiStyleComponent.ixx.
normalColor_
|
Definition at line 22 of file UiStyleComponent.ixx.
normalScale_
|
Definition at line 26 of file UiStyleComponent.ixx.
selectedColor_
|
Definition at line 23 of file UiStyleComponent.ixx.
selectedScale_
|
Definition at line 27 of file UiStyleComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.