|
BuGUI
BUtton Grid User Interface
|
Provides base functionalities for converting color objects to devices specific colour values. More...
#include <color_converter.hpp>
Public Types | |
| using | color_value_t = Value_t |
Public Member Functions | |
| virtual void | set (const color &color)=0 |
| Sets the original color. | |
| bool | operator== (const color &other) const |
| Determines equality between the original color and another. | |
| Value_t | get () const |
| Retrives the main device specific colour value. | |
| Value_t | get_secondary () const |
| Retrives the secondary device specific colour value. | |
| Value_t | get_state () const |
| Retrives the current state. | |
| virtual void | clear ()=0 |
| Resets the original and the device specific colour to their initial value. | |
| virtual bool | is_clear ()=0 |
| Checks that the original and device specific colour are set to their initial value. | |
Protected Attributes | |
| Value_t | value {} |
| Value_t | secondary {} |
| color | original {} |
Provides base functionalities for converting color objects to devices specific colour values.
|
pure virtual |
Resets the original and the device specific colour to their initial value.
Implemented in bugui::color_converter< T, Value_t >, bugui::color_converter< T, color::rgba >, bugui::color_converter< T, uint8_t >, and bugui::color_converter< typename Device::color >.
|
pure virtual |
Checks that the original and device specific colour are set to their initial value.
Implemented in bugui::color_converter< T, Value_t >, bugui::color_converter< T, color::rgba >, bugui::color_converter< T, uint8_t >, and bugui::color_converter< typename Device::color >.
|
pure virtual |
Sets the original color.
Implemented in bugui::color_converter< T, Value_t >, bugui::color_converter< T, color::rgba >, bugui::color_converter< T, uint8_t >, and bugui::color_converter< typename Device::color >.