1 /* Interface of a lightweight menubar widget.
3 Copyright (C) 2002-2018 Free Software Foundation, Inc.
4 Copyright (C) 1992 Lucid, Inc.
6 This file is part of the Lucid Widget Library.
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
10 the Free Software Foundation; either version 1, or (at your option)
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.
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
24 /***********************************************************************
28 ***********************************************************************/
32 /* Resource names used by the XlwMenu widget */
33 #define XtNdisabledForeground "disabledForeground"
34 #define XtCDisabledForeground "DisabledForeground"
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"
45 #define XtNhighlightCallback "highlightCallback"
46 #define XtNenterCallback "enterCallback"
47 #define XtNleaveCallback "leaveCallback"
48 #define XtNmenuBorderWidth "menuBorderWidth"
49 #define XtNhorizontal "horizontal"
50 #define XtCHorizontal "Horizontal"
51 #define XtNcursor "cursor"
52 #define XtNCursor "Cursor"
53 #define XtNshowGrip "showGrip"
54 #define XtCShowGrip "ShowGrip"
55 #define XtNresizeToPreferred "resizeToPreferred"
56 #define XtCResizeToPreferred "ResizeToPreferred"
57 #define XtNallowResize "allowResize"
58 #define XtCAllowResize "AllowResize"
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"
73 typedef struct _XlwMenuRec
*XlwMenuWidget
;
74 typedef struct _XlwMenuClassRec
*XlwMenuWidgetClass
;
76 extern WidgetClass xlwMenuWidgetClass
;
78 extern int xlwmenu_window_p (Widget w
, Window window
);
79 extern void xlwmenu_redisplay (Widget
);
81 #endif /* _XlwMenu_h */