Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-13 09:29:44

0001 /*
0002  *
0003 Copyright 1989, 1994, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024  */
0025 
0026 /***********************************************************************
0027  *
0028  * MenuButton Widget
0029  *
0030  ***********************************************************************/
0031 
0032 /*
0033  * MenuButton.h - Public Header file for MenuButton widget.
0034  *
0035  * This is the public header file for the Athena MenuButton widget.
0036  * It is intended to provide an easy method of activating pulldown menus.
0037  *
0038  * Date:    May 2, 1989
0039  *
0040  * By:      Chris D. Peterson
0041  *          MIT X Consortium
0042  *          kit@expo.lcs.mit.edu
0043  */
0044 
0045 #ifndef _XawMenuButton_h
0046 #define _XawMenuButton_h
0047 
0048 #include <X11/Xaw/Command.h>
0049 
0050 /* Resources:
0051 
0052  Name            Class      RepType     Default Value
0053  ----            -----      -------     -------------
0054  background      Background     Pixel       XtDefaultBackground
0055  bitmap          Pixmap     Pixmap      None
0056  border          BorderColor    Pixel       XtDefaultForeground
0057  borderWidth         BorderWidth    Dimension   1
0058  callback        Callback       Pointer     NULL
0059  cursor          Cursor     Cursor      None
0060  destroyCallback     Callback       Pointer     NULL
0061  displayList         DisplayList    XawDisplayList* NULL
0062  font            Font       XFontStruct*    XtDefaultFont
0063  foreground      Foreground     Pixel       XtDefaultForeground
0064  height          Height     Dimension   text height
0065  highlightThickness  Thickness      Dimension   2
0066  insensitiveBorder   Insensitive    Pixmap      Gray
0067  internalHeight      Height     Dimension   2
0068  internalWidth       Width      Dimension   4
0069  justify         Justify        XtJustify   XtJustifyCenter
0070  label           Label      String      NULL
0071  mappedWhenManaged   MappedWhenManaged  Boolean     True
0072  menuName            MenuName           String          "menu"
0073  resize          Resize     Boolean     True
0074  sensitive       Sensitive      Boolean     True
0075  width           Width      Dimension   text width
0076  x           Position       Position    0
0077  y           Position       Position    0
0078 
0079 */
0080 
0081 #define XtNmenuName "menuName"
0082 #define XtCMenuName "MenuName"
0083 
0084 extern WidgetClass     menuButtonWidgetClass;
0085 
0086 typedef struct _MenuButtonClassRec   *MenuButtonWidgetClass;
0087 typedef struct _MenuButtonRec        *MenuButtonWidget;
0088 
0089 #endif /* _XawMenuButton_h */