declare smobs in alloc.c
[bpt/emacs.git] / lwlib / xlwmenu.h
... / ...
CommitLineData
1/* Interface of a lightweight menubar widget.
2
3Copyright (C) 2002-2014 Free Software Foundation, Inc.
4Copyright (C) 1992 Lucid, Inc.
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
10the Free Software Foundation; either version 1, or (at your option)
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
19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20
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 */
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"
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
78extern int xlwmenu_window_p (Widget w, Window window);
79extern void xlwmenu_redisplay (Widget);
80
81#endif /* _XlwMenu_h */