#include "core/gooey_backend_internal.h"
#include "gooey_widgets_internal.h"
Go to the source code of this file.
|
GooeyRadioButton * | GooeyRadioButton_Add (GooeyWindow *win, int x, int y, char *label, void(*callback)(bool selected)) |
| Adds a radio button to the window.
|
|
bool | GooeyRadioButton_HandleClick (GooeyWindow *win, int x, int y) |
| Handles radio button click events.
|
|
bool | GooeyRadioButtonGroup_HandleClick (GooeyWindow *win, int x, int y) |
|
GooeyRadioButtonGroup * | GooeyRadioButtonGroup_Create (GooeyWindow *win) |
| Creates a radio button group widget.
|
|
GooeyRadioButton * | GooeyRadioButtonGroup_AddChild (GooeyWindow *win, GooeyRadioButtonGroup *group, int x, int y, const char *label, void(*callback)(bool)) |
| Adds a radio button to a radio button group.
|
|
void | GooeyRadioButtonGroup_Draw (GooeyWindow *win) |
| Draws the radio button group on the window.
|
|
◆ GooeyRadioButton_Add()
GooeyRadioButton * GooeyRadioButton_Add |
( |
GooeyWindow * |
win, |
|
|
int |
x, |
|
|
int |
y, |
|
|
char * |
label, |
|
|
void(*)(bool selected) |
callback |
|
) |
| |
Adds a radio button to the window.
- Parameters
-
win | The window to add the radio button to. |
x | The x-coordinate of the radio button's position. |
y | The y-coordinate of the radio button's position. |
label | The label of the radio button. |
callback | The callback function to call when the radio button is selected. |
- Returns
- A new GooeyRadioButton object.
◆ GooeyRadioButton_HandleClick()
bool GooeyRadioButton_HandleClick |
( |
GooeyWindow * |
win, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
Handles radio button click events.
- Parameters
-
win | The window containing the radio button. |
x | The x-coordinate of the click event. |
y | The y-coordinate of the click event. |
- Returns
- True if the radio button was clicked, false otherwise.
◆ GooeyRadioButtonGroup_AddChild()
GooeyRadioButton * GooeyRadioButtonGroup_AddChild |
( |
GooeyWindow * |
win, |
|
|
GooeyRadioButtonGroup * |
group, |
|
|
int |
x, |
|
|
int |
y, |
|
|
const char * |
label, |
|
|
void(*)(bool) |
callback |
|
) |
| |
Adds a radio button to a radio button group.
- Parameters
-
group | The radio button group to add the button to. |
x | The x-coordinate of the radio button. |
y | The y-coordinate of the radio button. |
label | The label for the radio button. |
callback | The callback to execute when the radio button is selected. |
- Returns
- The GooeyRadioButton object.
◆ GooeyRadioButtonGroup_Create()
GooeyRadioButtonGroup * GooeyRadioButtonGroup_Create |
( |
GooeyWindow * |
win | ) |
|
Creates a radio button group widget.
- Parameters
-
win | The window containing the radio button group. |
- Returns
- GooeyRadioButtonGroup widget pointer.
◆ GooeyRadioButtonGroup_Draw()
void GooeyRadioButtonGroup_Draw |
( |
GooeyWindow * |
win | ) |
|
Draws the radio button group on the window.
- Parameters
-
win | The window to draw the radio button group on. |
◆ GooeyRadioButtonGroup_HandleClick()
bool GooeyRadioButtonGroup_HandleClick |
( |
GooeyWindow * |
win, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |