2 * $XConsortium: SmeBSB.h,v 1.7 94/04/17 20:12:49 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.
29 * SmeBSB.h - Public Header file for SmeBSB object.
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.
37 * By: Chris D. Peterson
39 * kit@expo.lcs.mit.edu
45 #include <X11/Xmu/Converters.h>
47 #include <X11/Xaw/Sme.h>
49 /****************************************************************
53 ****************************************************************/
55 /* BSB Menu Entry Resources:
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
77 typedef struct _SmeBSBClassRec
*SmeBSBObjectClass
;
78 typedef struct _SmeBSBRec
*SmeBSBObject
;
80 extern WidgetClass smeBSBObjectClass
;
82 #define XtNleftBitmap "leftBitmap"
83 #define XtNleftMargin "leftMargin"
84 #define XtNrightBitmap "rightBitmap"
85 #define XtNrightMargin "rightMargin"
86 #define XtNvertSpace "vertSpace"
89 #define XtNfontSet "fontSet"
93 #define XtCFontSet "FontSet"
96 #define XtCLeftBitmap "LeftBitmap"
97 #define XtCHorizontalMargins "HorizontalMargins"
98 #define XtCRightBitmap "RightBitmap"
99 #define XtCVertSpace "VertSpace"
101 #endif /* _SmeBSB_h */