|
ginnOS
The reference: libc, the libraries and the kernel
|
idunn: a switch, 32 by 18 pixels: a round track (the input colour when off, the accent when on) and a white 14 pixel thumb that slides in 120 ms. More...
Macros | |
| #define | WIDTH 32 |
| #define | HEIGHT 18 |
| #define | THUMB 14 |
| #define | INSET 2 |
| #define | SLIDE_MS 120 |
Functions | |
| idunn_widget_t * | idunn_switch (const char *label, bool on, idunn_callback_t on_change, void *data) |
| a switch with a label to its right; it slides when it changes. | |
| bool | idunn_switch_on (const idunn_widget_t *sw) |
| void | idunn_switch_set_on (idunn_widget_t *sw, bool on) |
idunn: a switch, 32 by 18 pixels: a round track (the input colour when off, the accent when on) and a white 14 pixel thumb that slides in 120 ms.
| #define WIDTH 32 |
| #define HEIGHT 18 |
| #define THUMB 14 |
| #define INSET 2 |
| #define SLIDE_MS 120 |
| idunn_widget_t * idunn_switch | ( | const char * | label, |
| bool | on, | ||
| idunn_callback_t | on_change, | ||
| void * | data ) |
a switch with a label to its right; it slides when it changes.
| bool idunn_switch_on | ( | const idunn_widget_t * | sw | ) |
| void idunn_switch_set_on | ( | idunn_widget_t * | sw, |
| bool | on ) |