Skip to content

Class evab::InputIntDiscrete

ClassList > evab > InputIntDiscrete

Discrete integer input element. More...

  • #include <evabInputInt.h>

Inherits the following classes: evab::InputInt

Public Functions

Type Name
unsigned char Count () const
Returns the total number of steps.
void Increment (signed char aSteps)
Increments the pictogram index.
InputIntDiscrete (int aValue, int aMin, int aMax, unsigned short aStep=1)
Constructs a discrete integer input.
void Select (unsigned char aIndex)
Selects a step by index (0 to Count() -1).
signed short Selected () const
Returns the currently selected index.
void SetValue (int aValue)
Sets the integer value and redraws.

Public Functions inherited from evab::InputInt

See evab::InputInt

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

See 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 inherited from evab::InputInt

See evab::InputInt

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

See 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

Adds index-based control to InputInt.

Public Functions Documentation

function Count

Returns the total number of steps.

unsigned char evab::InputIntDiscrete::Count () const

function Increment

Increments the pictogram index.

void evab::InputIntDiscrete::Increment (
    signed char aSteps
) 

Parameters:

  • aSteps Amount to increment (positive or negative)

function InputIntDiscrete

Constructs a discrete integer input.

evab::InputIntDiscrete::InputIntDiscrete (
    int aValue,
    int aMin,
    int aMax,
    unsigned short aStep=1
) 

Parameters:

  • aValue Initial value.
  • aMin Minimum value / start of the step grid.
  • aMax Maximum boundary limit.
  • aStep Grid step size (must be > 0).

function Select

Selects a step by index (0 to Count() -1).

void evab::InputIntDiscrete::Select (
    unsigned char aIndex
) 

function Selected

Returns the currently selected index.

signed short evab::InputIntDiscrete::Selected () const

function SetValue

Sets the integer value and redraws.

void evab::InputIntDiscrete::SetValue (
    int aValue
) 

Parameters:

  • aValue New integer value


The documentation for this class was generated from the following file src/evabInputInt.h