Use C++ linker
[oweals/cde.git] / cde / programs / dtwm / Button.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: Button.h /main/4 1995/11/01 11:22:33 rswiston $ */
24 #ifdef REV_INFO
25 #ifndef lint
26 static char SCCSID[] = "OSF/Motif: %W% %E%";
27 #endif /* lint */
28 #endif /* REV_INFO */
29 /******************************************************************************
30 *******************************************************************************
31 *
32 *  (c) Copyright 1992 HEWLETT-PACKARD COMPANY
33 *  ALL RIGHTS RESERVED
34 *  
35 *******************************************************************************
36 ******************************************************************************/
37 #ifndef _DtButtonG_h
38 #define _DtButtonG_h
39
40 #include <Xm/Xm.h>
41
42 #if defined(__cplusplus) || defined(c_plusplus)
43 extern "C" {
44 #endif
45
46 #ifndef DtIsButtonGadget
47 #define DtIsButtonGadget(w) XtIsSubclass(w, dtButtonGadgetClass)
48 #endif /* DtIsButtonGadget */
49
50 /* ArrowButton externs for application accessible functions */
51
52 extern Widget DtCreateButtonGadget( 
53                         Widget parent,
54                         char *name,
55                         ArgList arglist,
56                         Cardinal argcount) ;
57
58 /* Button Gadget */
59
60 externalref WidgetClass dtButtonGadgetClass;
61
62 typedef struct _DtButtonGadgetClassRec * DtButtonGadgetClass;
63 typedef struct _DtButtonGadgetRec      * DtButtonGadget;
64
65 typedef struct
66 {
67     int     reason;
68     XEvent  *event;
69     int     click_count;
70 } DtButtonCallbackStruct;
71
72
73 #if defined(__cplusplus) || defined(c_plusplus)
74 }  /* Close scope of 'extern "C"' declaration which encloses file. */
75 #endif
76
77 #endif /* _DtButtonG_h */
78 /* DON'T ADD ANYTHING AFTER THIS #endif */