declare smobs in alloc.c
[bpt/emacs.git] / lwlib / xlwmenu.h
CommitLineData
44862e8e 1/* Interface of a lightweight menubar widget.
95df8112 2
ba318903 3Copyright (C) 2002-2014 Free Software Foundation, Inc.
016c80c3 4Copyright (C) 1992 Lucid, Inc.
44862e8e
SM
5
6This file is part of the Lucid Widget Library.
7
8The Lucid Widget Library is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License as published by
569305b2 10the Free Software Foundation; either version 1, or (at your option)
44862e8e
SM
11any later version.
12
13The Lucid Widget Library is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
fee0bd5f 19along 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
73typedef struct _XlwMenuRec *XlwMenuWidget;
74typedef struct _XlwMenuClassRec *XlwMenuWidgetClass;
75
76extern WidgetClass xlwMenuWidgetClass;
77
ef00b293
DN
78extern int xlwmenu_window_p (Widget w, Window window);
79extern void xlwmenu_redisplay (Widget);
80
07bf635f 81#endif /* _XlwMenu_h */