UiStateComponent Class
Tracks interaction state for UI widgets. More...
Declaration
Public Member Functions Index
| void | setSelected (const bool selected) noexcept |
|
Sets the selected state. More... | |
| bool | isSelected () const noexcept |
|
Returns the selected state. More... | |
| void | setHovered (bool hovered) noexcept |
|
Sets the hovered state. More... | |
| bool | isHovered () const noexcept |
|
Returns the hovered state. More... | |
| void | setFocused (bool focused) noexcept |
|
Sets the focused state. More... | |
| bool | isFocused () const noexcept |
|
Returns the focused state. More... | |
| void | setEnabled (bool enabled) noexcept |
|
Sets the enabled state. More... | |
| bool | isEnabled () const noexcept |
|
Returns the enabled state. More... | |
| void | setPressed (bool pressed) noexcept |
|
Sets the pressed state. More... | |
| bool | isPressed () const noexcept |
|
Returns the pressed state. More... | |
Private Member Attributes Index
| bool | isEnabled_ = true |
| bool | isSelected_ = false |
| bool | isHovered_ = false |
| bool | isFocused_ = false |
| bool | isPressed_ = false |
Description
Tracks interaction state for UI widgets.
Manages common UI states such as selection, hover, focus, enabled/disabled, and pressed states.
Definition at line 16 of file UiStateComponent.ixx.
Public Member Functions
isEnabled()
| inline nodiscard noexcept |
Returns the enabled state.
Definition at line 91 of file UiStateComponent.ixx.
isFocused()
| inline nodiscard noexcept |
Returns the focused state.
Definition at line 75 of file UiStateComponent.ixx.
isHovered()
| inline nodiscard noexcept |
Returns the hovered state.
Definition at line 59 of file UiStateComponent.ixx.
isPressed()
| inline nodiscard noexcept |
Returns the pressed state.
Definition at line 107 of file UiStateComponent.ixx.
isSelected()
| inline nodiscard noexcept |
Returns the selected state.
Definition at line 43 of file UiStateComponent.ixx.
setEnabled()
| inline noexcept |
Sets the enabled state.
- Parameters
-
enabled True if enabled.
Definition at line 84 of file UiStateComponent.ixx.
setFocused()
| inline noexcept |
Sets the focused state.
- Parameters
-
focused True if focused.
Definition at line 68 of file UiStateComponent.ixx.
setHovered()
| inline noexcept |
Sets the hovered state.
- Parameters
-
hovered True if hovered.
Definition at line 52 of file UiStateComponent.ixx.
setPressed()
| inline noexcept |
Sets the pressed state.
- Parameters
-
pressed True if pressed.
Definition at line 100 of file UiStateComponent.ixx.
setSelected()
| inline noexcept |
Sets the selected state.
- Parameters
-
selected True if selected.
Definition at line 36 of file UiStateComponent.ixx.
Private Member Attributes
isEnabled_
|
Definition at line 19 of file UiStateComponent.ixx.
isFocused_
|
Definition at line 25 of file UiStateComponent.ixx.
isHovered_
|
Definition at line 23 of file UiStateComponent.ixx.
isPressed_
|
Definition at line 27 of file UiStateComponent.ixx.
isSelected_
|
Definition at line 21 of file UiStateComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.