1/* 2 * 3Copyright 1989, 1994, 1998 The Open Group 4 5Permission to use, copy, modify, distribute, and sell this software and its 6documentation for any purpose is hereby granted without fee, provided that 7the above copyright notice appear in all copies and that both that 8copyright notice and this permission notice appear in supporting 9documentation. 10 11The above copyright notice and this permission notice shall be included in 12all copies or substantial portions of the Software. 13 14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21Except as contained in this notice, the name of The Open Group shall not be 22used in advertising or otherwise to promote the sale, use or other dealings 23in this Software without prior written authorization from The Open Group. 24 */ 25 26/*********************************************************************** 27 * 28 * MenuButton Widget 29 * 30 ***********************************************************************/ 31 32/* 33 * MenuButton.h - Public Header file for MenuButton widget. 34 * 35 * This is the public header file for the Athena MenuButton widget. 36 * It is intended to provide an easy method of activating pulldown menus. 37 * 38 * Date: May 2, 1989 39 * 40 * By: Chris D. Peterson 41 * MIT X Consortium 42 * kit@expo.lcs.mit.edu 43 */ 44 45#ifndef _XawMenuButton_h 46#define _XawMenuButton_h 47 48#include <X11/Xaw/Command.h> 49 50/* Resources: 51 52 Name Class RepType Default Value 53 ---- ----- ------- ------------- 54 background Background Pixel XtDefaultBackground 55 bitmap Pixmap Pixmap None 56 border BorderColor Pixel XtDefaultForeground 57 borderWidth BorderWidth Dimension 1 58 callback Callback Pointer NULL 59 cursor Cursor Cursor None 60 destroyCallback Callback Pointer NULL 61 displayList DisplayList XawDisplayList* NULL 62 font Font XFontStruct* XtDefaultFont 63 foreground Foreground Pixel XtDefaultForeground 64 height Height Dimension text height 65 highlightThickness Thickness Dimension 2 66 insensitiveBorder Insensitive Pixmap Gray 67 internalHeight Height Dimension 2 68 internalWidth Width Dimension 4 69 justify Justify XtJustify XtJustifyCenter 70 label Label String NULL 71 mappedWhenManaged MappedWhenManaged Boolean True 72 menuName MenuName String "menu" 73 resize Resize Boolean True 74 sensitive Sensitive Boolean True 75 width Width Dimension text width 76 x Position Position 0 77 y Position Position 0 78 79*/ 80 81#define XtNmenuName "menuName" 82#define XtCMenuName "MenuName" 83 84extern WidgetClass menuButtonWidgetClass; 85 86typedef struct _MenuButtonClassRec *MenuButtonWidgetClass; 87typedef struct _MenuButtonRec *MenuButtonWidget; 88 89#endif /* _XawMenuButton_h */ 90