ui/motif/button.h

changeset 112
fdd33964b35f
parent 34
0ec8a5f17782
child 153
ee49d1852a5f
--- a/ui/motif/button.h	Sun Jan 24 18:47:39 2016 +0100
+++ b/ui/motif/button.h	Sun Jan 24 19:23:49 2016 +0100
@@ -36,6 +36,18 @@
 extern "C" {
 #endif
 
+typedef struct {
+    UcxList *buttons;
+    Widget  current;
+    int     ref;
+} RadioButtonGroup;
+
+typedef struct {
+    UiObject         *obj;
+    ui_callback      callback;
+    void             *userdata;
+    RadioButtonGroup *group;
+} RadioEventData;
 
 // wrapper
 int ui_toggle_button_get(UiInteger *i);
@@ -46,6 +58,9 @@
         XmToggleButtonCallbackStruct *e);
 void ui_push_button_callback(Widget widget, UiEventData *event, XtPointer d);
 
+int ui_radiobutton_get(UiInteger *value);
+void ui_radiobutton_set(UiInteger *value, int i);
+
 #ifdef	__cplusplus
 }
 #endif

mercurial