hV_Graphics — Table
The table graphic displays a grid of interactive cells. Each cell can be activated separately. The table also acts as an input and returns the cell selected by touch.
The gTable is a class and contains, apart from the constructor, two functions: dDefine and draw. For the input part, three functions: enable, check and getIndex. Temporary minimum and maximum values can be noticed with a green and red dot. All parameters are integers with an optional unit. A table is declared with the gTable class:
|
The function of the gTable class to define a table is:
|
|
Output
Input
The gGauge class as input has three functions:
|
The new library uses integers only to save memory (no need for the 6KB real library!) and processing power.
The graphic is updated only if the value passed is different from the previous one. This allows smoother graphics and faster drawing. |