Class evab::StretchBar¶
template <typename TCharset, typename TOrientationTextPolicy>
ClassList > evab > StretchBar
Text-based stretch bar element. More...
#include <evabStretchBar.h>
Inherits the following classes: evab::ElementBase
Public Functions¶
| Type | Name |
|---|---|
| unsigned char | GetPercent () |
| void | Increment (signed char delta) Increments the value by a delta. |
| void | SetPercent (unsigned char aPercent) Sets the value and redraws. |
| StretchBar (unsigned char aValue=0, unsigned char aStep=0) Constructor for StretchBar . |
Public Functions inherited from evab::ElementBase¶
| Type | Name |
|---|---|
| void | Draw (Screen * aScreen, Coor aPos, Coor aSize, unsigned char aIsFocused) Draws the element on the specified screen. |
| void | Freeze () Make element insensitive to redraw method. |
| virtual bool | OnKey (Keys aKey) Handles key events for the element. |
Protected Functions¶
| Type | Name |
|---|---|
| virtual void | drawer (Screen * aScreen, Coor aPos, Coor aSize, unsigned char aIsFocused) override Draws the text stretch bar on screen. |
Protected Functions inherited from evab::ElementBase¶
| Type | Name |
|---|---|
| virtual void | drawer (Screen * aScreen, Coor aPos, Coor aSize, unsigned char aIsFocused) = 0 Pure virtual method for drawing the element. |
| virtual void | freezer () Virtual method for freezing the element. |
| bool | isFrozen () Checks if the element is currently freezed. |
| void | redraw () Redraws the element on the current screen. |
Detailed Description¶
Displays a progress/scroll bar using characters instead of pictograms.
Template parameters:
TCharsetCharacter set class providing GetChar methodTOrientationTextPolicyPolicy for orientation (vertical/horizontal)
Public Functions Documentation¶
function GetPercent¶
inline unsigned char evab::StretchBar::GetPercent ()
function Increment¶
Increments the value by a delta.
inline void evab::StretchBar::Increment (
signed char delta
)
Parameters:
deltaAmount to add (positive or negative)
function SetPercent¶
Sets the value and redraws.
inline void evab::StretchBar::SetPercent (
unsigned char aPercent
)
Parameters:
aValueNew value (0-100)
function StretchBar¶
Constructor for StretchBar .
inline evab::StretchBar::StretchBar (
unsigned char aValue=0,
unsigned char aStep=0
)
Parameters:
aValueInitial percent value (0-100)aStepIncrement step (0 = auto-calculate from resolution)
Protected Functions Documentation¶
function drawer¶
Draws the text stretch bar on screen.
inline virtual void evab::StretchBar::drawer (
Screen * aScreen,
Coor aPos,
Coor aSize,
unsigned char aIsFocused
) override
Parameters:
aScreenScreen to draw onaPosPosition on screenaSizeSize of the elementaIsFocusedFocus state (1 = focused, 0 = not focused)
Implements evab::ElementBase::drawer
The documentation for this class was generated from the following file src/evabStretchBar.h