|
| | DrawMode (Mode mode=Mode::NO_CHANGE, COLOR color=COLOR{}) |
| | Construct a new DrawMode object, to be sued with Display.
|
| |
| | operator bool () const |
| | Test if this DrawMode can change display or not, ie if its mode is not Mode::NO_CHANGE.
|
| |
| Mode | mode () const |
| | Return the current Mode for this DrawMode.
|
| |
| COLOR | color () const |
| | Return the current color for this DrawMode.
|
| |
| uint8_t | bw_pixels_op (uint8_t source, uint8_t dest) const |
| | Combine 8 source B&W pixels and 8 destination B&W pixels, all gathered in a byte, according to the Mode set at construction time.
|
| |
| COLOR | pixel_op (COLOR dest) const |
| | Combine the predefined color (defined at construction time) with one destination pixel, according to the Mode also set at construction time.
|
| |
template<typename COLOR>
class devices::display::DrawMode< COLOR >
Drawing Mode to use for Display drawing primitives.
This encapsulates a pixel operation Mode and a color to use.
- Template Parameters
-
| COLOR | the type of one pixel color, as handled by the display device. |
- See also
- Mode
Definition at line 123 of file display.h.