1 /* $XConsortium: MenuButtoP.h,v 1.8 94/04/17 20:12:18 converse Exp $
3 Copyright (c) 1989 X Consortium
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 Except as contained in this notice, the name of the X Consortium shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in this Software without prior written authorization from the X Consortium.
27 /***********************************************************************
31 ***********************************************************************/
34 * MenuButtonP.h - Private Header file for MenuButton widget.
36 * This is the private header file for the Athena MenuButton widget.
37 * It is intended to provide an easy method of activating pulldown menus.
41 * By: Chris D. Peterson
43 * kit@expo.lcs.mit.edu
50 #include <fc_config.h>
53 #include <X11/IntrinsicP.h>
55 #if defined(HAVE_LIBXAW3D)
56 #include <X11/Xaw3d/CommandP.h>
58 #include <X11/Xaw/CommandP.h>
63 /************************************
67 ***********************************/
70 /* New fields for the MenuButton widget class record */
71 typedef struct _PixcommClass
73 int makes_compiler_happy
; /* not used */
76 /* Full class record declaration */
77 typedef struct _PixcommandClassRec
{
78 CoreClassPart core_class
;
79 SimpleClassPart simple_class
;
80 #if defined(HAVE_LIBXAW3D)
81 ThreeDClassPart threeD_class
;
83 LabelClassPart label_class
;
84 CommandClassPart command_class
;
85 PixcommClassPart pixcomm_class
;
88 extern PixcommClassRec pixcommClassRec
;
90 /***************************************
92 * Instance (widget) structure
94 **************************************/
96 /* New fields for the MenuButton widget record */
102 /* Full widget declaration */
103 typedef struct _PixcommRec
{
106 #if defined(HAVE_LIBXAW3D)