|
BuGUI
BUtton Grid User Interface
|
Povides convertion of color objects to device specific integer values. More...
#include <color_converter.hpp>
Public Member Functions | |
| void | set (const color &color) override |
| Sets the original color. | |
| void | clear () override |
| Resets the original and the device specific colour to their initial value. | |
| bool | is_clear () override |
| Checks that the original and device specific colour are set to their initial value. | |
| Public Member Functions inherited from bugui::base_converter< uint8_t > | |
| bool | operator== (const color &other) const |
| Determines equality between the original color and another. | |
| uint8_t | get () const |
| Retrives the main device specific colour value. | |
| uint8_t | get_secondary () const |
| Retrives the secondary device specific colour value. | |
| uint8_t | get_state () const |
| Retrives the current state. | |
Additional Inherited Members | |
| Public Types inherited from bugui::base_converter< uint8_t > | |
| using | color_value_t |
| Protected Attributes inherited from bugui::base_converter< uint8_t > | |
| uint8_t | value |
| uint8_t | secondary |
| color | original |
| Static Protected Attributes inherited from bugui::base_palette< T > | |
| static constexpr auto | palette {make_rgb()} |
Povides convertion of color objects to device specific integer values.
|
inlineoverridevirtual |
Resets the original and the device specific colour to their initial value.
Implements bugui::base_converter< uint8_t >.
|
inlineoverridevirtual |
Checks that the original and device specific colour are set to their initial value.
Implements bugui::base_converter< uint8_t >.
|
inlineoverridevirtual |
Sets the original color.
Implements bugui::base_converter< uint8_t >.