1 /*
2  * Motif
3  *
4  * Copyright (c) 1987-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  */
24 
25 #ifndef _XmIconButton_h
26 #define _XmIconButton_h
27 
28 #if defined(VMS) || defined(__VMS)
29 #include <X11/apienvset.h>
30 #endif
31 
32 #include <Xm/Ext.h>
33 
34 /************************************************************
35 *	INCLUDE FILES
36 *************************************************************/
37 
38 /************************************************************
39 *	TYPEDEFS AND DEFINES
40 *************************************************************/
41 
42 #if defined(__cplusplus)
43 extern "C" {
44 #endif
45 
46 typedef struct _XmIconButtonClassRec	*XmIconButtonWidgetClass;
47 typedef struct _XmIconButtonRec	        *XmIconButtonWidget;
48 
49 
50 /************************************************************
51 *	MACROS
52 *************************************************************/
53 
54 /************************************************************
55 *	GLOBAL DECLARATIONS
56 *************************************************************/
57 
58 typedef struct _XmIconButtonCallbackInfo {
59     Boolean state;		/* The current state of the icon button. */
60     XEvent * event;		/* The event that caused this action. */
61 } XmIconButtonCallbackInfo;
62 
63 /************************************************************
64 *	EXTERNAL DECLARATIONS
65 *************************************************************/
66 
67 /*	Function Name: XmCreateIconButton
68  *	Description: Creation Routine for UIL and ADA.
69  *	Arguments: parent - the parent widget.
70  *                 name - the name of the widget.
71  *                 args, num_args - the number and list of args.
72  *	Returns: The Widget created.
73  */
74 
75 Widget XmCreateIconButton(
76 #ifndef _NO_PROTO
77 Widget, String, ArgList, Cardinal
78 #endif
79 );
80 
81 extern WidgetClass xmIconButtonWidgetClass;
82 
83 #if defined(__cplusplus)
84 }
85 #endif
86 
87 #if defined(VMS) || defined(__VMS)
88 #include <X11/apienvrst.h>
89 #endif
90 
91 #endif /* _XmIconButton_h */
92