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