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 "common/gooey_common.h"
5
20GooeyRadioButton *GooeyRadioButton_Add( int x, int y,
21 char *label,
22 void (*callback)(bool selected));
23
36bool GooeyRadioButton_HandleClick(GooeyWindow *win, int x, int y);
37
50bool GooeyRadioButtonGroup_HandleClick(GooeyWindow *win, int x, int y);
51
61GooeyRadioButtonGroup *GooeyRadioButtonGroup_Create();
62
78GooeyRadioButton *GooeyRadioButtonGroup_AddChild(GooeyWindow *win, GooeyRadioButtonGroup *group, int x, int y, const char *label, void (*callback)(bool));
79
88void GooeyRadioButtonGroup_Draw(GooeyWindow *win);
89
90#endif /* GOOEY_RADIOBUTTON_H */
GooeyRadioButtonGroup * GooeyRadioButtonGroup_Create()
Creates a radio button group widget.
void GooeyRadioButtonGroup_Draw(GooeyWindow *win)
Draws the radio button group on 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)
Handles click events for a group of radio buttons.
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.
GooeyRadioButton * GooeyRadioButton_Add(int x, int y, char *label, void(*callback)(bool selected))
Adds a radio button to the window.