36 #define GEVENT_GWIN_LIST (GEVENT_GWIN_CTRL_FIRST+4)
51 typedef struct GListObject {
59 #if GINPUT_NEED_TOGGLE
84 #define GLIST_FLG_MULTISELECT 0x01
85 #define GLIST_FLG_HASIMAGES 0x02
86 #define GLIST_FLG_SCROLLALWAYS 0x04
87 #define GLIST_FLG_SCROLLSMOOTH 0x08
88 #define GLIST_FLG_ENABLERENDER 0x10
99 #define GLIST_FLG_SELECTED 0x0001
102 #if GWIN_NEED_LIST_IMAGES
132 #define gwinListCreate(w, pInit, m) gwinGListCreate(GDISP, w, pInit, m)
336 #if GWIN_NEED_LIST_IMAGES || defined(__DOXYGEN__)
gI16 gCoord
The type for a coordinate or length on the screen.
struct ListItem ListItem
The internal list item structure.
struct GEventGWinList GEventGWinList
A list event.
const char * gwinListItemGetText(GHandle gh, int item)
Get the name behind an item with a given ID.
gU16 gwinListItemGetParam(GHandle gh, int item)
Get the custom parameter of an item with a given ID.
int gwinListGetSelected(GHandle gh)
Get the ID of the selected item.
void gwinListItemSetParam(GHandle gh, int item, gU16 param)
Set the custom parameter of an item with a given ID.
const char * gwinListGetSelectedText(GHandle gh)
Get the text of the selected item.
scroll_t
Enum to change the behaviour of the scroll bar.
void gwinListItemSetText(GHandle gh, int item, const char *text, gBool useAlloc)
Set the custom parameter of an item with a given ID.
void gwinListViewItem(GHandle gh, int item)
Scroll the list so the specified item is in view.
void gwinListSetSelected(GHandle gh, int item, gBool doSelect)
Set whether a specific item is selected or not.
int gwinListFindText(GHandle gh, const char *text)
Get the ID of an item with a given name.
gBool gwinListItemIsSelected(GHandle gh, int item)
Check if an item with a given ID is selected.
int gwinListAddItem(GHandle gh, const char *text, gBool useAlloc)
Add an item to the list.
GHandle gwinGListCreate(GDisplay *g, GListObject *widget, GWidgetInit *pInit, gBool multiselect)
Create a list widget.
void gwinListDeleteAll(GHandle gh)
Delete all the items of the list.
void gwinListItemSetImage(GHandle gh, int item, gImage *pimg)
Set the image for a list item.
int gwinListItemCount(GHandle gh)
Get the amount of items within the list.
void gwinListSetScroll(GHandle gh, scroll_t flag)
Change the behaviour of the scroll bar.
void gwinListItemDelete(GHandle gh, int item)
Delete an item from the list.
void gwinListEnableRender(GHandle gh, gBool ena)
Enable or disable the rendering of the list.
void gwinListDefaultDraw(GWidgetObject *gw, void *param)
The default rendering function for the list widget.
A window object structure.
The internal list item structure.
The structure for an image.