#ifndef BUTTON_H
#define BUTTON_H
#include "../ui/button.h"
#include "toolkit.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
UcxList *buttons;
Widget current;
int ref;
} RadioButtonGroup;
typedef struct {
UiObject *obj;
ui_callback callback;
void *userdata;
RadioButtonGroup *group;
} RadioEventData;
int64_t ui_toggle_button_get(UiInteger *i);
void ui_toggle_button_set(UiInteger *i,
int64_t value);
void ui_toggle_button_callback(
Widget widget,
UiEventData *data,
XmToggleButtonCallbackStruct *e);
void ui_push_button_callback(Widget widget, UiEventData *event, XtPointer d);
int64_t ui_radiobutton_get(UiInteger *value);
void ui_radiobutton_set(UiInteger *value,
int64_t i);
#ifdef __cplusplus
}
#endif
#endif