Creating widgets
Options
Note
Only OPT_CENTERX, OPT_CENTERY, OPT_CENTER, OPT_RIGHTX and OPT_SIGNED are available as gui. constants; the other option values must be passed as raw integers.
Name |
Value |
Description |
Objects |
|---|---|---|---|
OPT_3D
|
0
|
Widget drawn in 3D (default)
|
Button, clock, keys, gauge, slider,
dial, toggle, progress, scrollbar
|
OPT_RGB565 |
0 |
Decode JPEG image to RGB565 format |
image |
OPT_MONO |
1 |
Decode JPEG image to L8 format |
Image |
OPT_NODL
|
2
|
No display list commands generated
for bitmap decoded from JPEG
|
Image
|
OPT_FLAT
|
256
|
Widget drawn without 3D effect
|
Button, clock, keys, gauge, slider,
dial, toggle, progress, scrollbar
|
OPT_SIGNED |
256 |
Number treated as 32 bit signed integer |
Number |
OPT_CENTERX |
512 |
Widget centred horizontally |
Keys, text, number |
OPT_CENTERY |
1024 |
Widget centred vertically |
Keys, text, number |
OPT_CENTER |
1536 |
Widget centred horizontally and vertically |
Keys, text, number |
OPT_RIGHTX |
2048 |
Widget label is right justified |
Keys, text, number |
OPT_NOBACK |
4096 |
Widget has no background drawn |
Clock, gauge |
OPT_NOTICKS
|
8192
|
Clock widget drawn without hour ticks
Gauge widget drawn without major and minor ticks
|
Clock, gauge
|
OPT_NOHM
|
16384
|
Clock widget drawn without hour and minute hands,
only contain second hand
|
Clock
|
OPT_NOPOINTER |
16384 |
Gauge widget has no pointer |
Gauge |
OPT_NOSECS |
32768 |
Clock widget is drawn without second hand |
Clock |
OPT_NOHANDS
|
49152
|
Clock widget drawn without hour,
minute and second hands
|
Clock
|