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

  1. #ifndef INTUITION_GADGETCLASS_H
  2. #define INTUITION_GADGETCLASS_H 1
  3. /*
  4. ** $Filename: intuition/gadgetclass.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 36.6 $
  7. ** $Date: 91/11/08 $
  8. **
  9. ** Custom and 'boopsi' gadget class interface
  10. **
  11. ** (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include <exec/types.h>
  17. #endif
  18.  
  19. #ifndef INTUITION_INTUITION_H
  20. #include <intuition/intuition.h>
  21. #endif
  22.  
  23. #ifndef UTILITY_TAGITEM_H
  24. #include <utility/tagitem.h>
  25. #endif
  26.  
  27.  
  28.  
  29.  
  30.  
  31. #define GA_Dummy (TAG_USER +0x30000)
  32. #define GA_Left (GA_Dummy + 0x0001)
  33. #define GA_RelRight (GA_Dummy + 0x0002)
  34. #define GA_Top (GA_Dummy + 0x0003)
  35. #define GA_RelBottom (GA_Dummy + 0x0004)
  36. #define GA_Width (GA_Dummy + 0x0005)
  37. #define GA_RelWidth (GA_Dummy + 0x0006)
  38. #define GA_Height (GA_Dummy + 0x0007)
  39. #define GA_RelHeight (GA_Dummy + 0x0008)
  40. #define GA_Text (GA_Dummy + 0x0009) 
  41. #define GA_Image (GA_Dummy + 0x000A)
  42. #define GA_Border (GA_Dummy + 0x000B)
  43. #define GA_SelectRender (GA_Dummy + 0x000C)
  44. #define GA_Highlight (GA_Dummy + 0x000D)
  45. #define GA_Disabled (GA_Dummy + 0x000E)
  46. #define GA_GZZGadget (GA_Dummy + 0x000F)
  47. #define GA_ID (GA_Dummy + 0x0010)
  48. #define GA_UserData (GA_Dummy + 0x0011)
  49. #define GA_SpecialInfo (GA_Dummy + 0x0012)
  50. #define GA_Selected (GA_Dummy + 0x0013)
  51. #define GA_EndGadget (GA_Dummy + 0x0014)
  52. #define GA_Immediate (GA_Dummy + 0x0015)
  53. #define GA_RelVerify (GA_Dummy + 0x0016)
  54. #define GA_FollowMouse (GA_Dummy + 0x0017)
  55. #define GA_RightBorder (GA_Dummy + 0x0018)
  56. #define GA_LeftBorder (GA_Dummy + 0x0019)
  57. #define GA_TopBorder (GA_Dummy + 0x001A)
  58. #define GA_BottomBorder (GA_Dummy + 0x001B)
  59. #define GA_ToggleSelect (GA_Dummy + 0x001C)
  60.  
  61.  
  62. #define GA_SysGadget (GA_Dummy + 0x001D)
  63.  
  64. #define GA_SysGType (GA_Dummy + 0x001E)
  65.  
  66.  
  67. #define GA_Previous (GA_Dummy + 0x001F)
  68.  
  69.  
  70. #define GA_Next (GA_Dummy + 0x0020)
  71.  
  72.  
  73. #define GA_DrawInfo (GA_Dummy + 0x0021)
  74.  
  75.  
  76.  
  77. #define GA_IntuiText (GA_Dummy + 0x0022)
  78.  
  79.  
  80. #define GA_LabelImage (GA_Dummy + 0x0023)
  81.  
  82.  
  83. #define GA_TabCycle (GA_Dummy + 0x0024)
  84.  
  85.  
  86.  
  87.  
  88. #define PGA_Dummy (TAG_USER + 0x31000)
  89. #define PGA_Freedom (PGA_Dummy + 0x0001)
  90.  
  91. #define PGA_Borderless (PGA_Dummy + 0x0002)
  92. #define PGA_HorizPot (PGA_Dummy + 0x0003)
  93. #define PGA_HorizBody (PGA_Dummy + 0x0004)
  94. #define PGA_VertPot (PGA_Dummy + 0x0005)
  95. #define PGA_VertBody (PGA_Dummy + 0x0006)
  96. #define PGA_Total (PGA_Dummy + 0x0007)
  97. #define PGA_Visible (PGA_Dummy + 0x0008)
  98. #define PGA_Top (PGA_Dummy + 0x0009)
  99.  
  100. #define PGA_NewLook (PGA_Dummy + 0x000A)
  101.  
  102.  
  103.  
  104. #define STRINGA_Dummy (TAG_USER +0x32000)
  105. #define STRINGA_MaxChars (STRINGA_Dummy + 0x0001)
  106. #define STRINGA_Buffer (STRINGA_Dummy + 0x0002)
  107. #define STRINGA_UndoBuffer (STRINGA_Dummy + 0x0003)
  108. #define STRINGA_WorkBuffer (STRINGA_Dummy + 0x0004)
  109. #define STRINGA_BufferPos (STRINGA_Dummy + 0x0005)
  110. #define STRINGA_DispPos (STRINGA_Dummy + 0x0006)
  111. #define STRINGA_AltKeyMap (STRINGA_Dummy + 0x0007)
  112. #define STRINGA_Font (STRINGA_Dummy + 0x0008)
  113. #define STRINGA_Pens (STRINGA_Dummy + 0x0009)
  114. #define STRINGA_ActivePens (STRINGA_Dummy + 0x000A)
  115. #define STRINGA_EditHook (STRINGA_Dummy + 0x000B)
  116. #define STRINGA_EditModes (STRINGA_Dummy + 0x000C)
  117.  
  118.  
  119. #define STRINGA_ReplaceMode (STRINGA_Dummy + 0x000D)
  120. #define STRINGA_FixedFieldMode (STRINGA_Dummy + 0x000E)
  121. #define STRINGA_NoFilterMode (STRINGA_Dummy + 0x000F)
  122.  
  123. #define STRINGA_Justification (STRINGA_Dummy + 0x0010)
  124.  
  125. #define STRINGA_LongVal (STRINGA_Dummy + 0x0011)
  126. #define STRINGA_TextVal (STRINGA_Dummy + 0x0012)
  127.  
  128. #define STRINGA_ExitHelp (STRINGA_Dummy + 0x0013)
  129.  
  130.  
  131. #define SG_DEFAULTMAXCHARS (128)
  132.  
  133.  
  134.  
  135. #define LAYOUTA_Dummy (TAG_USER + 0x38000)
  136. #define LAYOUTA_LayoutObj (LAYOUTA_Dummy + 0x0001)
  137. #define LAYOUTA_Spacing (LAYOUTA_Dummy + 0x0002)
  138. #define LAYOUTA_Orientation (LAYOUTA_Dummy + 0x0003)
  139.  
  140.  
  141. #define LORIENT_NONE 0
  142. #define LORIENT_HORIZ 1
  143. #define LORIENT_VERT 2
  144.  
  145.  
  146.  
  147.  
  148. #define GM_Dummy (-1) 
  149. #define GM_HITTEST (0) 
  150. #define GM_RENDER (1) 
  151. #define GM_GOACTIVE (2) 
  152. #define GM_HANDLEINPUT (3) 
  153. #define GM_GOINACTIVE (4) 
  154.  
  155.  
  156.  
  157.  
  158. struct gpHitTest {
  159.  ULONG MethodID;
  160.  struct GadgetInfo *gpht_GInfo;
  161.  struct {
  162.  WORD X;
  163.  WORD Y;
  164.  } gpht_Mouse;
  165. };
  166.  
  167. #define GMR_GADGETHIT (0x00000004) 
  168.  
  169.  
  170. struct gpRender {
  171.  ULONG MethodID;
  172.  struct GadgetInfo *gpr_GInfo; 
  173.  struct RastPort *gpr_RPort; 
  174.  LONG gpr_Redraw; 
  175. };
  176.  
  177.  
  178. #define GREDRAW_UPDATE (2) 
  179. #define GREDRAW_REDRAW (1) 
  180. #define GREDRAW_TOGGLE (0) 
  181.  
  182.  
  183. struct gpInput {
  184.  ULONG MethodID;
  185.  struct GadgetInfo *gpi_GInfo;
  186.  struct InputEvent *gpi_IEvent;
  187.  LONG *gpi_Termination;
  188.  struct {
  189.  WORD X;
  190.  WORD Y;
  191.  } gpi_Mouse;
  192. };
  193.  
  194.  
  195.  
  196. #define GMR_MEACTIVE (0)
  197. #define GMR_NOREUSE (1 << 1)
  198. #define GMR_REUSE (1 << 2)
  199. #define GMR_VERIFY (1 << 3) 
  200.  
  201.  
  202. #define GMR_NEXTACTIVE (1 << 4)
  203. #define GMR_PREVACTIVE (1 << 5)
  204.  
  205.  
  206. struct gpGoInactive {
  207.  ULONG MethodID;
  208.  struct GadgetInfo *gpgi_GInfo;
  209.  
  210.  
  211.  ULONG gpgi_Abort; 
  212. };
  213.  
  214.  
  215.  
  216. #ifndef INTUITION_IOBSOLETE_H
  217. #include <intuition/iobsolete.h>
  218. #endif
  219.  
  220. #endif
  221.