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