#include <Display/DisplayElement.hpp>
An interface for elements that draw to a display.
Definition at line 12 of file DisplayElement.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 | |
| virtual | ~DisplayElement () |
| virtual void | draw ()=0 |
| Draw this DisplayElement to the display buffer. | |
| virtual bool | getDirty () const =0 |
| Check if this DisplayElement has to be re-drawn. | |
| 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 Member Functions | |
| DisplayElement (DisplayInterface &display) | |
| Create a new DisplayElement. | |
Protected Attributes | |
| DisplayInterface & | display |
| DisplayElement * | next |
| DisplayElement * | previous |
Static Protected Attributes | |
| static DoublyLinkedList< DisplayElement > | elements |
|
inlineprotected |
Create a new DisplayElement.
| display | The display that this display element draws to. |
Definition at line 18 of file DisplayElement.hpp.
|
inlinevirtual |
Definition at line 86 of file DisplayElement.hpp.
|
inlineprotected |
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.
|
inlineprotected |
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.
|
inlineprotected |
Check if this display element is enabled.
Definition at line 59 of file DisplayElement.hpp.
|
inlinestaticprotected |
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.
|
inlinestaticprotected |
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.
|
inlinestaticprotected |
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.
|
inlinestaticprotected |
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.
|
inlinestaticprotected |
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.
|
inlinestaticprotected |
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.
|
pure virtual |
Draw this DisplayElement to the display buffer.
Implemented in BankDisplay, BitmapDisplay< Value_t >, BitmapDisplay< Value_t >, AnalogVUDisplay< VU_t >, LCDDisplay, TimeDisplayDisplay, VPotDisplay< VPot_t >, VUDisplay< VU_t >, and SelectorDisplay.
|
pure virtual |
Check if this DisplayElement has to be re-drawn.
Implemented in BankDisplay, BitmapDisplay< Value_t >, BitmapDisplay< Value_t >, AnalogVUDisplay< VU_t >, LCDDisplay, TimeDisplayDisplay, VPotDisplay< VPot_t >, VUDisplay< VU_t >, and SelectorDisplay.
|
inline |
Get a reference to the display that this element draws to.
Definition at line 95 of file DisplayElement.hpp.
|
inline |
Get a const reference to the display that this element draws to.
Definition at line 97 of file DisplayElement.hpp.
|
inlinestatic |
Get the list of all DisplayElement instances.
Definition at line 100 of file DisplayElement.hpp.
|
protected |
Definition at line 103 of file DisplayElement.hpp.
|
staticprotected |
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.