|
BuGUI
BUtton Grid User Interface
|
Povides convertion of color objects to device specific integer values. More...
#include <color_converter.hpp>
Public Member Functions | |
| color_converter (const color &color) | |
| 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. | |
| bool | operator!= (const base_converter< uint8_t > &other) const |
| uint8_t | get () const |
| Retrives the main device specific colour value. | |
| color::states | get_state () const |
| Retrives the current state. | |
Static Public Attributes | |
| static const Value_t | clear_value |
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 |
| color | original |
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 >.