home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff201.lzh / Draco / drinc / intuition / gadget.g < prev    next >
Text File  |  1989-04-03  |  3KB  |  165 lines

  1. type
  2. „Gadget_t=struct{
  3. ˆ*Gadget_tg_NextGadget;
  4. ˆ
  5. ˆintg_LeftEdge,g_TopEdge;
  6. ˆintg_Width,g_Height;
  7. ˆ
  8. ˆuintg_Flags;
  9. ˆuintg_Activation;
  10. ˆuintg_GadgetType;
  11. ˆ
  12. ˆunion{*Image_tgImage;*Border_tgBorder}
  13. Œg_GadgetRender,g_SelectRender;
  14. ˆ
  15. ˆ*IntuiText_tg_GadgetText;
  16. ˆ
  17. ˆulongg_MutualExclude;
  18. ˆ
  19. ˆunion{*BoolInfo_tgBool;*StringInfo_tgStr;*PropInfo_tgProp}
  20. Œg_SpecialInfo;
  21. ˆ
  22. ˆuintg_GadgetID;
  23. ˆ*byteg_UserData;
  24. „};
  25.  
  26. uint
  27. „GADGHIGHBITS=0x0003,
  28. „GADGHCOMPƒ=0x0000,
  29. „GADGHBOX„=0x0001,
  30. „GADGHIMAGE‚=0x0002,
  31. „GADGHNONEƒ=0x0003,
  32.  
  33. „GADGIMAGEƒ=0x0004,
  34.  
  35. „GRELBOTTOM‚=0x0008,
  36. „GRELRIGHTƒ=0x0010,
  37. „GRELWIDTHƒ=0x0020,
  38. „GRELHEIGHT‚=0x0040,
  39.  
  40. „SELECTED„=0x0080,
  41.  
  42. „GADGDISABLED=0x0100;
  43.  
  44. uint
  45. „RELVERIFYƒ=0x0001,
  46.  
  47. „GADGIMMEDIATE=0x0002,
  48.  
  49. „ENDGADGETƒ=0x0004,
  50.  
  51. „FOLLOWMOUSE=0x0008,
  52.  
  53. „RIGHTBORDER=0x0010,
  54. „LEFTBORDER‚=0x0020,
  55. „TOPBORDERƒ=0x0040,
  56. „BOTTOMBORDER=0x0080,
  57.  
  58. „TOGGLESELECT=0x0100,
  59.  
  60. „STRINGCENTER=0x0200,
  61. „STRINGRIGHT=0x0400,
  62.  
  63. „LONGINT…=0x0800,
  64.  
  65. „ALTKEYMAPƒ=0x1000,
  66.  
  67. „BOOLEXTEND‚=0x2000;
  68.  
  69. uint
  70. „GADGETTYPE‚=0xFC00,
  71. „SYSGADGETƒ=0x8000,
  72. „SCRGADGETƒ=0x4000,
  73. „GZZGADGETƒ=0x2000,
  74. „REQGADGETƒ=0x1000,
  75.  
  76. „SIZING†=0x0010,
  77. „WDRAGGINGƒ=0x0020,
  78. „SDRAGGINGƒ=0x0030,
  79. „WUPFRONT„=0x0040,
  80. „SUPFRONT„=0x0050,
  81. „WDOWNBACKƒ=0x0060,
  82. „SDOWNBACKƒ=0x0070,
  83. „CLOSE‡=0x0080,
  84.  
  85. „BOOLGADGET‚=0x0001,
  86. „GADGET002ƒ=0x0002,
  87. „PROPGADGET‚=0x0003,
  88. „STRGADGETƒ=0x0004;
  89.  
  90. type
  91. „BoolInfo_t=struct{
  92. ˆuintbi_Flags;
  93. ˆ*uintbi_Mask;
  94. ˆulongbi_Reserved;
  95. „};
  96.  
  97. uint
  98. „BOOLMASK„=0x0001;
  99.  
  100. type
  101. „PropInfo_t=struct{
  102. ˆuintpi_Flags;
  103. ˆ
  104. ˆuintpi_HorizPot;
  105. ˆuintpi_VertPot;
  106. ˆ
  107. ˆuintpi_HorizBody;
  108. ˆuintpi_VertBody;
  109. ˆ
  110. ˆuintpi_CWidth;
  111. ˆuintpi_CHeight;
  112. ˆuintpi_HPotRes,pi_VPotRes;
  113. ˆuintpi_LeftBorder;
  114. ˆuintpi_TopBorder;
  115. „};
  116.  
  117. uint
  118. „AUTOKNOB„=0x0001,
  119. „FREEHORIZƒ=0x0002,
  120. „FREEVERT„=0x0004,
  121. „PROPBORDERLESS=0x0008,
  122. „KNOBHIT…=0x0100;
  123.  
  124. uint
  125. „KNOBHMIN„=6,
  126. „KNOBVMIN„=4,
  127. „MAXBODY…=65535,
  128. „MAXBOT†=65535;
  129.  
  130. type
  131. „StringInfo_t=struct{
  132. ˆ*charsi_Buffer;
  133. ˆ*charsi_UndoBuffer;
  134. ˆuintsi_BufferPos;
  135. ˆuintsi_MaxChars;
  136. ˆuintsi_DispPos;
  137. ˆ
  138. ˆuintsi_UndoPos;
  139. ˆuintsi_NumChars;
  140. ˆuintsi_DispCount;
  141. ˆintsi_CLeft,si_CTop;
  142. ˆ*Layer_tsi_LayerPtr;
  143. ˆ
  144. ˆlongsi_LongInt;
  145. ˆ
  146. ˆ*KeyMap_tsi_AltKeyMap;
  147. „};
  148.  
  149. extern
  150. „ActivateGadget(*Gadget_tg;*Window_tw;*Requester_tr)bool,
  151. „AddGadget(*Window_tw;*Gadget_tg;ulongposition)ulong,
  152. „AddGList(*Window_tw;*Gadget_tg;ulongposition;longnumGad;
  153. *Requester_tr)ulong,
  154. „ModifyProp(*Gadget_tg;*Window_tw;*Requester_tr;ulongflags;
  155. ulonghorizPot,vertPot,horizBody,vertBody)void,
  156. „NewModifyProp(*Gadget_tg;*Window_tw;*Requester_tr;ulongflags;
  157. ’ulonghorizPot,vertPot,horizBody,vertBody;
  158. ’longnumGad)void,
  159. „OffGadget(*Gadget_tg;*Window_tw;*Requester_tr)void,
  160. „OnGadget(*Gadget_tg;*Window_tw;*Requester_tr)void,
  161. „RefreshGadgets(*Gadget_tg;*Window_tw;*Requester_tr)void,
  162. „RefreshGList(*Gadget_tg;*Window_tw;*Requester_tr;longnumGad)void,
  163. „RemoveGadget(*Window_tw;*Gadget_tg)long,
  164. „RemoveGList(*Window_tw;*Gadget_tg;longnumGad)long;
  165.