home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Programming / MR_Classes / Dev / Include / classes / requesters / palette.h next >
Encoding:
C/C++ Source or Header  |  2000-08-04  |  1.9 KB  |  61 lines

  1. #ifndef CLASSES_REQUESTERS_PALETTE_H
  2. #define CLASSES_REQUESTERS_PALETTE_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7.  
  8. #ifndef INTUITION_INTUITION_H
  9. #include <intuition/intuition.h>
  10. #endif
  11.  
  12. #ifndef UTILITY_TAGITEM_H
  13. #include <utility/tagitem.h>
  14. #endif
  15.  
  16. #ifndef CLASSES_REQUESTERS_REQUESTERS_H
  17. #include <classes/requesters/requesters.h>
  18. #endif
  19.  
  20. struct prRGB
  21. {
  22.   ULONG Red,
  23.         Green,
  24.         Blue;
  25. };
  26.  
  27. #define PR_DUMMY        (REQ_SUBCLASS)
  28.  
  29. #define PR_Window             REQ_Window
  30. #define PR_Screen             REQ_Screen
  31. #define PR_PubScreenName      REQ_PubScreenName 
  32. #define PR_PrivateIDCMP       REQ_PrivateIDCMP
  33. #define PR_IntuiMsgFunc       REQ_IntuiMsgFunc    /* Function to handle IntuiMessages */
  34. #define PR_SleepWindow        REQ_SleepWindow     /* Block input in REQ_Window?     */
  35.  
  36. #define PR_TextAttr           REQ_TextAttr
  37. #define PR_Locale                REQ_Locale                /* Locale  text   */
  38. #define PR_TitleText          REQ_TitleText             /* Title of requester             */
  39. #define PR_PositiveText       REQ_PositiveText          /* Positive gadget text         */
  40. #define PR_NegativeText       REQ_NegativeText          /* Negative gadget text         */
  41.  
  42.  
  43. #define PR_InitialLeftEdge    REQ_InitialLeftEdge
  44. #define PR_InitialTopEdge     REQ_InitialTopEdge
  45. #define PR_InitialWidth       REQ_InitialWidth
  46. #define PR_InitialHeight      REQ_InitialHeight
  47.  
  48. #define PR_Colors             (PR_DUMMY + 9)    /* Number of colors */
  49.  
  50. #define PR_InitialPalette     (PR_DUMMY + 10)
  51. #define PR_Palette            (PR_DUMMY + 10)   /* When you OM_Get this, supply a buffer, the object will copy data to your buffer */
  52.  
  53. /* color bits per pixel 8 default, MAX 15! */
  54. #define PR_RedBits            (PR_DUMMY + 20)
  55. #define PR_GreenBits          (PR_DUMMY + 21) 
  56. #define PR_BlueBits           (PR_DUMMY + 22)
  57. #define PR_ModeIDRGBBits      (PR_DUMMY + 23)   /* Sets the above according to the ModeID */
  58.  
  59.  
  60. #endif /* CLASSES_REQUESTERS_PALETTE_H */
  61.