root/lwlib/xlwmenu.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


     1 /* Interface of a lightweight menubar widget.
     2 
     3 Copyright (C) 2002-2023 Free Software Foundation, Inc.
     4 Copyright (C) 1992 Lucid, Inc.
     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
    10 the Free Software Foundation; either version 1, or (at your option)
    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
    19 along with GNU Emacs.  If not, see <https://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 #define XtNborderThickness "borderThickness"
    60 #define XtCBorderThickness "BorderThickness"
    61 #define XtNhighlightForeground "highlightForeground"
    62 #define XtCHighlightForeground "HighlightForeground"
    63 #define XtNhighlightBackground "highlightBackground"
    64 #define XtCHighlightBackground "HighlightBackground"
    65 
    66 /* Motif-compatible resource names */
    67 #define XmNshadowThickness      "shadowThickness"
    68 #define XmCShadowThickness      "ShadowThickness"
    69 #define XmNtopShadowColor       "topShadowColor"
    70 #define XmCTopShadowColor       "TopShadowColor"
    71 #define XmNbottomShadowColor    "bottomShadowColor"
    72 #define XmCBottomShadowColor    "BottomShadowColor"
    73 #define XmNtopShadowPixmap      "topShadowPixmap"
    74 #define XmCTopShadowPixmap      "TopShadowPixmap"
    75 #define XmNbottomShadowPixmap   "bottomShadowPixmap"
    76 #define XmCBottomShadowPixmap   "BottomShadowPixmap"
    77 #define XmRHorizontalDimension  "HorizontalDimension"
    78 
    79 typedef struct _XlwMenuRec *XlwMenuWidget;
    80 typedef struct _XlwMenuClassRec *XlwMenuWidgetClass;
    81 
    82 extern WidgetClass xlwMenuWidgetClass;
    83 
    84 extern int xlwmenu_window_p (Widget w, Window window);
    85 extern void xlwmenu_redisplay (Widget);
    86 
    87 #endif /* _XlwMenu_h */

/* [<][>][^][v][top][bottom][index][help] */