home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xaw / menubutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  3.2 KB  |  91 lines

  1. /*
  2.  * $XConsortium: MenuButton.h,v 1.9 94/04/17 20:12:21 kaleb Exp $
  3.  *
  4. Copyright (c) 1989, 1994  X Consortium
  5.  
  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:
  12.  
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15.  
  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.
  22.  
  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.
  26.  */
  27.  
  28. /***********************************************************************
  29.  *
  30.  * MenuButton Widget
  31.  *
  32.  ***********************************************************************/
  33.  
  34. /*
  35.  * MenuButton.h - Public Header file for MenuButton widget.
  36.  *
  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.
  39.  *
  40.  * Date:    May 2, 1989
  41.  *
  42.  * By:      Chris D. Peterson
  43.  *          MIT X Consortium 
  44.  *          kit@expo.lcs.mit.edu
  45.  */
  46.  
  47. #ifndef _XawMenuButton_h
  48. #define _XawMenuButton_h
  49.  
  50. #include <X11/Xaw/Command.h>
  51.  
  52. /* Resources:
  53.  
  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
  77.  x             Position        Position    0
  78.  y             Position        Position    0
  79.  
  80. */
  81.  
  82. #define XtNmenuName "menuName"
  83. #define XtCMenuName "MenuName"
  84.  
  85. extern WidgetClass     menuButtonWidgetClass;
  86.  
  87. typedef struct _MenuButtonClassRec   *MenuButtonWidgetClass;
  88. typedef struct _MenuButtonRec        *MenuButtonWidget;
  89.  
  90. #endif /* _XawMenuButton_h */
  91.