1 /* $XConsortium: MenuButtoP.h,v 1.8 94/04/17 20:12:18 converse Exp $ 2 * 3 Copyright (c) 1989 X Consortium 4 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: 11 12 The above copyright notice and this permission notice shall be included in 13 all copies or substantial portions of the Software. 14 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. 21 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. 25 */ 26 27 /*********************************************************************** 28 * 29 * MenuButton Widget 30 * 31 ***********************************************************************/ 32 33 /* 34 * MenuButtonP.h - Private Header file for MenuButton widget. 35 * 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. 38 * 39 * Date: May 2, 1989 40 * 41 * By: Chris D. Peterson 42 * MIT X Consortium 43 * kit@expo.lcs.mit.edu 44 */ 45 46 #ifndef _PixcommP_h 47 #define _PixcommP_h 48 49 #ifdef HAVE_CONFIG_H 50 #include <fc_config.h> 51 #endif 52 53 #include <X11/IntrinsicP.h> 54 55 #if defined(HAVE_LIBXAW3D) 56 #include <X11/Xaw3d/CommandP.h> 57 #else 58 #include <X11/Xaw/CommandP.h> 59 #endif 60 61 #include "pixcomm.h" 62 63 /************************************ 64 * 65 * Class structure 66 * 67 ***********************************/ 68 69 70 /* New fields for the MenuButton widget class record */ 71 typedef struct _PixcommClass 72 { 73 int makes_compiler_happy; /* not used */ 74 } PixcommClassPart; 75 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; 82 #endif 83 LabelClassPart label_class; 84 CommandClassPart command_class; 85 PixcommClassPart pixcomm_class; 86 } PixcommClassRec; 87 88 extern PixcommClassRec pixcommClassRec; 89 90 /*************************************** 91 * 92 * Instance (widget) structure 93 * 94 **************************************/ 95 96 /* New fields for the MenuButton widget record */ 97 typedef struct { 98 /* resources */ 99 Pixmap back_store; 100 } PixcommPart; 101 102 /* Full widget declaration */ 103 typedef struct _PixcommRec { 104 CorePart core; 105 SimplePart simple; 106 #if defined(HAVE_LIBXAW3D) 107 ThreeDPart threeD; 108 #endif 109 LabelPart label; 110 CommandPart command; 111 PixcommPart pixcomm; 112 } PixcommRec; 113 114 #endif 115