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

  1. /*
  2.  * $XConsortium: SmeBSB.h,v 1.7 94/04/17 20:12:49 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.  * SmeBSB.h - Public Header file for SmeBSB object.
  30.  *
  31.  * This is the public header file for the Athena BSB Sme object.
  32.  * It is intended to be used with the simple menu widget.  This object
  33.  * provides bitmap - string - bitmap style entries.
  34.  *
  35.  * Date:    April 3, 1989
  36.  *
  37.  * By:      Chris D. Peterson
  38.  *          MIT X Consortium 
  39.  *          kit@expo.lcs.mit.edu
  40.  */
  41.  
  42. #ifndef _SmeBSB_h
  43. #define _SmeBSB_h
  44.  
  45. #include <X11/Xmu/Converters.h>
  46.  
  47. #include <X11/Xaw/Sme.h>
  48.  
  49. /****************************************************************
  50.  *
  51.  * SmeBSB object
  52.  *
  53.  ****************************************************************/
  54.  
  55. /* BSB Menu Entry Resources:
  56.  
  57.  Name             Class        RepType        Default Value
  58.  ----             -----        -------        -------------
  59.  callback            Callback           Callback        NULL
  60.  destroyCallback     Callback        Pointer        NULL
  61.  font                Font               XFontStruct *   XtDefaultFont
  62.  foreground          Foreground         Pixel           XtDefaultForeground
  63.  height             Height        Dimension    0
  64.  label               Label              String          Name of entry
  65.  leftBitmap          LeftBitmap         Pixmap          None
  66.  leftMargin          HorizontalMargins  Dimension       4
  67.  rightBitmap         RightBitmap        Pixmap          None
  68.  rightMargin         HorizontalMargins  Dimension       4
  69.  sensitive         Sensitive        Boolean        True
  70.  vertSpace           VertSpace          int             25
  71.  width             Width        Dimension    0
  72.  x             Position        Position    0n
  73.  y             Position        Position    0
  74.  
  75. */
  76.  
  77. typedef struct _SmeBSBClassRec    *SmeBSBObjectClass;
  78. typedef struct _SmeBSBRec         *SmeBSBObject;
  79.  
  80. extern WidgetClass smeBSBObjectClass;
  81.  
  82. #define XtNleftBitmap "leftBitmap"
  83. #define XtNleftMargin "leftMargin"
  84. #define XtNrightBitmap "rightBitmap"
  85. #define XtNrightMargin "rightMargin"
  86. #define XtNvertSpace   "vertSpace"
  87.  
  88. #ifndef XtNfontSet
  89. #define XtNfontSet        "fontSet"
  90. #endif
  91.  
  92. #ifndef XtCFontSet
  93. #define XtCFontSet        "FontSet"
  94. #endif
  95.  
  96. #define XtCLeftBitmap "LeftBitmap"
  97. #define XtCHorizontalMargins "HorizontalMargins"
  98. #define XtCRightBitmap "RightBitmap"
  99. #define XtCVertSpace   "VertSpace"
  100.  
  101. #endif /* _SmeBSB_h */
  102.