#include "../xt/xt.h"
#include <Xm/Xm.h>
#include <Xm/ToggleB.h>

static Object S_Toggle_Button_ValueChangedCallback (x) XtArgVal x; {
   return Get_Any_CB ((XmAnyCallbackStruct *)x);
}

init_togglebutton () {
    XtResourceList r = 0;
    Define_Class ("toggle-button", xmToggleButtonWidgetClass, r, 0);
    Define_Callback ("toggle-button", "valueChangedCallback", 1);
    Define_Callback ("toggle-button", "disarmCallback", 1);
    Define_Callback ("toggle-button", "armCallback", 1);
    Define_Converter_To_Scheme ("toggle-button-valueChangedCallback", S_Toggle_Button_ValueChangedCallback);
}
