(* Xm/ToggleBG.def  Oct 15  20:27:32  1996 *)
(* Copyright (c) 1996,1997 XDS Ltd, Russia. All rights reserved. *)

(* Converted from Xm/ToggleBG.h using H2D v1.16 *)

(* $RCSfile: ToggleBG.def,v $ $Revision: 4 $ $Date: 28.07.98 23:15 $ *)

<*+ M2ADDTYPES *>
<*+ M2EXTENSIONS *>
<*+ NOHEADER *> 
<* IF NOT DEFINED(GENTYPEDEF) THEN *> <* NEW GENTYPEDEF+ *> <* END *>
<*+ CSTDLIB *>

DEFINITION MODULE ["C"] ToggleBG;

IMPORT SYSTEM, Xt:=Intrinsic;
(* H2D:  Required IMPORT clause: 
IMPORT ToggleBG, Intrinsic;
*)

(*
 * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 *)

(*
 * Motif Release 1.2 
 *)

(***********************************************************************
 *
 * Toggle Gadget
 *
 ***********************************************************************)

VAR 
  xmToggleButtonGadgetClass: Xt.WidgetClass;

TYPE 
  _XmToggleButtonGadgetClassRec = RECORD
    (* Declaration without definition *)
  END;

  XmToggleButtonGadgetClass = POINTER TO _XmToggleButtonGadgetClassRec;

  _XmToggleButtonGadgetRec = RECORD
    (* Declaration without definition *)
  END;

  XmToggleButtonGadget = POINTER TO _XmToggleButtonGadgetRec;

  _XmToggleButtonGCacheObjRec = RECORD
    (* Declaration without definition *)
  END;

  XmToggleButtonGCacheObject = POINTER TO _XmToggleButtonGCacheObjRec;

(* fast subclass define  *)

<* IF __GEN_C__ THEN *>

(* H2D: this procedure corresponds to a macro. *)
PROCEDURE XmIsToggleButtonGadget ( w: Xt.Widget ): Xt.Boolean;

<* ELSE *>

PROCEDURE  / XmIsToggleButtonGadget ( w: Xt.Widget ): Xt.Boolean;

<* END *>

(********    Public Function Declarations    ********)

PROCEDURE XmToggleButtonGadgetGetState ( w: Xt.Widget ): Xt.Boolean;

PROCEDURE XmToggleButtonGadgetSetState ( w: Xt.Widget;
                                         newstate: SYSTEM.int;
                                         notify: SYSTEM.int );

PROCEDURE XmCreateToggleButtonGadget ( parent: Xt.Widget;
                                       name: ARRAY OF CHAR;
                                       arglist: Xt.ArgList;
                                       argCount: Xt.Cardinal ): Xt.Widget;

(********    End Public Function Declarations    ********)

END ToggleBG.
