home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / utilities / icon_tools / iconian296 / sources / includes / gadgets / popup.h
C/C++ Source or Header  |  1995-09-11  |  2KB  |  78 lines

  1. #ifndef GADGETS_POPUP_H
  2. #define GADGETS_POPUP_H
  3.  
  4. /* includes for popup.gadget
  5. *
  6. * popup.gadget is COPYRIGHT 1995 by Chad Randall
  7. * Permission is granted for reuse in all applications,
  8. * provided no modification are done on original source,
  9. * and the original copyright is retained in all applicable
  10. * locations.
  11. *
  12. */
  13.  
  14. /* I'm not fluent in C.  This header file was created
  15. *  from a converted "showmodule" file from AmigaE.
  16. *  Sorry if it doesn't compile right...send me
  17. *  any corrections, and I'll repay you with many thanks.!
  18. */
  19.  
  20.  
  21. #ifndef EXEC_NODES_H
  22. #include <exec/nodes.h>
  23. #endif
  24.  
  25. #ifndef GRAPHICS_TEXT_H
  26. #include <graphics/text.h>
  27. #endif
  28.  
  29. #ifndef INTUITION_INTUITION_H
  30. #include <intuition/intuition.h>
  31. #endif
  32.  
  33. struct imagenode {
  34.  
  35. /* These are PUBLIC fields.  But, *do not* modify after attaching the node/list to a popup gadget! */
  36.  
  37.    struct  Node listnode;
  38.    struct  Image *object;         /* normal object image */
  39.    struct  Image *selobject;      /* selected ""   - may be NIL */
  40.    ULONG   frametype;             /* -1 for no frame, or FRAME_DEFAULT *_BUTTON *_RIDGE _ICONDROPBOX */
  41.    ULONG   selfillcolor;          /* Not a pen#, rather "BACKGROUNDPEN", "FILLPEN", "FILLTEXTPEN", etc... */
  42.    ULONG   selframetype;          /* same a frametype, but for selected state. */
  43.  
  44. /* below are OFF-LIMITS */
  45.  
  46.    ULONG   private_offsetx;
  47.    ULONG   private_offsety;
  48.    ULONG   private_sel_offsetx;
  49.    ULONG   private_sel_offsety;
  50.    ULONG   private_lastdrawn;
  51.    ULONG   private_iallocated;
  52.    struct  IntuiText *private_itextn;
  53.    struct  IntuiText *private_itexts;
  54.    struct  TextFont *private_textfont;
  55.    struct  TextAttr *private_textattr;
  56.    APTR    private_text;                 /* This points to a "EString" structure */
  57.  }
  58.  
  59. #define PUA_ACTIVE 0x86900200
  60. #define PUA_NUMBEROFOBJECTS 0x86900209
  61. #define PUA_OBJECTS 0x86900201
  62. #define PUA_COLUMNS 0x86900203
  63. #define PUA_CENTERIMAGES 0x8690020C
  64. #define PUA_ROWS 0x86900202
  65. #define PUA_CENTERGADGETIMAGE 0x8690020D
  66. #define PUARROW_TINY 1
  67. #define PUARROW_POPUP 2
  68. #define PUA_POPUPARROW 0x86900204
  69. #define PUARROW_NONE 0
  70. #define PUA_IMAGESPACING 0x86900208
  71. #define PUA_WINDOWSPACING 0x86900207
  72. #define PUA_WINDOWBORDER 0x86900206
  73. #define PUA_GADGETBORDER 0x86900205
  74. #define PUA_AUTOGADGETRESIZE 0x8690020A
  75. #define PUA_AUTOWINDOWLAYOUT 0x8690020B
  76.  
  77. #endif
  78.