diff options
author | inmarket <andrewh@inmarket.com.au> | 2016-02-17 20:00:23 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2016-02-17 20:00:23 +1000 |
commit | addbf47bdbc0c0ca9b217c9001b31e747c57ff95 (patch) | |
tree | 09d3ce25c79352a025857133258e33e3ac6e62db /src/gwin/gwin_list.c | |
parent | 0f0964da99e5774504f6f9ee570813075194303d (diff) | |
download | uGFX-addbf47bdbc0c0ca9b217c9001b31e747c57ff95.tar.gz uGFX-addbf47bdbc0c0ca9b217c9001b31e747c57ff95.tar.bz2 uGFX-addbf47bdbc0c0ca9b217c9001b31e747c57ff95.zip |
Move GWIN widget internal flags into the public header so that all the state flags are available for custom draw routines.
Diffstat (limited to 'src/gwin/gwin_list.c')
-rw-r--r-- | src/gwin/gwin_list.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gwin/gwin_list.c b/src/gwin/gwin_list.c index 4bb9c283..f0bd7362 100644 --- a/src/gwin/gwin_list.c +++ b/src/gwin/gwin_list.c @@ -31,27 +31,6 @@ #define qix2li ((ListItem *)qix) #define ple ((GEventGWinList *)pe) -// Flags for the GListObject -#define GLIST_FLG_MULTISELECT (GWIN_FIRST_CONTROL_FLAG << 0) -#define GLIST_FLG_HASIMAGES (GWIN_FIRST_CONTROL_FLAG << 1) -#define GLIST_FLG_SCROLLALWAYS (GWIN_FIRST_CONTROL_FLAG << 2) -#define GLIST_FLG_SCROLLSMOOTH (GWIN_FIRST_CONTROL_FLAG << 3) -#define GLIST_FLG_ENABLERENDER (GWIN_FIRST_CONTROL_FLAG << 4) - -// Flags on a ListItem. -#define GLIST_FLG_SELECTED 0x0001 - -typedef struct ListItem { - gfxQueueASyncItem q_item; // This must be the first member in the struct - - uint16_t flags; - uint16_t param; // A parameter the user can specify himself - const char* text; - #if GWIN_NEED_LIST_IMAGES - gdispImage* pimg; - #endif -} ListItem; - static void sendListEvent(GWidgetObject *gw, int item) { GSourceListener* psl; GEvent* pe; |