Public Methods |
struct cList* | cList_ctor (struct cList *ptr_clist, int width) |
void | cList_dtor (struct cList *ptr_clist, int memory_flag) |
void | cList_AddItem (struct cList *ptr_clist, struct cObject *ptr_cobject) |
void | cList_AddItem_Ex (struct cList *ptr_clist, struct cObject *ptr_cobject, int number_items) |
void | cList_RemItem (struct cList *ptr_clist, struct cObject *ptr_cobject) |
bool | cList_proc (struct cList *ptr_clist, struct Message *ptr_message) |
int | cList_Sel (struct cList *ptr_clist) |
void | cList_Disconnect (struct cList *ptr_clist) |
bool | cList_Select (struct cList *ptr_clist) |
void | cList_update (struct cList *ptr_clist) |
struct cClip* | cList_GetParent (struct cList *ptr_clist) |
void | cList_Hide (struct cList *ptr_clist) |
void | cList_Show (struct cList *ptr_clist) |
void | cList_Disable (struct cList *ptr_clist) |
void | cList_Enable (struct cList *ptr_clist) |
void | cList_AddObj (struct cList *ptr_clist, struct cObject *ptr_object, int x, int y) |
void | cList_InsObj (struct cList *ptr_clist, struct cObject *ptr_object, int x, int y, int index) |
void | cList_RemObj (struct cClip *ptr_clist, struct cObject *ptr_object) |
bool | cList_SelectFirst (struct cList *ptr_clist) |
bool | cList_SelectPrev (struct cList *ptr_clist, bool round) |
bool | cList_SelectNext (struct cList *ptr_clist, bool round) |
void | cList_Scroll (struct cList *ptr_clist, struct rect_t *rectangle) |
void | cList_Scroll_Ex (struct cList *ptr_clist, int x, int y) |
void | cList_SendScroll (struct cList *ptr_clist) |
int | cList_GetShifty (struct cList *ptr_clist) |
int | cList_GetShiftx (struct cList *ptr_clist) |
int | cList_GetCount (struct cList *ptr_clist) |
struct cObject* | cList_get_by_index (struct cList *ptr_clist, int index) |
int | cList_FindObj (struct cList *ptr_clist, struct cObject *ptr_object) |
struct cObject* | cList_GetSelectedObject (struct cList *ptr_clist) |
This structure implements methods for working with a list and a menu. A cList object is a container for cItem, cXItem and cSItem objects.
To add these objects to a list, use the cList_AddItem function. To remove objects from a list or a menu use the cList_RemItem function.
When a message comes in, process it using the cList_proc function.
You must call the cList_ctor function before use and the cList_dtor function after use.