From b0b35396395c3eadc5a656df995a17b266c4b374 Mon Sep 17 00:00:00 2001 From: inmarket Date: Thu, 1 Aug 2013 14:54:25 +1000 Subject: Update GWIN list. Now supports item and page scrolling. A few bugs fixed. --- include/gwin/list.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/gwin/list.h') 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 -- cgit v1.2.3