|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Main color of an entity: the fill of a shape, or the ink of a text or an icon. More...
#include <headers/guillaume/components/color.hpp>


Public Member Functions | |
| Color (void) | |
| Construct with the default value of utility::graphic::Color32Bit. | |
| ~Color (void)=default | |
| Default destructor for the Color component. | |
| const utility::graphic::Color32Bit & | getColor () const |
| Get the color. | |
| Color & | setColor (const utility::graphic::Color32Bit &color) |
| Set the color. | |
| Public Member Functions inherited from guillaume::ecs::Component | |
| bool | hasChanged (void) const |
| Tell whether a value of the component changed since the flags were last reset (the end of the previous frame). | |
| void | setHasChanged (bool hasChanged) |
| Raise or lower the changed flag. | |
| Component (void)=default | |
| Create a component that is not marked as changed. | |
| virtual | ~Component (void)=default |
| Virtual destructor, so components can be destroyed through the base class. | |
Main color of an entity: the fill of a shape, or the ink of a text or an icon.
Read by the render systems (systems::RectangleRender, systems::EllipseRender, systems::RingRender, systems::ArcRender, systems::LineRender, systems::TextRender, systems::GlyphRender) and, as part of their cache key, by systems::MeasureText and systems::MeasureGlyph. Written by the application for a plain entity and by the widget systems for the entities of a widget.
|
explicit |
| const utility::graphic::Color32Bit & guillaume::components::Color::getColor | ( | ) | const |
| Color & guillaume::components::Color::setColor | ( | const utility::graphic::Color32Bit & | color | ) |
Set the color.
Marks the component changed only when color differs from the stored one.
| color | The RGBA color, 8 bits per channel. |
Definition at line 37 of file color.cpp.

