0
|
1 #ifndef _XlwMenu_h
|
|
2 #define _XlwMenu_h
|
|
3
|
|
4 /***********************************************************************
|
|
5 *
|
|
6 * XlwMenu Widget
|
|
7 *
|
|
8 ***********************************************************************/
|
|
9
|
|
10 #include "lwlib.h"
|
|
11
|
|
12 /* Resource names used by the XlwMenu widget */
|
80
|
13 #define XtNbuttonForeground "buttonForeground"
|
|
14 #define XtCButtonForeground "ButtonForeground"
|
|
15 #define XtNmargin "margin"
|
|
16 #define XtNhorizontalSpacing "horizontalSpacing"
|
|
17 #define XtNverticalSpacing "verticalSpacing"
|
|
18 #define XtNarrowSpacing "arrowSpacing"
|
|
19 #define XtNmenu "menu"
|
|
20 #define XtCMenu "Menu"
|
|
21 #define XtNopen "open"
|
|
22 #define XtNselect "select"
|
|
23 #define XtNmenuBorderWidth "menuBorderWidth"
|
|
24 #define XtNhorizontal "horizontal"
|
|
25 #define XtCHorizontal "Horizontal"
|
0
|
26 #ifndef XtNcursor
|
80
|
27 #define XtNcursor "cursor"
|
0
|
28 #endif
|
|
29 #ifndef XtCCursor
|
80
|
30 #define XtCCursor "Cursor"
|
0
|
31 #endif
|
|
32 #ifndef XtNuseBackingStore
|
80
|
33 #define XtNuseBackingStore "useBackingStore"
|
0
|
34 #endif
|
|
35 #ifndef XtCUseBackingStore
|
80
|
36 #define XtCUseBackingStore "UseBackingStore"
|
0
|
37 #endif
|
80
|
38 #define XtNbounceDown "bounceDown"
|
|
39 #define XtCBounceDown "BounceDown"
|
|
40 #define XtNresourceLabels "resourceLabels"
|
|
41 #define XtCResourceLabels "ResourceLabels"
|
0
|
42
|
|
43 /* Motif-compatible resource names */
|
|
44 #ifndef XmNshadowThickness
|
|
45 # define XmNshadowThickness "shadowThickness"
|
|
46 # define XmCShadowThickness "ShadowThickness"
|
|
47 # define XmNtopShadowColor "topShadowColor"
|
|
48 # define XmCTopShadowColor "TopShadowColor"
|
|
49 # define XmNbottomShadowColor "bottomShadowColor"
|
|
50 # define XmCBottomShadowColor "BottomShadowColor"
|
|
51 # define XmNtopShadowPixmap "topShadowPixmap"
|
|
52 # define XmCTopShadowPixmap "TopShadowPixmap"
|
|
53 # define XmNbottomShadowPixmap "bottomShadowPixmap"
|
|
54 # define XmCBottomShadowPixmap "BottomShadowPixmap"
|
|
55 # define XmRHorizontalDimension "HorizontalDimension"
|
|
56 # define XmNspacing "spacing"
|
|
57 # define XmCSpacing "Spacing"
|
|
58 # define XmNindicatorSize "indicatorSize"
|
|
59 # define XmCIndicatorSize "IndicatorSize"
|
|
60 # define XmNselectColor "selectColor"
|
|
61 # define XmCSelectColor "SelectColor"
|
|
62 # define XmNmarginHeight "marginHeight"
|
|
63 # define XmCMarginHeight "MarginHeight"
|
|
64 # define XmNmarginWidth "marginWidth"
|
|
65 # define XmCMarginWidth "MarginWidth"
|
|
66 # define XmRVerticalDimension "VerticalDimension"
|
|
67 #endif
|
|
68
|
|
69 typedef struct _XlwMenuRec *XlwMenuWidget;
|
|
70 typedef struct _XlwMenuClassRec *XlwMenuWidgetClass;
|
|
71
|
|
72 extern WidgetClass xlwMenuWidgetClass;
|
|
73
|
|
74 void
|
|
75 xlw_pop_up_menu (XlwMenuWidget mw, XButtonPressedEvent* event);
|
|
76
|
|
77 #endif /* _XlwMenu_h */
|