Class evab::ElementBase¶
ClassList > evab > ElementBase
Abstract base class for all UI elements. More...
#include <evabElementBase.h>
Inherited by the following classes: evab::ListBox, evab::ListBox, evab::StretchBar, evab::StretchBar, evab::StretchBar, evab::StretchBar, evab::StretchBarPx, evab::StretchBarPx, evab::StretchBarPx, evab::StretchBarPx, evab::TextLabel, evab::TextLabel, evab::TextLabel, evab::TextLabel, evab::TextLabel, evab::TextLabel, evab::TextLabel, evab::TextLabel, evab::TextLabel, evab::CompositeBase, evab::InputAnimationPx, evab::InputButton, evab::InputButtonF, evab::InputButtonPx, evab::InputFloat, evab::InputInt, evab::InputSelectorPx, evab::LayoutBase, evab::ListBox, evab::StretchBar, evab::StretchBarPx, evab::TextLabel
Public Functions¶
| 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) = 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¶
Provides the core functionality for rendering, state management, and key event handling for visual elements.
Public Functions Documentation¶
function Draw¶
Draws the element on the specified screen.
void evab::ElementBase::Draw (
Screen * aScreen,
Coor aPos,
Coor aSize,
unsigned char aIsFocused
)
Parameters:
aScreenScreen to draw onaPosPosition on screenaSizeSize of the elementaIsFocusedFocus state (1 = focused, 0 = not focused)
function Freeze¶
Make element insensitive to redraw method.
void evab::ElementBase::Freeze ()
function OnKey¶
Handles key events for the element.
virtual bool evab::ElementBase::OnKey (
Keys aKey
)
Override to implement custom key handling.
Parameters:
aKeyKey code to process
Returns:
true if the key was handled, false otherwise
Protected Functions Documentation¶
function drawer¶
Pure virtual method for drawing the element.
virtual void evab::ElementBase::drawer (
Screen * aScreen,
Coor aPos,
Coor aSize,
unsigned char aIsFocused
) = 0
Parameters:
aScreenScreen to draw onaPosPosition on screenaSizeSize of the elementaIsFocusedFocus state (1 = focused, 0 = not focused)
function freezer¶
Virtual method for freezing the element.
inline virtual void evab::ElementBase::freezer ()
Override to implement custom freezing behavior.
function isFrozen¶
Checks if the element is currently freezed.
bool evab::ElementBase::isFrozen ()
Returns:
true if the element is freezed and ignores redraw requests, false otherwise.
function redraw¶
Redraws the element on the current screen.
void evab::ElementBase::redraw ()
The documentation for this class was generated from the following file src/evabElementBase.h