dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C
[oweals/cde.git] / cde / lib / DtWidget / MenuButton.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: MenuButton.h /main/3 1995/10/26 09:33:10 rswiston $ */
24 /*
25  *  (c) Copyright 1993, 1994 Hewlett-Packard Company
26  *  (c) Copyright 1993, 1994 International Business Machines Corp.
27  *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
28  *  (c) Copyright 1993, 1994 Novell, Inc.
29  */
30
31 #ifndef _Dt_MenuButton_h
32 #define _Dt_MenuButton_h
33
34 #include <Xm/Xm.h>
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 /*
41  * Constants
42  */
43
44 /* Resources */
45
46 #ifndef DtNcascadingCallback
47 #define DtNcascadingCallback    XmNcascadingCallback
48 #endif
49 #ifndef DtNsubMenuId
50 #define DtNsubMenuId            XmNsubMenuId
51 #endif
52 #ifndef DtNcascadePixmap
53 #define DtNcascadePixmap        XmNcascadePixmap
54 #endif
55
56 #ifndef DtCCallback
57 #define DtCCallback             XmCCallback
58 #endif
59 #ifndef DtCPixmap
60 #define DtCPixmap               XmCPixmap
61 #endif
62 #ifndef DtCMenuWidget
63 #define DtCMenuWidget           XmCMenuWidget
64 #endif
65
66 #ifndef DtCR_CASCADING
67 #define DtCR_CASCADING          XmCR_CASCADING
68 #endif
69
70
71 /*
72  * Types
73  */
74
75 /* Widget class and instance */
76
77 typedef struct _DtMenuButtonRec      * DtMenuButtonWidget;
78 typedef struct _DtMenuButtonClassRec * DtMenuButtonWidgetClass;
79
80
81 /*
82  * Data
83  */
84
85 /* Widget class record */
86
87 externalref WidgetClass dtMenuButtonWidgetClass;
88
89
90 /*
91  * Functions
92  */
93
94 extern Widget DtCreateMenuButton( 
95                 Widget          parent,
96                 char            *name,
97                 ArgList         arglist,
98                 Cardinal        argcount);
99
100 #ifdef __cplusplus
101 }
102 #endif
103
104 #endif /* _Dt_MenuButton_h */