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:
aSizeSize of the element
Returns:
Resolution value
function CalculateTotalBlocks¶
Calculates total number of blocks.
static inline unsigned short evab::HorizontalTextPolicy::CalculateTotalBlocks (
Coor aSize
)
Parameters:
aSizeSize 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:
aPosBase positionaSizeSize of the elementindexBlock indextotalTotal number of blocks
Returns:
Position of the block
The documentation for this class was generated from the following file src/evabStretchBar.h