1 #ifndef INCLUDED_xlwmenu_h_
2 #define INCLUDED_xlwmenu_h_
4 /***********************************************************************
8 ***********************************************************************/
12 /* Resource names used by the XlwMenu widget */
13 #define XtNbuttonForeground "buttonForeground"
14 #define XtCButtonForeground "ButtonForeground"
15 #define XtNhighlightForeground "highlightForeground"
16 #define XtCHighlightForeground "HighlightForeground"
17 #define XtNtitleForeground "titleForeground"
18 #define XtCTitleForeground "TitleForeground"
19 #define XtNmargin "margin"
20 #define XtNhorizontalSpacing "horizontalSpacing"
21 #define XtNverticalSpacing "verticalSpacing"
22 #define XtNarrowSpacing "arrowSpacing"
23 #define XtNmenu "menu"
24 #define XtCMenu "Menu"
25 #define XtNopen "open"
26 #define XtNselect "select"
27 #define XtNmenuBorderWidth "menuBorderWidth"
28 #define XtNhorizontal "horizontal"
29 #define XtCHorizontal "Horizontal"
31 #define XtNcursor "cursor"
34 #define XtCCursor "Cursor"
36 #ifndef XtNuseBackingStore
37 #define XtNuseBackingStore "useBackingStore"
39 #ifndef XtCUseBackingStore
40 #define XtCUseBackingStore "UseBackingStore"
42 #define XtNbounceDown "bounceDown"
43 #define XtCBounceDown "BounceDown"
44 #define XtNresourceLabels "resourceLabels"
45 #define XtCResourceLabels "ResourceLabels"
47 /* Motif-compatible resource names */
48 #ifndef XmNshadowThickness
49 # define XmNshadowThickness "shadowThickness"
50 # define XmCShadowThickness "ShadowThickness"
51 # define XmNtopShadowColor "topShadowColor"
52 # define XmCTopShadowColor "TopShadowColor"
53 # define XmNbottomShadowColor "bottomShadowColor"
54 # define XmCBottomShadowColor "BottomShadowColor"
55 # define XmNtopShadowPixmap "topShadowPixmap"
56 # define XmCTopShadowPixmap "TopShadowPixmap"
57 # define XmNbottomShadowPixmap "bottomShadowPixmap"
58 # define XmCBottomShadowPixmap "BottomShadowPixmap"
59 # define XmUNSPECIFIED_PIXMAP 2
60 # define XmRHorizontalDimension "HorizontalDimension"
61 # define XmNspacing "spacing"
62 # define XmCSpacing "Spacing"
63 # define XmNindicatorSize "indicatorSize"
64 # define XmCIndicatorSize "IndicatorSize"
65 # define XmNselectColor "selectColor"
66 # define XmCSelectColor "SelectColor"
67 # define XmNmarginHeight "marginHeight"
68 # define XmCMarginHeight "MarginHeight"
69 # define XmNmarginWidth "marginWidth"
70 # define XmCMarginWidth "MarginWidth"
71 # define XmRVerticalDimension "VerticalDimension"
74 typedef struct _XlwMenuRec *XlwMenuWidget;
75 typedef struct _XlwMenuClassRec *XlwMenuWidgetClass;
77 extern WidgetClass xlwMenuWidgetClass;
79 void xlw_pop_up_menu(XlwMenuWidget mw, XButtonPressedEvent * event);
81 /* menu accelerator */
83 void xlw_set_menu(Widget w, widget_value * val);
84 void xlw_push_menu(widget_value * val);
85 int xlw_pop_menu(void);
86 void xlw_set_item(widget_value * val);
87 void xlw_map_menu(Time t);
88 void xlw_display_menu(Time t);
89 void xlw_kill_menus(widget_value * val);
90 widget_value *xlw_get_entries(int allp);
91 int xlw_menu_level(void);
93 #endif /* INCLUDED_xlwmenu_h_ */