1 | /* |
---|
2 | * $XConsortium: SmeBSB.h,v 1.5 89/12/11 15:20:14 kit Exp $ |
---|
3 | * |
---|
4 | * Copyright 1989 Massachusetts Institute of Technology |
---|
5 | * |
---|
6 | * Permission to use, copy, modify, distribute, and sell this software and its |
---|
7 | * documentation for any purpose is hereby granted without fee, provided that |
---|
8 | * the above copyright notice appear in all copies and that both that |
---|
9 | * copyright notice and this permission notice appear in supporting |
---|
10 | * documentation, and that the name of M.I.T. not be used in advertising or |
---|
11 | * publicity pertaining to distribution of the software without specific, |
---|
12 | * written prior permission. M.I.T. makes no representations about the |
---|
13 | * suitability of this software for any purpose. It is provided "as is" |
---|
14 | * without express or implied warranty. |
---|
15 | * |
---|
16 | * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL |
---|
17 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T. |
---|
18 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
---|
19 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
---|
20 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
---|
21 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
---|
22 | */ |
---|
23 | |
---|
24 | /* |
---|
25 | * SmeBSB.h - Public Header file for SmeBSB object. |
---|
26 | * |
---|
27 | * This is the public header file for the Athena BSB Sme object. |
---|
28 | * It is intended to be used with the simple menu widget. This object |
---|
29 | * provides bitmap - string - bitmap style entries. |
---|
30 | * |
---|
31 | * Date: April 3, 1989 |
---|
32 | * |
---|
33 | * By: Chris D. Peterson |
---|
34 | * MIT X Consortium |
---|
35 | * kit@expo.lcs.mit.edu |
---|
36 | */ |
---|
37 | |
---|
38 | #ifndef _SmeBSB_h |
---|
39 | #define _SmeBSB_h |
---|
40 | |
---|
41 | #include <X11/Xmu/Converters.h> |
---|
42 | |
---|
43 | #include <X11/Xaw/Sme.h> |
---|
44 | |
---|
45 | /**************************************************************** |
---|
46 | * |
---|
47 | * SmeBSB object |
---|
48 | * |
---|
49 | ****************************************************************/ |
---|
50 | |
---|
51 | /* BSB Menu Entry Resources: |
---|
52 | |
---|
53 | Name Class RepType Default Value |
---|
54 | ---- ----- ------- ------------- |
---|
55 | callback Callback Callback NULL |
---|
56 | destroyCallback Callback Pointer NULL |
---|
57 | flipColors FlipColors Boolean True |
---|
58 | font Font XFontStruct * XtDefaultFont |
---|
59 | foreground Foreground Pixel XtDefaultForeground |
---|
60 | height Height Dimension 0 |
---|
61 | label Label String Name of entry |
---|
62 | leftBitmap LeftBitmap Pixmap None |
---|
63 | leftMargin HorizontalMargins Dimension 4 |
---|
64 | rightBitmap RightBitmap Pixmap None |
---|
65 | rightMargin HorizontalMargins Dimension 4 |
---|
66 | sensitive Sensitive Boolean True |
---|
67 | vertSpace VertSpace int 25 |
---|
68 | width Width Dimension 0 |
---|
69 | x Position Position 0n |
---|
70 | y Position Position 0 |
---|
71 | |
---|
72 | */ |
---|
73 | |
---|
74 | typedef struct _SmeBSBClassRec *SmeBSBObjectClass; |
---|
75 | typedef struct _SmeBSBRec *SmeBSBObject; |
---|
76 | |
---|
77 | extern WidgetClass smeBSBObjectClass; |
---|
78 | |
---|
79 | #define XtNleftBitmap "leftBitmap" |
---|
80 | #define XtNleftMargin "leftMargin" |
---|
81 | #define XtNrightBitmap "rightBitmap" |
---|
82 | #define XtNrightMargin "rightMargin" |
---|
83 | #define XtNvertSpace "vertSpace" |
---|
84 | #define XtNflipColors "flipColors" |
---|
85 | |
---|
86 | #define XtCLeftBitmap "LeftBitmap" |
---|
87 | #define XtCHorizontalMargins "HorizontalMargins" |
---|
88 | #define XtCRightBitmap "RightBitmap" |
---|
89 | #define XtCVertSpace "VertSpace" |
---|
90 | #define XtCFlipColors "FlipColors" |
---|
91 | |
---|
92 | #endif /* _SmeBSB_h */ |
---|