|
ginnOS
The reference: libc, the libraries and the kernel
|
idunn: a select: a button like a text field with the chosen value and a chevron. More...
Macros | |
| #define | HEIGHT 32 |
| #define | PAD 12 |
| #define | ICON 16 |
| #define | WIDTH 200 |
Functions | |
| idunn_widget_t * | idunn_select (const char *const *choices, int count, int chosen, idunn_callback_t on_change, void *data) |
| a select: a field with the chosen value; it opens a menu of the choices. | |
| int | idunn_select_chosen (const idunn_widget_t *select) |
| void | idunn_select_choose (idunn_widget_t *select, int chosen) |
| void | idunn_select_set_placeholder (idunn_widget_t *select, const char *text) |
idunn: a select: a button like a text field with the chosen value and a chevron.
a click, Space, Enter or the arrows open a menu of the choices under it, as wide as it, with a check at the chosen one.
| #define HEIGHT 32 |
| #define PAD 12 |
| #define ICON 16 |
| #define WIDTH 200 |
| idunn_widget_t * idunn_select | ( | const char *const * | choices, |
| int | count, | ||
| int | chosen, | ||
| idunn_callback_t | on_change, | ||
| void * | data ) |
a select: a field with the chosen value; it opens a menu of the choices.
| chosen | the index of the chosen one, or -1 (the placeholder shows). |
| int idunn_select_chosen | ( | const idunn_widget_t * | select | ) |
| void idunn_select_choose | ( | idunn_widget_t * | select, |
| int | chosen ) |
| void idunn_select_set_placeholder | ( | idunn_widget_t * | select, |
| const char * | text ) |