#include <Display/MCU/TimeDisplayDisplay.hpp>
Displays the MCU time code display.
Definition at line 14 of file TimeDisplayDisplay.hpp.
Enabling and disabling display elements | |
| void | enable () |
| Enable this display element: insert it into the linked list of instances, so it gets drawn to the display. | |
| void | disable () |
| Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display. | |
| bool | isEnabled () const |
| Check if this display element is enabled. | |
| static void | enable (DisplayElement *element) |
| Enable this display element: insert it into the linked list of instances, so it gets drawn to the display. | |
| static void | enable (DisplayElement &element) |
| Enable this display element: insert it into the linked list of instances, so it gets drawn to the display. | |
| template<class U, size_t N> | |
| static void | enable (U(&array)[N]) |
| Enable this display element: insert it into the linked list of instances, so it gets drawn to the display. | |
| static void | disable (DisplayElement *element) |
| Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display. | |
| static void | disable (DisplayElement &element) |
| Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display. | |
| template<class U, size_t N> | |
| static void | disable (U(&array)[N]) |
| Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display. | |
Public Member Functions | |
| TimeDisplayDisplay (DisplayInterface &display, TimeDisplay &timedisplay, PixelLocation loc, uint8_t size, uint16_t color) | |
| void | draw () override |
| Draw this DisplayElement to the display buffer. | |
| bool | getDirty () const override |
| Check if this DisplayElement has to be re-drawn. | |
| int16_t | getX () const |
| int16_t | getY () const |
| uint8_t | getSize () const |
| uint16_t | getColor () const |
| void | setX (int16_t x) |
| void | setY (int16_t y) |
| void | setSize (uint8_t size) |
| void | setColor (uint16_t color) |
| DisplayInterface & | getDisplay () |
| Get a reference to the display that this element draws to. | |
| const DisplayInterface & | getDisplay () const |
| Get a const reference to the display that this element draws to. | |
Static Public Member Functions | |
| static DoublyLinkedList< DisplayElement > & | getAll () |
| Get the list of all DisplayElement instances. | |
Protected Attributes | |
| DisplayInterface & | display |
| DisplayElement * | next |
| DisplayElement * | previous |
Static Protected Attributes | |
| static DoublyLinkedList< DisplayElement > | elements |
Private Attributes | |
| TimeDisplay & | timedisplay |
| int16_t | x |
| int16_t | y |
| uint8_t | size |
| uint16_t | color |
|
inline |
Definition at line 16 of file TimeDisplayDisplay.hpp.
|
inlineoverridevirtual |
Draw this DisplayElement to the display buffer.
Implements DisplayElement.
Definition at line 21 of file TimeDisplayDisplay.hpp.
|
inlineoverridevirtual |
Check if this DisplayElement has to be re-drawn.
Implements DisplayElement.
Definition at line 38 of file TimeDisplayDisplay.hpp.
|
inline |
Definition at line 40 of file TimeDisplayDisplay.hpp.
|
inline |
Definition at line 41 of file TimeDisplayDisplay.hpp.
|
inline |
Definition at line 42 of file TimeDisplayDisplay.hpp.
|
inline |
Definition at line 43 of file TimeDisplayDisplay.hpp.
|
inline |
Definition at line 45 of file TimeDisplayDisplay.hpp.
|
inline |
Definition at line 46 of file TimeDisplayDisplay.hpp.
|
inline |
Definition at line 47 of file TimeDisplayDisplay.hpp.
|
inline |
Definition at line 48 of file TimeDisplayDisplay.hpp.
|
inlineprotectedinherited |
Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
Definition at line 35 of file DisplayElement.hpp.
|
inlinestaticprotectedinherited |
Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
Definition at line 62 of file DisplayElement.hpp.
|
inlinestaticprotectedinherited |
Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
Definition at line 64 of file DisplayElement.hpp.
|
inlinestaticprotectedinherited |
Enable this display element: insert it into the linked list of instances, so it gets drawn to the display.
Definition at line 67 of file DisplayElement.hpp.
|
inlineprotectedinherited |
Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
Definition at line 45 of file DisplayElement.hpp.
|
inlinestaticprotectedinherited |
Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
Definition at line 73 of file DisplayElement.hpp.
|
inlinestaticprotectedinherited |
Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
Definition at line 75 of file DisplayElement.hpp.
|
inlinestaticprotectedinherited |
Disable this display element: remove it from the linked list of instances, so it no longer gets drawn to the display.
Definition at line 78 of file DisplayElement.hpp.
|
inlineprotectedinherited |
Check if this display element is enabled.
Definition at line 59 of file DisplayElement.hpp.
|
inlineinherited |
Get a reference to the display that this element draws to.
Definition at line 95 of file DisplayElement.hpp.
|
inlineinherited |
Get a const reference to the display that this element draws to.
Definition at line 97 of file DisplayElement.hpp.
|
inlinestaticinherited |
Get the list of all DisplayElement instances.
Definition at line 100 of file DisplayElement.hpp.
|
private |
Definition at line 51 of file TimeDisplayDisplay.hpp.
|
private |
Definition at line 52 of file TimeDisplayDisplay.hpp.
|
private |
Definition at line 52 of file TimeDisplayDisplay.hpp.
|
private |
Definition at line 53 of file TimeDisplayDisplay.hpp.
|
private |
Definition at line 54 of file TimeDisplayDisplay.hpp.
|
protectedinherited |
Definition at line 103 of file DisplayElement.hpp.
|
staticprotectedinherited |
Definition at line 105 of file DisplayElement.hpp.
|
protectedinherited |
Definition at line 320 of file LinkedList.hpp.
|
protectedinherited |
Definition at line 321 of file LinkedList.hpp.