| 1 |
/* |
| 2 |
* |
| 3 |
Copyright 1989, 1994, 1998 The Open Group |
| 4 |
|
| 5 |
Permission to use, copy, modify, distribute, and sell this software and its |
| 6 |
documentation for any purpose is hereby granted without fee, provided that |
| 7 |
the above copyright notice appear in all copies and that both that |
| 8 |
copyright notice and this permission notice appear in supporting |
| 9 |
documentation. |
| 10 |
|
| 11 |
The above copyright notice and this permission notice shall be included in |
| 12 |
all copies or substantial portions of the Software. |
| 13 |
|
| 14 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 |
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 18 |
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 19 |
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 20 |
|
| 21 |
Except as contained in this notice, the name of The Open Group shall not be |
| 22 |
used in advertising or otherwise to promote the sale, use or other dealings |
| 23 |
in 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 |
* [email protected] |
| 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 |
|
| 69 |
typedef struct _SmeBSBClassRec *SmeBSBObjectClass; |
| 70 |
typedef struct _SmeBSBRec *SmeBSBObject; |
| 71 |
|
| 72 |
extern 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 */ |