home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / reaction / reaction_class.h next >
Encoding:
C/C++ Source or Header  |  1999-10-30  |  1.5 KB  |  57 lines

  1. #ifndef REACTION_REACTION_CLASS_H
  2. #define REACTION_REACTION_CLASS_H
  3. /*
  4. **    $VER: reaction_class.h 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **    reaction class author definitions
  8. **
  9. **    (C) Copyright 1987-1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef INTUITION_CGHOOKS_H
  14. #include <intuition/cghooks.h>
  15. #endif
  16.  
  17. /*
  18.  * PRIVATE!
  19.  */
  20. struct SpecialPens
  21. {
  22.     WORD sp_Version;    /* Currently 0 */
  23.     LONG sp_DarkPen;    /* XEN/Thick extended locked pen */
  24.     LONG sp_LightPen;    /* XEN/Thick extended locked pen */
  25.     /* NOTE: This structure may grow! */
  26. };
  27.  
  28. /*****************************************************************************
  29.  * Custom method defined and supported by some Reaction Gadgets
  30.  * When this method is supported by more (all?) Reaction Gadgets
  31.  * this structure may move to intuition/gadgetclass.h
  32.  */
  33. #define GM_CLIPRECT  (0x550001L)
  34.  
  35. /* The GM_CLIPRECT method is used to pass a gadget a cliprect
  36.  * it should install before rendering to ObtainGIRPort() rastports
  37.  * to support proper usage within virtual groups.
  38.  */
  39.  
  40. struct gpClipRect
  41. {
  42.     ULONG                MethodID;       /* GM_CLIPRECT              */
  43.     struct GadgetInfo   *gpc_GInfo;      /* GadgetInfo               */
  44.     struct Rectangle    *gpc_ClipRect;   /* Rectangle To Clip To     */
  45.     ULONG                gpc_Flags;      /* Flags                    */
  46. };
  47.  
  48. /* Possible return values from GM_CLIPRECT
  49.  */
  50. #define GMC_VISIBLE            2
  51. #define GMC_PARTIAL            1
  52. #define GMC_INVISIBLE        0
  53.  
  54. /**************************************************************************/
  55.  
  56. #endif /* REACTION_REACTION_CLASS_H */
  57.