home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / xdme_1.84_src.lha / XDME / include / menubase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-22  |  1.7 KB  |  73 lines

  1. /******************************************************************************
  2.  
  3.     MODUL
  4.     menubase.h
  5.  
  6.     DESCRIPTION
  7.     basic definitions for our menu modules
  8.  
  9. ******************************************************************************/
  10.  
  11. #ifndef MENUBASE_H
  12. #define MENUBASE_H
  13.  
  14. /**************************************
  15.         Includes
  16. **************************************/
  17. #ifndef   EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif /* EXEC_TYPES_H */
  20.  
  21. #ifndef   EXEC_NODES_H
  22. #include <exec/nodes.h>
  23. #endif /* EXEC_NODES_H */
  24.  
  25. #ifndef   INTUITION_INTUITION_H
  26. #include <intuition/intuition.h>
  27. #endif /* INTUITION_INTUITION_H */
  28.  
  29.  
  30. /**************************************
  31.         Globale Variable
  32. **************************************/
  33.  
  34.  
  35. /**************************************
  36.     Defines und Strukturen
  37. **************************************/
  38.  
  39. /* typedef struct Menu MENU; */
  40.  
  41. typedef struct MenuStrip {
  42.     struct HNode  node;         /* node for Usage in the list of menustrips */
  43.     struct Menu * data;         /* ptr to Intuition-Menus    */
  44.     long      offCount;        /* stack of menuoff-calls    */
  45. } MENUSTRIP;
  46.  
  47. typedef struct XItem {
  48.     struct MenuItem item;        /* Intuition structure */
  49.     UBYTE      * com;        /* command-string       */
  50.     UBYTE      * help;        /* help-string       */
  51.     UBYTE      * identifier;     /* inital name       */
  52.     union {                /* item.ItemFill       */
  53.     struct Image     im;
  54.     struct IntuiText it;
  55.     }            fill;        /* same size */
  56. } XITEM;
  57.  
  58.  
  59. #define   BAR      ((void *)(~NULL))
  60.  
  61.  
  62. /**************************************
  63.            Prototypes
  64. **************************************/
  65.  
  66.  
  67. #endif /* MENUBASE_H */
  68.  
  69. /******************************************************************************
  70. *****  ENDE menubase.h
  71. ******************************************************************************/
  72.  
  73.