Class evab::InputSelectorPx¶
template <class TAlbum>
ClassList > evab > InputSelectorPx
Pictogram-based input element. More...
#include <evabInputSelectorPx.h>
Inherits the following classes: evab::ElementBase
Public Functions¶
| Type | Name |
|---|---|
| unsigned char | Count () const |
| void | Increment (signed char aSteps) Increments the pictogram index. |
| InputSelectorPx (int aValue=0) Constructor for InputPictogram. |
|
| void | Select (int aValue) Sets the pictogram index and redraws. |
| signed char | Selected () const Gets the current pictogram index. |
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 pictogram 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 pictogram from a pictoset and manages its index value.
Template parameters:
TAlbumAlbum class providing pictogram data and count
Public Functions Documentation¶
function Count¶
inline unsigned char evab::InputSelectorPx::Count () const
function Increment¶
Increments the pictogram index.
inline void evab::InputSelectorPx::Increment (
signed char aSteps
)
Parameters:
aStepsAmount to increment (positive or negative)
function InputSelectorPx¶
Constructor for InputPictogram.
inline evab::InputSelectorPx::InputSelectorPx (
int aValue=0
)
Parameters:
aValueInitial pictogram index (0 to TAlbum::Count - 1)
function Select¶
Sets the pictogram index and redraws.
inline void evab::InputSelectorPx::Select (
int aValue
)
Parameters:
aValueNew pictogram index
function Selected¶
Gets the current pictogram index.
inline signed char evab::InputSelectorPx::Selected () const
Returns:
Current pictogram index
Protected Functions Documentation¶
function drawer¶
Draws the pictogram on screen.
inline virtual void evab::InputSelectorPx::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/evabInputSelectorPx.h