Skip to content

Class evab::InputButtonPx

ClassList > evab > InputButtonPx

Pictogram button element. More...

  • #include <evabInputButtonPx.h>

Inherits the following classes: evab::ElementBase

Public Functions

Type Name
InputButtonPx (const unsigned char * aPictogram)
Constructor for InputButtonPx .

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
Draws the button 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 pictogram.

Public Functions Documentation

function InputButtonPx

Constructor for InputButtonPx .

evab::InputButtonPx::InputButtonPx (
    const unsigned char * aPictogram
) 

Parameters:

  • aPictogram Pointer to pictogram data

Protected Functions Documentation

function drawer

Draws the button element.

virtual void evab::InputButtonPx::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/evabInputButtonPx.h