diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-08-01 14:54:25 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-08-01 14:54:25 +1000 |
commit | b0b35396395c3eadc5a656df995a17b266c4b374 (patch) | |
tree | e0e425ee36735d42e5b343e4f4a72d429a9a3c46 /include/gwin/list.h | |
parent | 58b52600138435073803de6844b4adb48b501307 (diff) | |
download | uGFX-b0b35396395c3eadc5a656df995a17b266c4b374.tar.gz uGFX-b0b35396395c3eadc5a656df995a17b266c4b374.tar.bz2 uGFX-b0b35396395c3eadc5a656df995a17b266c4b374.zip |
Update GWIN list.
Now supports item and page scrolling.
A few bugs fixed.
Diffstat (limited to 'include/gwin/list.h')
-rw-r--r-- | include/gwin/list.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/gwin/list.h b/include/gwin/list.h index d28206d9..99f5f532 100644 --- a/include/gwin/list.h +++ b/include/gwin/list.h @@ -52,6 +52,7 @@ typedef struct GListObject { #endif int cnt; // Number of items currently in the list (quicker than counting each time) + int top; // The element at the top of the visible list area gfxQueueASync list_head; // The list of items } GListObject; @@ -111,7 +112,7 @@ int gwinListAddItem(GHandle gh, const char* item, bool_t useAlloc); * * @api */ -char* gwinListItemGetText(GHandle gh, int item); +const char* gwinListItemGetText(GHandle gh, int item); /** * @brief Get the ID of an item with a given name |