30#define LIST_MAX_ITEMS 64
31#define LIST_ITEM_HEIGHT 30
bool listRemove(List *l, const char *name)
Removes an item from a List.
Definition list.c:146
bool listAdd(List *l, const char *name)
Adds an item to a List.
Definition list.c:129
void listDraw(List *l)
Draws a List.
Definition list.c:63
bool listCheck(List *l)
Checks if an item in the List was clicked.
Definition list.c:95
List listCreate(int x, int y, int w, int h)
Creates a new List.
Definition list.c:42
#define LIST_MAX_ITEMS
Maximum number of items in a List.
Definition list.h:30
int itemCount
Number of items currently in the list.
Definition list.h:36
char items[LIST_MAX_ITEMS][128]
Item name strings.
Definition list.h:35
int selectedIndex
Index of the selected item (-1 if none)
Definition list.h:37
Color selectedColor
Color of the selected item.
Definition list.h:40
int hoveredIndex
Index of the currently hovered item (-1 if none)
Definition list.h:42
Color hoverColor
Color of a hovered item.
Definition list.h:41
Rectangle rect
List bounds.
Definition list.h:34
int fontSize
Font size for item text.
Definition list.h:38
Color baseColor
Background color.
Definition list.h:39