Skip to content

Struct evab::HorizontalTextPolicy

ClassList > evab > HorizontalTextPolicy

Policy for horizontal text-based stretch bars.

  • #include <evabStretchBar.h>

Public Static Functions

Type Name
unsigned short CalculateResolution (Coor aSize)
Calculates resolution (number of possible positions).
unsigned short CalculateTotalBlocks (Coor aSize)
Calculates total number of blocks.
Coor GetTilePosition (Coor aPos, Coor aSize, unsigned char index, unsigned char total)
Gets position of a block.

Public Static Functions Documentation

function CalculateResolution

Calculates resolution (number of possible positions).

static inline unsigned short evab::HorizontalTextPolicy::CalculateResolution (
    Coor aSize
) 

Parameters:

  • aSize Size of the element

Returns:

Resolution value


function CalculateTotalBlocks

Calculates total number of blocks.

static inline unsigned short evab::HorizontalTextPolicy::CalculateTotalBlocks (
    Coor aSize
) 

Parameters:

  • aSize Size of the element

Returns:

Total number of blocks


function GetTilePosition

Gets position of a block.

static inline Coor evab::HorizontalTextPolicy::GetTilePosition (
    Coor aPos,
    Coor aSize,
    unsigned char index,
    unsigned char total
) 

Parameters:

  • aPos Base position
  • aSize Size of the element
  • index Block index
  • total Total number of blocks

Returns:

Position of the block



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