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