Class evab::InputInt¶
Integer input element. More...
#include <evabInputInt.h>
Inherits the following classes: evab::ElementBase
Inherited by the following classes: evab::InputIntDiscrete
Public Functions¶
| Type | Name |
|---|---|
| int | GetValue () const Gets the current integer value. |
| void | Increment (signed char aSteps) Increments the value by a step. |
| InputInt (int aValue=0) Constructor for InputInt . |
|
| void | SetValue (int aValue) Sets the integer value and redraws. |
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 integer value centered 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 and manages an integer value.
Public Functions Documentation¶
function GetValue¶
Gets the current integer value.
int evab::InputInt::GetValue () const
Returns:
Current integer value
function Increment¶
Increments the value by a step.
void evab::InputInt::Increment (
signed char aSteps
)
Parameters:
aStepsAmount to add (positive or negative)
function InputInt¶
Constructor for InputInt .
evab::InputInt::InputInt (
int aValue=0
)
Parameters:
aValueInitial integer value (default 0)
function SetValue¶
Sets the integer value and redraws.
void evab::InputInt::SetValue (
int aValue
)
Parameters:
aValueNew integer value
Protected Functions Documentation¶
function drawer¶
Draws the integer value centered on screen.
virtual void evab::InputInt::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/evabInputInt.h