diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-07-25 19:15:51 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-07-25 19:15:51 +0200 |
commit | 57eeb16aba2613c1329eafbf7d7453cd67f2cc69 (patch) | |
tree | 2903ee511844ab3c3e4af2ed2bd008bc66604ccd /include/gwin | |
parent | 7cd43464ed721a7abd34e0c0b33a4a3822bbd3ec (diff) | |
download | uGFX-57eeb16aba2613c1329eafbf7d7453cd67f2cc69.tar.gz uGFX-57eeb16aba2613c1329eafbf7d7453cd67f2cc69.tar.bz2 uGFX-57eeb16aba2613c1329eafbf7d7453cd67f2cc69.zip |
list widget - work in progress
Diffstat (limited to 'include/gwin')
-rw-r--r-- | include/gwin/list.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/gwin/list.h b/include/gwin/list.h index 0b525b03..46e32d5c 100644 --- a/include/gwin/list.h +++ b/include/gwin/list.h @@ -37,13 +37,16 @@ * @brief A list event */ typedef struct GEventGWinList { - GEventType type; // The type of this event (GEVENT_GWIN_LIST) - GHandle list; // THe list that has generated the event + GEventType type; // The type of this event (GEVENT_GWIN_LIST) + GHandle list; // The list + int item; // The item that has been selected (or unselected in a multi-select listbox) } GEventGWinList; // A list window typedef struct GListObject { GWidgetObject w; + int cnt; // Number of items currently in the list (quicker than counting each time) + gfxQueueASync list_head; // The list of items } GListObject; #ifdef __cplusplus @@ -52,6 +55,8 @@ extern "C" { GHandle gwinListCreate(GListObject *widget, GWidgetInit *pInit); +int gwinListAddItem(GHandle gh, const char* item, bool_t useAlloc); + #ifdef __cplusplus } #endif |