Skip to content

Class evab::FlipWindowAlgorithm

ClassList > evab > FlipWindowAlgorithm

Flip-page navigation algorithm. More...

  • #include <evabWindowAlgorithms.h>

Inherits the following classes: evab::WindowAlgorithmBase

Inherited by the following classes: evab::ListBox

Public Functions

Type Name
virtual void Select (unsigned char aIndex) override
Selects an item using flip-page navigation.
WindowAlgorithmBase (unsigned char aCount=0)
Constructor for window algorithm base.

Public Functions inherited from evab::WindowAlgorithmBase

See evab::WindowAlgorithmBase

Type Name
unsigned char Count ()
Gets the total number of items.
virtual void Select (unsigned char aIndex) = 0
Pure virtual method to select an item.
signed short Selected ()
Gets the currently selected item index.
WindowAlgorithmBase (unsigned char aCount=0)
Constructor for window algorithm base.
unsigned char WindowSize ()
Gets the window size.

Protected Attributes inherited from evab::WindowAlgorithmBase

See evab::WindowAlgorithmBase

Type Name
unsigned char mCount
Total number of items.
unsigned char mSelected
Currently selected index.
unsigned char mWindowSize
Window size.
unsigned char mWindowStart
Start of the current window.

Protected Functions inherited from evab::WindowAlgorithmBase

See evab::WindowAlgorithmBase

Type Name
signed char indexInWindow (unsigned char aPosition)
Calculates the visual index of an item in the current window.
void setCount (unsigned char aCount)
Sets the total number of items.
void setWindowSize (unsigned char aWindowSize)
Resizes the window.

Detailed Description

Pages are flipped in chunks of window size.

Public Functions Documentation

function Select

Selects an item using flip-page navigation.

virtual void evab::FlipWindowAlgorithm::Select (
    unsigned char aIndex
) override

Parameters:

  • aIndex Index to select

Implements evab::WindowAlgorithmBase::Select


function WindowAlgorithmBase

Constructor for window algorithm base.

evab::FlipWindowAlgorithm::WindowAlgorithmBase (
    unsigned char aCount=0
) 

Parameters:

  • aCount Total number of items


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