Gooey GUI Library
Loading...
Searching...
No Matches
gooey_list.h
Go to the documentation of this file.
1#ifndef GOOEY_LIST_H
2#define GOOEY_LIST_H
3
4#include "core/gooey_backend_internal.h"
5#include "gooey_widgets_internal.h"
6
17GooeyList *GooeyList_Add(GooeyWindow *window, int x, int y, int width, int height, void (*callback)(int index));
18
26void GooeyList_AddItem(GooeyList *list, const char *title, const char *description);
27
35bool GooeyList_HandleScroll(GooeyWindow *window, GooeyEvent *event);
36
43bool GooeyList_HandleThumbScroll(GooeyWindow *window, GooeyEvent *scroll_event);
44
45
46bool GooeyList_HandleClick(GooeyWindow *window, int mouse_x, int mouse_y);
47
53void GooeyList_Draw(GooeyWindow *window);
54
55#endif
GooeyList * GooeyList_Add(GooeyWindow *window, int x, int y, int width, int height, void(*callback)(int index))
Adds a list widget to the window specified.
bool GooeyList_HandleScroll(GooeyWindow *window, GooeyEvent *event)
Handles scroll events.
void GooeyList_Draw(GooeyWindow *window)
Draws All attached list widgets onto window.
bool GooeyList_HandleThumbScroll(GooeyWindow *window, GooeyEvent *scroll_event)
void GooeyList_AddItem(GooeyList *list, const char *title, const char *description)
Adds a list widget to the window specified.
bool GooeyList_HandleClick(GooeyWindow *window, int mouse_x, int mouse_y)