version 2.8
gwin_list.h File Reference

Detailed Description

GWIN list widget header file.

Definition in file gwin_list.h.

Go to the source code of this file.

Data Structures

struct  GEventGWinList
 A list event. More...
 
struct  ListItem
 The internal list item structure. More...
 

Functions

GHandle gwinGListCreate (GDisplay *g, GListObject *widget, GWidgetInit *pInit, bool_t multiselect)
 Create a list widget. More...
 
void gwinListEnableRender (GHandle gh, bool_t ena)
 Enable or disable the rendering of the list. More...
 
void gwinListSetScroll (GHandle gh, scroll_t flag)
 Change the behaviour of the scroll bar. More...
 
int gwinListAddItem (GHandle gh, const char *text, bool_t useAlloc)
 Add an item to the list. More...
 
void gwinListItemSetText (GHandle gh, int item, const char *text, bool_t useAlloc)
 Set the custom parameter of an item with a given ID. More...
 
const char * gwinListItemGetText (GHandle gh, int item)
 Get the name behind an item with a given ID. More...
 
int gwinListFindText (GHandle gh, const char *text)
 Get the ID of an item with a given name. More...
 
void gwinListItemSetParam (GHandle gh, int item, uint16_t param)
 Set the custom parameter of an item with a given ID. More...
 
uint16_t gwinListItemGetParam (GHandle gh, int item)
 Get the custom parameter of an item with a given ID. More...
 
void gwinListDeleteAll (GHandle gh)
 Delete all the items of the list. More...
 
void gwinListItemDelete (GHandle gh, int item)
 Delete an item from the list. More...
 
int gwinListItemCount (GHandle gh)
 Get the amount of items within the list. More...
 
bool_t gwinListItemIsSelected (GHandle gh, int item)
 Check if an item with a given ID is selected. More...
 
int gwinListGetSelected (GHandle gh)
 Get the ID of the selected item. More...
 
const char * gwinListGetSelectedText (GHandle gh)
 Get the text of the selected item. More...
 
void gwinListSetSelected (GHandle gh, int item, bool_t doSelect)
 Set whether a specific item is selected or not. More...
 
void gwinListViewItem (GHandle gh, int item)
 Scroll the list so the specified item is in view. More...
 
void gwinListItemSetImage (GHandle gh, int item, gdispImage *pimg)
 Set the image for a list item. More...
 
void gwinListDefaultDraw (GWidgetObject *gw, void *param)
 The default rendering function for the list widget. More...
 

Macros

#define GEVENT_GWIN_LIST   (GEVENT_GWIN_CTRL_FIRST+4)
 The event type for a list event. More...
 
#define GLIST_FLG_MULTISELECT   0x01
 The internal list object flags. More...
 

Typedefs

typedef struct GEventGWinList GEventGWinList
 A list event. More...
 
typedef enum scroll_t scroll_t
 Enum to change the behaviour of the scroll bar. More...
 
typedef struct ListItem ListItem
 The internal list item structure. More...
 

Enumerations