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