Class for a progress bar indicator that is showing a horizontal progress bar.
More...
|
| | ProgressBar (T *valuePointer, T minValue, T maxValue, ProgressBarOrigin_t origin, T tickIncrement, uint16_t progressbarWidth=80, uint16_t progressbarHeight=10, uint16_t locX=0, uint16_t locY=0) |
| | Constructor of the ProgressBar.
|
| |
| virtual void | Draw (bool redraw) override |
| | Method used for drawing of the ProgressBar.
|
| |
| virtual void | RecalculateDimensions () override |
| | Recalculate the Height and Width of the UIElement.
|
| |
| virtual void | RecalculateLayout () override |
| | Recalculate the UIElement layout (containers update the X- and Y-Location of all their items, all other items can do other layout update stuff)
|
| |
| | UIElement (UIElementType type) |
| | Constructor of the UIElement.
|
| |
| | UIElement (uint16_t locX, uint16_t locY, UIElementType type) |
| | Constructor of the UIElement.
|
| |
| virtual bool | KeyInput (Keys_t key) |
| | Process the given key.
|
| |
| virtual bool | TouchInput (uint16_t x, uint16_t y, TouchTypes touchType) |
| | Process a touch input at the given point (x, y)
|
| |
| bool | HitTest (uint16_t x, uint16_t y) |
| | Check if the given point (x, y) is inside this UIElement.
|
| |
|
|
uint16_t | ProgressbarWidth |
| | Drawing width of the ProgressBar (without min and max texts and tick markers)
|
| |
|
uint16_t | ProgressbarHeight |
| | Drawing height of the ProgressBar (without min and max texts and tick markers)
|
| |
|
UIElementType | Type |
| | Element type (control, indicator, container)
|
| |
|
uint16_t | LocX |
| | X Location of the upper left corner of the UIElement.
|
| |
|
uint16_t | LocY |
| | Y Location of the upper left corner of the UIElement.
|
| |
|
uint16_t | Width |
| | Drawing width of the UIElement.
|
| |
|
uint16_t | Height |
| | Drawing height of the UIElement.
|
| |
|
bool | Visible |
| | The UIElement is only drawn if the visibility is set to true.
|
| |
| bool | IsInEditMode |
| | Is the UIElement in edit mode?
|
| |
|
UIElement * | Parent |
| | Parent UIElement that this UIElement belongs to.
|
| |
| UIElement * | ActiveChild |
| | Child element that is currently active (receiving all key inputs).
|
| |
|
|
T * | _valuePointer |
| | Pointer to the numeric variable that is used to draw this indicator.
|
| |
|
T | _lastValueDraw |
| | This variable is updated from the _valuePointer when the value changed.
|
| |
| T | _minValue |
| | Minimum value that can be shown by the progress bar.
|
| |
| T | _maxValue |
| | Maximum value that can be shown by the progress bar.
|
| |
| ProgressBarOrigin_t | _origin |
| | Origin position of this progress bar.
|
| |
| T | _tickIncrement |
| | Distance between tick lines drawn above the progress bar.
|
| |
|
uint16_t | _originXCoord |
| | X coordinate of the origin calculated on layout reconstruction.
|
| |
|
uint16_t | _minValueTextWidth |
| | Text width of the minimum value text.
|
| |
|
uint16_t | _maxValueTextWidth |
| | Text width of the maximum value text.
|
| |
template<class T>
class ProgressBar< T >
Class for a progress bar indicator that is showing a horizontal progress bar.
- Template Parameters
-
| T | Type of numeric variable used by this indicator for drawing. This can be e.g. float or int. |