xlwmenu.h 2.9 KB

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