6#ifndef ENUMINDICATOR_H_
7#define ENUMINDICATOR_H_
34 EnumIndicator(T* valuePointer,
const char** enumNames, uint8_t numEnumValues, uint16_t locX = 0, uint16_t locY = 0);
39 virtual void Draw(
bool redraw)
override;
Containing the abstract base class for all user interface elements (controls, indicators,...
T * _valuePointer
Pointer to the enumeration variable that is shown by this indicator.
Definition EnumIndicator.h:21
const char ** _enumNames
Pointer to an array of char pointers containing the display names for all enumeration values.
Definition EnumIndicator.h:19
EnumIndicator(T *valuePointer, const char **enumNames, uint8_t numEnumValues, uint16_t locX=0, uint16_t locY=0)
Constructor of the EnumIndicator.
Definition EnumIndicator.cpp:9
uint8_t _numEnumValues
Number of enumeration values.
Definition EnumIndicator.h:20
virtual void RecalculateDimensions() override
Recalculate the Height and Width of the UIElement.
Definition EnumIndicator.cpp:45
T _lastValueDraw
Last drawn enum value.
Definition EnumIndicator.h:22
virtual void Draw(bool redraw) override
Method used for drawing of the EnumIndicator.
Definition EnumIndicator.cpp:17
UIElement(UIElementType type)
Constructor of the UIElement.
Definition UIElement.h:43