Skip to content

Class evab::InputButtonF

ClassList > evab > InputButtonF

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

  • #include <evabInputButton.h>

Inherits the following classes: evab::ElementBase

Public Functions

Type Name
const __FlashStringHelper * GetName () const
Gets the current Flash label pointer.
InputButtonF (const __FlashStringHelper * aText)
Constructs a InputButton with a Flash string macro F("Text").
void SetName (const __FlashStringHelper * aText)
Sets new Flash 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 Flash label pointer.

const __FlashStringHelper * evab::InputButtonF::GetName () const

function InputButtonF

Constructs a InputButton with a Flash string macro F("Text").

evab::InputButtonF::InputButtonF (
    const __FlashStringHelper * aText
) 

Parameters:

  • aText Label text in PROGMEM

function SetName

Sets new Flash label text and redraws.

void evab::InputButtonF::SetName (
    const __FlashStringHelper * aText
) 

Protected Functions Documentation

function drawer

Pure virtual method for drawing the element.

virtual void evab::InputButtonF::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