Skip to content

Class evab::InputButton

ClassList > evab > InputButton

Button input element (label in RAM). More...

  • #include <evabInputButton.h>

Inherits the following classes: evab::ElementBase

Public Functions

Type Name
const char * GetName () const
Gets the current label text.
InputButton (const char * aText="")
Constructs a InputButton with a RAM string.
void SetName (const char * aText)
Sets new label text 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

Type Name
virtual void drawer (Screen * aScreen, Coor aPos, Coor aSize, unsigned char aIsFocused) override
Pure virtual method for drawing the element.

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

Displays a button with a label enclosed in parentheses. The Increment method is a placeholder that does nothing.

Public Functions Documentation

function GetName

Gets the current label text.

const char * evab::InputButton::GetName () const

function InputButton

Constructs a InputButton with a RAM string.

evab::InputButton::InputButton (
    const char * aText=""
) 

Parameters:

  • aText Label text (const char*)

function SetName

Sets new label text and redraws.

void evab::InputButton::SetName (
    const char * aText
) 

Protected Functions Documentation

function drawer

Pure virtual method for drawing the element.

virtual void evab::InputButton::drawer (
    Screen * aScreen,
    Coor aPos,
    Coor aSize,
    unsigned char aIsFocused
) override

Parameters:

  • aScreen Screen to draw on
  • aPos Position on screen
  • aSize Size of the element
  • aIsFocused Focus state (1 = focused, 0 = not focused)

Implements evab::ElementBase::drawer



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