#include "core/gooey_backend_internal.h"
Go to the source code of this file.
◆ GooeyCheckbox_Add()
GooeyCheckbox * GooeyCheckbox_Add |
( |
GooeyWindow * |
win, |
|
|
int |
x, |
|
|
int |
y, |
|
|
char * |
label, |
|
|
void(*)(bool checked) |
callback |
|
) |
| |
Adds a checkbox to the window.
- Parameters
-
win | The window to add the checkbox to. |
x | The x-coordinate of the checkbox's position. |
y | The y-coordinate of the checkbox's position. |
label | The label for the checkbox. |
callback | The callback function to call when the checkbox is clicked. |
- Returns
- A new GooeyCheckbox object.
◆ GooeyCheckbox_Draw()
void GooeyCheckbox_Draw |
( |
GooeyWindow * |
win | ) |
|
◆ GooeyCheckbox_HandleClick()
bool GooeyCheckbox_HandleClick |
( |
GooeyWindow * |
win, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
Handles checkbox click events.
- Parameters
-
win | The window containing the checkbox. |
x | The x-coordinate of the click event. |
y | The y-coordinate of the click event. |
- Returns
- True if the checkbox was clicked, false otherwise.