#include <otIconGrid.h>
Public Types | |
enum | GridSize { G_8x6, G_4x3, G_5x3, G_3x4, G_6x8 } |
Public Member Functions | |
otIconGrid () | |
bool | init (U16 size, U16 items, U16 colorFore, U16 colorBack, otFILE *file, otGraphics *tft) |
bool | addItem (U16 index, const char *fileName, const char *label=0, const char *toolTip=0) |
bool | setPixmap (U16 index, const char *fileName) |
void | activate (U16 idx) |
void | select (U16 idx) |
void | update () |
void | next () |
void | previous () |
U16 | selected () |
|
|
Create the class |
|
Activate an item of the grid
|
|
Add a new itme to the grid
|
|
Init the class
|
|
Select next icon. If the icon is the last one in the current display, a scroll down occurs on the next icons, if present. |
|
Select previous icon. If the icon is the first one in the current display, a scroll up occurs on the back icons, if present. |
|
Select an item of the grid
|
|
Return select icon index |
|
Change a selected pixmap in the grid
|
|
Draw all icons of the current view |