59fb6ca950698437a20cd5baa7b487548acc7114
[oweals/cde.git] / cde / programs / dtwm / Button.h
1 /* $XConsortium: Button.h /main/4 1995/11/01 11:22:33 rswiston $ */
2 #ifdef REV_INFO
3 #ifndef lint
4 static char SCCSID[] = "OSF/Motif: %W% %E%";
5 #endif /* lint */
6 #endif /* REV_INFO */
7 /******************************************************************************
8 *******************************************************************************
9 *
10 *  (c) Copyright 1992 HEWLETT-PACKARD COMPANY
11 *  ALL RIGHTS RESERVED
12 *  
13 *******************************************************************************
14 ******************************************************************************/
15 #ifndef _DtButtonG_h
16 #define _DtButtonG_h
17
18 #include <Xm/Xm.h>
19
20 #if defined(__cplusplus) || defined(c_plusplus)
21 extern "C" {
22 #endif
23
24 #ifndef DtIsButtonGadget
25 #define DtIsButtonGadget(w) XtIsSubclass(w, dtButtonGadgetClass)
26 #endif /* DtIsButtonGadget */
27
28 /* ArrowButton externs for application accessible functions */
29
30 extern Widget DtCreateButtonGadget( 
31                         Widget parent,
32                         char *name,
33                         ArgList arglist,
34                         Cardinal argcount) ;
35
36 /* Button Gadget */
37
38 externalref WidgetClass dtButtonGadgetClass;
39
40 typedef struct _DtButtonGadgetClassRec * DtButtonGadgetClass;
41 typedef struct _DtButtonGadgetRec      * DtButtonGadget;
42
43 typedef struct
44 {
45     int     reason;
46     XEvent  *event;
47     int     click_count;
48 } DtButtonCallbackStruct;
49
50
51 #if defined(__cplusplus) || defined(c_plusplus)
52 }  /* Close scope of 'extern "C"' declaration which encloses file. */
53 #endif
54
55 #endif /* _DtButtonG_h */
56 /* DON'T ADD ANYTHING AFTER THIS #endif */