2 * $XConsortium: MenuButton.h,v 1.9 94/04/17 20:12:21 kaleb Exp $
4 Copyright (c) 1989, 1994 X Consortium
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 Except as contained in this notice, the name of the X Consortium shall not be
24 used in advertising or otherwise to promote the sale, use or other dealings
25 in this Software without prior written authorization from the X Consortium.
28 /***********************************************************************
32 ***********************************************************************/
35 * MenuButton.h - Public Header file for MenuButton widget.
37 * This is the public header file for the Athena MenuButton widget.
38 * It is intended to provide an easy method of activating pulldown menus.
42 * By: Chris D. Peterson
44 * kit@expo.lcs.mit.edu
47 #ifndef _XawMenuButton_h
48 #define _XawMenuButton_h
50 #include <X11/Xaw/Command.h>
54 Name Class RepType Default Value
55 ---- ----- ------- -------------
56 background Background Pixel XtDefaultBackground
57 bitmap Pixmap Pixmap None
58 border BorderColor Pixel XtDefaultForeground
59 borderWidth BorderWidth Dimension 1
60 callback Callback Pointer NULL
61 cursor Cursor Cursor None
62 destroyCallback Callback Pointer NULL
63 font Font XFontStruct* XtDefaultFont
64 foreground Foreground Pixel XtDefaultForeground
65 height Height Dimension text height
66 highlightThickness Thickness Dimension 2
67 insensitiveBorder Insensitive Pixmap Gray
68 internalHeight Height Dimension 2
69 internalWidth Width Dimension 4
70 justify Justify XtJustify XtJustifyCenter
71 label Label String NULL
72 mappedWhenManaged MappedWhenManaged Boolean True
73 menuName MenuName String "menu"
74 resize Resize Boolean True
75 sensitive Sensitive Boolean True
76 width Width Dimension text width
82 #define XtNmenuName "menuName"
83 #define XtCMenuName "MenuName"
85 extern WidgetClass menuButtonWidgetClass
;
87 typedef struct _MenuButtonClassRec
*MenuButtonWidgetClass
;
88 typedef struct _MenuButtonRec
*MenuButtonWidget
;
90 #endif /* _XawMenuButton_h */