#include "core/gooey_backend_internal.h"
#include "gooey_widgets_internal.h"
Go to the source code of this file.
|
| 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.
|
| |
| void | GooeyList_AddItem (GooeyList *list, const char *title, const char *description) |
| | Adds a list widget to the window specified.
|
| |
| bool | GooeyList_HandleScroll (GooeyWindow *window, GooeyEvent *event) |
| | Handles scroll events.
|
| |
| bool | GooeyList_HandleThumbScroll (GooeyWindow *window, GooeyEvent *scroll_event) |
| |
| bool | GooeyList_HandleClick (GooeyWindow *window, int mouse_x, int mouse_y) |
| |
| void | GooeyList_Draw (GooeyWindow *window) |
| | Draws All attached list widgets onto window.
|
| |
◆ GooeyList_Add()
| GooeyList * GooeyList_Add |
( |
GooeyWindow * |
window, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height, |
|
|
void(*)(int index) |
callback |
|
) |
| |
Adds a list widget to the window specified.
- Parameters
-
| window | The window which you're adding the list widget to. |
| x | The x-coordinate of the list widget. |
| y | The y-coordinate of the list widget. |
| width | The width of the list widget. |
| height | The height of the list widget. |
| callback | The callback attached to the said item. |
◆ GooeyList_AddItem()
| void GooeyList_AddItem |
( |
GooeyList * |
list, |
|
|
const char * |
title, |
|
|
const char * |
description |
|
) |
| |
Adds a list widget to the window specified.
- Parameters
-
| list | The List widget you're adding the item to. |
| title | The title of the list widget item. |
| description | The description of the list widget item. |
◆ GooeyList_Draw()
| void GooeyList_Draw |
( |
GooeyWindow * |
window | ) |
|
Draws All attached list widgets onto window.
- Parameters
-
| window | The window which you're adding the list widget to. |
◆ GooeyList_HandleClick()
| bool GooeyList_HandleClick |
( |
GooeyWindow * |
window, |
|
|
int |
mouse_x, |
|
|
int |
mouse_y |
|
) |
| |
◆ GooeyList_HandleScroll()
| bool GooeyList_HandleScroll |
( |
GooeyWindow * |
window, |
|
|
GooeyEvent * |
event |
|
) |
| |
Handles scroll events.
- Parameters
-
| window | The window containing the list. |
| event | The scroll event. |
- Returns
- if mouse scroll event then returns true, otherwise returns false.
◆ GooeyList_HandleThumbScroll()
| bool GooeyList_HandleThumbScroll |
( |
GooeyWindow * |
window, |
|
|
GooeyEvent * |
scroll_event |
|
) |
| |
Handles thumb dragging for a GooeyList.
- Parameters
-
| window | Pointer to the GooeyWindow. |
| scroll_event | Pointer to the GooeyEvent. |
- Returns
- True if the event was handled, false otherwise.