home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Programming / MR_Classes / Dev / Source / palette / edata.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-16  |  1.6 KB  |  89 lines

  1. #ifndef EDATA_H
  2. #define EDATA_H
  3.  
  4. #ifndef EXEC_NODES_H
  5. #include <exec/nodes.h>
  6. #endif
  7.  
  8. #ifndef INTUITION_CLASSUSR_H
  9. #include <intuition/classusr.h>
  10. #endif
  11.  
  12. #include <classes/requesters/palette.h>
  13.  
  14. struct IDCMP_Hook
  15. {
  16.   struct Hook H; // h_Data is LibBase
  17.   struct EData *EData;
  18. };
  19.  
  20.  
  21.  
  22. struct EData
  23. {
  24.   struct Node eNode;
  25.   
  26.   Object  *ScreenObject;
  27.   struct  Window *Window; // requester window
  28.   Object  *Win_Object, // window object
  29.           *Model,
  30.           *G_Palette,
  31.           *G_Red,
  32.           *G_Green,
  33.           *G_Blue,
  34.           *G_RedText,
  35.           *G_GreenText,
  36.           *G_BlueText,
  37.           *G_Copy,
  38.           *G_Swap,
  39.           *G_Spread,
  40.           *G_Reset,
  41.           *G_Undo,
  42.           *G_OK,
  43.           *G_Cancel;
  44.  
  45.  
  46.  
  47.   /* IDCMP Handler*/
  48.   struct IDCMP_Hook IDCMPHook;
  49.  
  50. /* pr_ are tag related */
  51.   ULONG   pr_Flags;
  52.  
  53.   LONG    pr_InitialLeftEdge,
  54.           pr_InitialTopEdge,
  55.           pr_InitialWidth,
  56.           pr_InitialHeight;
  57.   
  58.  
  59.   struct  Screen *pr_Screen;
  60.   struct  Window *pr_Window;
  61.   STRPTR  pr_PubScreenName;
  62.   struct  TextAttr *pr_TextAttr;
  63.   
  64.   STRPTR  pr_TitleText;
  65.   
  66.   BYTE    pr_RedBits, pr_GreenBits, pr_BlueBits;
  67.   
  68.   ULONG   pr_Colors;
  69.   
  70.   struct  prRGB pr_InitialPalette[256];
  71.   struct  prRGB UndoPalette   [256];
  72.   struct  prRGB WorkPalette   [256];
  73.  
  74.   STRPTR  pr_PositiveText,
  75.           pr_NegativeText;
  76.           
  77.   ULONG  CopyMode, SpreadMode, SwapMode; 
  78. };
  79.  
  80. #define PRFLAG_USER_LEFTEDGE  (1<<0)
  81. #define PRFLAG_USER_TOPEDGE  (1<<1)
  82. #define PRFLAG_USER_WIDTH  (1<<2)
  83. #define PRFLAG_USER_HEIGHT  (1<<3)
  84. #define PRFLAG_USER_REDBITS  (1<<4)
  85. #define PRFLAG_USER_GREENBITS  (1<<5)
  86. #define PRFLAG_USER_BLUEBITS  (1<<6)
  87.  
  88. #endif /* EDATA_H */
  89.