annotate lwlib/xlwmenu.h @ 390:c6012109f545 r21-2-10

Import from CVS: tag r21-2-10
author cvs
date Mon, 13 Aug 2007 11:10:03 +0200
parents cc15677e0335
children 74fd4e045ea6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 #ifndef _XlwMenu_h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 #define _XlwMenu_h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 /***********************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 *
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 * XlwMenu Widget
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 *
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ***********************************************************************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 #include "lwlib.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 /* Resource names used by the XlwMenu widget */
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
13 #define XtNbuttonForeground "buttonForeground"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
14 #define XtCButtonForeground "ButtonForeground"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 175
diff changeset
15 #define XtNhighlightForeground "highlightForeground"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 175
diff changeset
16 #define XtCHighlightForeground "HighlightForeground"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 175
diff changeset
17 #define XtNtitleForeground "titleForeground"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 175
diff changeset
18 #define XtCTitleForeground "TitleForeground"
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
19 #define XtNmargin "margin"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
20 #define XtNhorizontalSpacing "horizontalSpacing"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
21 #define XtNverticalSpacing "verticalSpacing"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
22 #define XtNarrowSpacing "arrowSpacing"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
23 #define XtNmenu "menu"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
24 #define XtCMenu "Menu"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
25 #define XtNopen "open"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
26 #define XtNselect "select"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
27 #define XtNmenuBorderWidth "menuBorderWidth"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
28 #define XtNhorizontal "horizontal"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
29 #define XtCHorizontal "Horizontal"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #ifndef XtNcursor
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
31 #define XtNcursor "cursor"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #ifndef XtCCursor
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
34 #define XtCCursor "Cursor"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #ifndef XtNuseBackingStore
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
37 #define XtNuseBackingStore "useBackingStore"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 #ifndef XtCUseBackingStore
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
40 #define XtCUseBackingStore "UseBackingStore"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 #endif
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
42 #define XtNbounceDown "bounceDown"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
43 #define XtCBounceDown "BounceDown"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
44 #define XtNresourceLabels "resourceLabels"
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
45 #define XtCResourceLabels "ResourceLabels"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 /* Motif-compatible resource names */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #ifndef XmNshadowThickness
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 # define XmNshadowThickness "shadowThickness"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 # define XmCShadowThickness "ShadowThickness"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 # define XmNtopShadowColor "topShadowColor"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 # define XmCTopShadowColor "TopShadowColor"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 # define XmNbottomShadowColor "bottomShadowColor"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 # define XmCBottomShadowColor "BottomShadowColor"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 # define XmNtopShadowPixmap "topShadowPixmap"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 # define XmCTopShadowPixmap "TopShadowPixmap"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 # define XmNbottomShadowPixmap "bottomShadowPixmap"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 # define XmCBottomShadowPixmap "BottomShadowPixmap"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 # define XmRHorizontalDimension "HorizontalDimension"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 # define XmNspacing "spacing"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 # define XmCSpacing "Spacing"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 # define XmNindicatorSize "indicatorSize"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 # define XmCIndicatorSize "IndicatorSize"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 # define XmNselectColor "selectColor"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 # define XmCSelectColor "SelectColor"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 # define XmNmarginHeight "marginHeight"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 # define XmCMarginHeight "MarginHeight"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 # define XmNmarginWidth "marginWidth"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 # define XmCMarginWidth "MarginWidth"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 # define XmRVerticalDimension "VerticalDimension"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 typedef struct _XlwMenuRec *XlwMenuWidget;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 typedef struct _XlwMenuClassRec *XlwMenuWidgetClass;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 extern WidgetClass xlwMenuWidgetClass;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 void
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 xlw_pop_up_menu (XlwMenuWidget mw, XButtonPressedEvent* event);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
81 /* menu accelerator */
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
82
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
83 void xlw_set_menu (Widget w, widget_value *val);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
84 void xlw_push_menu (widget_value *val);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
85 int xlw_pop_menu (void);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
86 void xlw_set_item (widget_value *val);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
87 void xlw_map_menu (Time t);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
88 void xlw_display_menu (Time t);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
89 void xlw_kill_menus (widget_value *val);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
90 widget_value *xlw_get_entries (int allp);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
91 int xlw_menu_level (void);
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 80
diff changeset
92
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 #endif /* _XlwMenu_h */