Base class for all components.
More...
#include <Common.h>
|
| ComponentBase () |
| Constructor (sets dirty flag to true)
|
|
bool | IsDirty () const |
| Checks if the component is dirty.
|
|
bool | IsActive () const |
| Checks if the component is active.
|
|
void | SetActive (bool isActive) |
| Sets the active flag.
|
|
|
void | SetDirty (bool isDirty=true) |
| Sets the dirty flag.
|
|
|
std::bitset< ComponentFlags::CF_COUNT > | m_flags |
| Bitset of component flags.
|
|
Base class for all components.
◆ IsActive()
bool Nui::Components::ComponentBase::IsActive |
( |
| ) |
const |
|
inlinenodiscard |
Checks if the component is active.
- Returns
- True if the component is active
◆ IsDirty()
bool Nui::Components::ComponentBase::IsDirty |
( |
| ) |
const |
|
inlinenodiscard |
Checks if the component is dirty.
- Returns
- True if the component is dirty
◆ SetActive()
void Nui::Components::ComponentBase::SetActive |
( |
bool | isActive | ) |
|
|
inline |
Sets the active flag.
- Parameters
-
isActive | Active state to set |
◆ SetDirty()
void Nui::Components::ComponentBase::SetDirty |
( |
bool | isDirty = true | ) |
|
|
inlineprotected |
Sets the dirty flag.
- Parameters
-
isDirty | Dirty state to set (defaults to true) |
The documentation for this class was generated from the following file: