Gooey GUI Library
Loading...
Searching...
No Matches
gooey_radiobutton.h
Go to the documentation of this file.
1#ifndef GOOEY_RADIOBUTTON_H
2#define GOOEY_RADIOBUTTON_H
3
4#include "core/gooey_backend_internal.h"
5#include "gooey_widgets_internal.h"
6
17GooeyRadioButton *GooeyRadioButton_Add(GooeyWindow *win, int x, int y,
18 char *label,
19 void (*callback)(bool selected));
20
29bool GooeyRadioButton_HandleClick(GooeyWindow *win, int x, int y);
30
31bool GooeyRadioButtonGroup_HandleClick(GooeyWindow *win, int x, int y);
32
33
40GooeyRadioButtonGroup *GooeyRadioButtonGroup_Create(GooeyWindow *win);
41
52GooeyRadioButton *GooeyRadioButtonGroup_AddChild(GooeyWindow *win, GooeyRadioButtonGroup *group, int x, int y, const char *label, void (*callback)(bool));
53
59void GooeyRadioButtonGroup_Draw(GooeyWindow *win);
60
61
62
63#endif
void GooeyRadioButtonGroup_Draw(GooeyWindow *win)
Draws the radio button group on the window.
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.