Gooey GUI Library
|
Header file for the GooeyCheckbox module. More...
#include "common/gooey_common.h"
Go to the source code of this file.
Functions | |
GooeyCheckbox * | GooeyCheckbox_Create (int x, int y, char *label, void(*callback)(bool checked)) |
Adds a checkbox to the specified window. | |
Header file for the GooeyCheckbox module.
Provides functions to create, handle, and draw checkboxes within a GooeyWindow.
GooeyCheckbox * GooeyCheckbox_Create | ( | int | x, |
int | y, | ||
char * | label, | ||
void(*)(bool checked) | callback | ||
) |
Adds a checkbox to the specified window.
This function creates a new GooeyCheckbox with the given label.
x | The x-coordinate of the checkbox's position. |
y | The y-coordinate of the checkbox's position. |
label | The label text displayed next to the checkbox. |
callback | The function to call when the checkbox is clicked. The callback receives a boolean indicating whether the checkbox is checked (true ) or unchecked (false ). |