home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / intuition / imageclass.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  3.2 KB  |  189 lines

  1. #ifndef INTUITION_IMAGECLASS_H
  2. #define INTUITION_IMAGECLASS_H TRUE
  3. /*
  4. ** $Filename: intuition/imageclass.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.3 $
  7. ** $Date: 91/11/08 $
  8. **
  9. ** Definitions for the image classes
  10. **
  11. ** (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15.  
  16. #ifndef UTILITY_TAGITEM_H
  17. #include <utility/tagitem.h>
  18. #endif
  19.  
  20.  
  21.  
  22. #define CUSTOMIMAGEDEPTH (-1)
  23.  
  24.  
  25.  
  26. #define GADGET_BOX( g ) ( (struct IBox *) &((struct Gadget *)(g))->LeftEdge )
  27. #define IM_BOX( im ) ( (struct IBox *) &((struct Image *)(im))->LeftEdge )
  28. #define IM_FGPEN( im ) ( (im)->PlanePick )
  29. #define IM_BGPEN( im ) ( (im)->PlaneOnOff )
  30.  
  31.  
  32. #define IA_Dummy (TAG_USER + 0x20000)
  33. #define IA_Left (IA_Dummy + 0x01)
  34. #define IA_Top (IA_Dummy + 0x02)
  35. #define IA_Width (IA_Dummy + 0x03)
  36. #define IA_Height (IA_Dummy + 0x04)
  37. #define IA_FGPen (IA_Dummy + 0x05)
  38.  
  39. #define IA_BGPen (IA_Dummy + 0x06)
  40.  
  41. #define IA_Data (IA_Dummy + 0x07)
  42.  
  43. #define IA_LineWidth (IA_Dummy + 0x08)
  44. #define IA_Pens (IA_Dummy + 0x0E)
  45.  
  46. #define IA_Resolution (IA_Dummy + 0x0F)
  47.  
  48.  
  49.  
  50.  
  51. #define IA_APattern (IA_Dummy + 0x10)
  52. #define IA_APatSize (IA_Dummy + 0x11)
  53. #define IA_Mode (IA_Dummy + 0x12)
  54. #define IA_Font (IA_Dummy + 0x13)
  55. #define IA_Outline (IA_Dummy + 0x14)
  56. #define IA_Recessed (IA_Dummy + 0x15)
  57. #define IA_DoubleEmboss (IA_Dummy + 0x16)
  58. #define IA_EdgesOnly (IA_Dummy + 0x17)
  59.  
  60.  
  61. #define SYSIA_Size (IA_Dummy + 0x0B)
  62.  
  63. #define SYSIA_Depth (IA_Dummy + 0x0C)
  64.  
  65. #define SYSIA_Which (IA_Dummy + 0x0D)
  66.  
  67. #define SYSIA_DrawInfo (IA_Dummy + 0x18)
  68.  
  69.  
  70.  
  71. #define SYSIA_Pens IA_Pens
  72. #define IA_ShadowPen (IA_Dummy + 0x09)
  73. #define IA_HighlightPen (IA_Dummy + 0x0A)
  74.  
  75.  
  76.  
  77.  
  78.  
  79. #define SYSISIZE_MEDRES (0)
  80. #define SYSISIZE_LOWRES (1)
  81. #define SYSISIZE_HIRES (2)
  82.  
  83.  
  84. #define DEPTHIMAGE (0x00L)
  85. #define ZOOMIMAGE (0x01L)
  86. #define SIZEIMAGE (0x02L)
  87. #define CLOSEIMAGE (0x03L)
  88. #define SDEPTHIMAGE (0x05L) 
  89. #define LEFTIMAGE (0x0AL)
  90. #define UPIMAGE (0x0BL)
  91. #define RIGHTIMAGE (0x0CL)
  92. #define DOWNIMAGE (0x0DL)
  93. #define CHECKIMAGE (0x0EL)
  94. #define MXIMAGE (0x0FL) 
  95.  
  96.  
  97.  
  98. #define IM_DRAW 0x202L 
  99. #define IM_HITTEST 0x203L 
  100. #define IM_ERASE 0x204L 
  101. #define IM_MOVE 0x205L 
  102.  
  103. #define IM_DRAWFRAME 0x206L 
  104. #define IM_FRAMEBOX 0x207L 
  105. #define IM_HITFRAME 0x208L 
  106. #define IM_ERASEFRAME 0x209L 
  107.  
  108.  
  109. #define IDS_NORMAL (0L)
  110. #define IDS_SELECTED (1L) 
  111. #define IDS_DISABLED (2L) 
  112. #define IDS_BUSY (3L) 
  113. #define IDS_INDETERMINATE (4L) 
  114. #define IDS_INACTIVENORMAL (5L) 
  115. #define IDS_INACTIVESELECTED (6L) 
  116. #define IDS_INACTIVEDISABLED (7L) 
  117.  
  118.  
  119. #define IDS_INDETERMINANT IDS_INDETERMINATE
  120.  
  121.  
  122. struct impFrameBox {
  123.  ULONG MethodID;
  124.  struct IBox *imp_ContentsBox; 
  125.  struct IBox *imp_FrameBox; 
  126.  struct DrawInfo *imp_DrInfo; 
  127.  ULONG imp_FrameFlags;
  128. };
  129.  
  130. #define FRAMEF_SPECIFY (1<<0) 
  131.  
  132.  
  133. struct impDraw {
  134.  ULONG MethodID;
  135.  struct RastPort *imp_RPort;
  136.  struct {
  137.  WORD X;
  138.  WORD Y;
  139.  } imp_Offset;
  140.  
  141.  ULONG imp_State;
  142.  struct DrawInfo *imp_DrInfo; 
  143.  
  144.  
  145.  struct {
  146.  WORD Width;
  147.  WORD Height;
  148.  } imp_Dimensions;
  149. };
  150.  
  151.  
  152.  
  153. struct impErase {
  154.  ULONG MethodID;
  155.  struct RastPort *imp_RPort;
  156.  struct {
  157.  WORD X;
  158.  WORD Y;
  159.  } imp_Offset;
  160.  
  161.  
  162.  struct {
  163.  WORD Width;
  164.  WORD Height;
  165.  } imp_Dimensions;
  166. };
  167.  
  168.  
  169. struct impHitTest {
  170.  ULONG MethodID;
  171.  struct {
  172.  WORD X;
  173.  WORD Y;
  174.  } imp_Point;
  175.  
  176.  
  177.  struct {
  178.  WORD Width;
  179.  WORD Height;
  180.  } imp_Dimensions;
  181. };
  182.  
  183.  
  184. #ifndef INTUITION_IOBSOLETE_H
  185. #include <intuition/iobsolete.h>
  186. #endif
  187.  
  188. #endif
  189.