Gooey GUI Library
Loading...
Searching...
No Matches
gooey_list.h
Go to the documentation of this file.
1
11 #ifndef GOOEY_LIST_H
12 #define GOOEY_LIST_H
13
14 #include "common/gooey_common.h"
15
28 GooeyList *GooeyList_Create(int x, int y, int width, int height, void (*callback)(int index));
29
37 void GooeyList_AddItem(GooeyList *list, const char *title, const char *description);
38
46 void GooeyList_ClearItems(GooeyList *list);
47
56 void GooeyList_ShowSeparator(GooeyList *list, bool state);
57 void GooeyList_UpdateItem(GooeyList *list, size_t item_index, const char *title, const char *description);
58 #endif // GOOEY_LIST_H
59
void GooeyList_ShowSeparator(GooeyList *list, bool state)
Toggles the visibility of the separator in a list widget.
GooeyList * GooeyList_Create(int x, int y, int width, int height, void(*callback)(int index))
Creates a widget.
void GooeyList_ClearItems(GooeyList *list)
Clears all items from the specified list widget.
void GooeyList_AddItem(GooeyList *list, const char *title, const char *description)
Adds an item to the specified list widget.
void GooeyList_UpdateItem(GooeyList *list, size_t item_index, const char *title, const char *description)