440
+ − 1 #ifndef INCLUDED_xlwmenu_h_
+ − 2 #define INCLUDED_xlwmenu_h_
428
+ − 3
+ − 4 /***********************************************************************
+ − 5 *
+ − 6 * XlwMenu Widget
+ − 7 *
+ − 8 ***********************************************************************/
+ − 9
+ − 10 #include "lwlib.h"
+ − 11
+ − 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"
+ − 30 #ifndef XtNcursor
+ − 31 #define XtNcursor "cursor"
+ − 32 #endif
+ − 33 #ifndef XtCCursor
+ − 34 #define XtCCursor "Cursor"
+ − 35 #endif
+ − 36 #ifndef XtNuseBackingStore
+ − 37 #define XtNuseBackingStore "useBackingStore"
+ − 38 #endif
+ − 39 #ifndef XtCUseBackingStore
+ − 40 #define XtCUseBackingStore "UseBackingStore"
+ − 41 #endif
+ − 42 #define XtNbounceDown "bounceDown"
+ − 43 #define XtCBounceDown "BounceDown"
+ − 44 #define XtNresourceLabels "resourceLabels"
+ − 45 #define XtCResourceLabels "ResourceLabels"
+ − 46
+ − 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"
442
+ − 59 # define XmUNSPECIFIED_PIXMAP 2
428
+ − 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"
+ − 72 #endif
+ − 73
+ − 74 typedef struct _XlwMenuRec *XlwMenuWidget;
+ − 75 typedef struct _XlwMenuClassRec *XlwMenuWidgetClass;
+ − 76
+ − 77 extern WidgetClass xlwMenuWidgetClass;
+ − 78
+ − 79 void
+ − 80 xlw_pop_up_menu (XlwMenuWidget mw, XButtonPressedEvent* event);
+ − 81
+ − 82 /* menu accelerator */
+ − 83
+ − 84 void xlw_set_menu (Widget w, widget_value *val);
+ − 85 void xlw_push_menu (widget_value *val);
+ − 86 int xlw_pop_menu (void);
+ − 87 void xlw_set_item (widget_value *val);
+ − 88 void xlw_map_menu (Time t);
+ − 89 void xlw_display_menu (Time t);
+ − 90 void xlw_kill_menus (widget_value *val);
+ − 91 widget_value *xlw_get_entries (int allp);
+ − 92 int xlw_menu_level (void);
+ − 93
440
+ − 94 #endif /* INCLUDED_xlwmenu_h_ */