MenuButton.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: MenuButton.h /main/3 1995/10/26 09:33:10 rswiston $ */
  24. /*
  25. * (c) Copyright 1993, 1994 Hewlett-Packard Company
  26. * (c) Copyright 1993, 1994 International Business Machines Corp.
  27. * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  28. * (c) Copyright 1993, 1994 Novell, Inc.
  29. */
  30. #ifndef _Dt_MenuButton_h
  31. #define _Dt_MenuButton_h
  32. #include <Xm/Xm.h>
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. /*
  37. * Constants
  38. */
  39. /* Resources */
  40. #ifndef DtNcascadingCallback
  41. #define DtNcascadingCallback XmNcascadingCallback
  42. #endif
  43. #ifndef DtNsubMenuId
  44. #define DtNsubMenuId XmNsubMenuId
  45. #endif
  46. #ifndef DtNcascadePixmap
  47. #define DtNcascadePixmap XmNcascadePixmap
  48. #endif
  49. #ifndef DtCCallback
  50. #define DtCCallback XmCCallback
  51. #endif
  52. #ifndef DtCPixmap
  53. #define DtCPixmap XmCPixmap
  54. #endif
  55. #ifndef DtCMenuWidget
  56. #define DtCMenuWidget XmCMenuWidget
  57. #endif
  58. #ifndef DtCR_CASCADING
  59. #define DtCR_CASCADING XmCR_CASCADING
  60. #endif
  61. /*
  62. * Types
  63. */
  64. /* Widget class and instance */
  65. typedef struct _DtMenuButtonRec * DtMenuButtonWidget;
  66. typedef struct _DtMenuButtonClassRec * DtMenuButtonWidgetClass;
  67. /*
  68. * Data
  69. */
  70. /* Widget class record */
  71. externalref WidgetClass dtMenuButtonWidgetClass;
  72. /*
  73. * Functions
  74. */
  75. extern Widget DtCreateMenuButton(
  76. Widget parent,
  77. char *name,
  78. ArgList arglist,
  79. Cardinal argcount);
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. #endif /* _Dt_MenuButton_h */