Commit | Line | Data |
---|---|---|
44862e8e | 1 | /* Interface of a lightweight menubar widget. |
95df8112 | 2 | |
ba318903 | 3 | Copyright (C) 2002-2014 Free Software Foundation, Inc. |
016c80c3 | 4 | Copyright (C) 1992 Lucid, Inc. |
44862e8e SM |
5 | |
6 | This file is part of the Lucid Widget Library. | |
7 | ||
8 | The Lucid Widget Library is free software; you can redistribute it and/or | |
9 | modify it under the terms of the GNU General Public License as published by | |
569305b2 | 10 | the Free Software Foundation; either version 1, or (at your option) |
44862e8e SM |
11 | any later version. |
12 | ||
13 | The Lucid Widget Library is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
fee0bd5f | 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
44862e8e | 20 | |
07bf635f RS |
21 | #ifndef _XlwMenu_h |
22 | #define _XlwMenu_h | |
23 | ||
24 | /*********************************************************************** | |
25 | * | |
26 | * XlwMenu Widget | |
27 | * | |
28 | ***********************************************************************/ | |
29 | ||
30 | #include "lwlib.h" | |
31 | ||
32 | /* Resource names used by the XlwMenu widget */ | |
2ad99766 PJ |
33 | #define XtNdisabledForeground "disabledForeground" |
34 | #define XtCDisabledForeground "DisabledForeground" | |
07bf635f RS |
35 | #define XtNbuttonForeground "buttonForeground" |
36 | #define XtCButtonForeground "ButtonForeground" | |
37 | #define XtNmargin "margin" | |
38 | #define XtNhorizontalSpacing "horizontalSpacing" | |
39 | #define XtNverticalSpacing "verticalSpacing" | |
40 | #define XtNarrowSpacing "arrowSpacing" | |
41 | #define XtNmenu "menu" | |
42 | #define XtCMenu "Menu" | |
43 | #define XtNopen "open" | |
44 | #define XtNselect "select" | |
0d8f7378 | 45 | #define XtNhighlightCallback "highlightCallback" |
3e39a8ac JD |
46 | #define XtNenterCallback "enterCallback" |
47 | #define XtNleaveCallback "leaveCallback" | |
07bf635f RS |
48 | #define XtNmenuBorderWidth "menuBorderWidth" |
49 | #define XtNhorizontal "horizontal" | |
50 | #define XtCHorizontal "Horizontal" | |
51 | #define XtNcursor "cursor" | |
52 | #define XtNCursor "Cursor" | |
5acc1a62 PR |
53 | #define XtNshowGrip "showGrip" |
54 | #define XtCShowGrip "ShowGrip" | |
55 | #define XtNresizeToPreferred "resizeToPreferred" | |
56 | #define XtCResizeToPreferred "ResizeToPreferred" | |
57 | #define XtNallowResize "allowResize" | |
58 | #define XtCAllowResize "AllowResize" | |
07bf635f RS |
59 | |
60 | /* Motif-compatible resource names */ | |
61 | #define XmNshadowThickness "shadowThickness" | |
62 | #define XmCShadowThickness "ShadowThickness" | |
63 | #define XmNtopShadowColor "topShadowColor" | |
64 | #define XmCTopShadowColor "TopShadowColor" | |
65 | #define XmNbottomShadowColor "bottomShadowColor" | |
66 | #define XmCBottomShadowColor "BottomShadowColor" | |
67 | #define XmNtopShadowPixmap "topShadowPixmap" | |
68 | #define XmCTopShadowPixmap "TopShadowPixmap" | |
69 | #define XmNbottomShadowPixmap "bottomShadowPixmap" | |
70 | #define XmCBottomShadowPixmap "BottomShadowPixmap" | |
71 | #define XmRHorizontalDimension "HorizontalDimension" | |
72 | ||
73 | typedef struct _XlwMenuRec *XlwMenuWidget; | |
74 | typedef struct _XlwMenuClassRec *XlwMenuWidgetClass; | |
75 | ||
76 | extern WidgetClass xlwMenuWidgetClass; | |
77 | ||
ef00b293 DN |
78 | extern int xlwmenu_window_p (Widget w, Window window); |
79 | extern void xlwmenu_redisplay (Widget); | |
80 | ||
07bf635f | 81 | #endif /* _XlwMenu_h */ |