Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

313 lines
7.6 KiB

  1. /*
  2. File: ListManagerComponent.h
  3. Contains: QuickTime Interfaces.
  4. Version: Technology: QuickTime 6.0
  5. Release: QuickTime 7.3
  6. Copyright: (c) 2007 (c) 1990-2002 by Apple Computer, Inc., all rights reserved
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://developer.apple.com/bugreporter/
  10. */
  11. #ifndef __LISTMANAGERCOMPONENT__
  12. #define __LISTMANAGERCOMPONENT__
  13. #ifndef __COMPONENTS__
  14. #include <Components.h>
  15. #endif
  16. #ifndef __LISTS__
  17. #include <Lists.h>
  18. #endif
  19. #if PRAGMA_ONCE
  20. #pragma once
  21. #endif
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #if PRAGMA_IMPORT
  26. #pragma import on
  27. #endif
  28. #if PRAGMA_STRUCT_ALIGN
  29. #pragma options align=mac68k
  30. #elif PRAGMA_STRUCT_PACKPUSH
  31. #pragma pack(push, 2)
  32. #elif PRAGMA_STRUCT_PACK
  33. #pragma pack(2)
  34. #endif
  35. enum {
  36. kLISTComponentType = FOUR_CHAR_CODE('list'),
  37. kLISTComponentSubType = FOUR_CHAR_CODE('list')
  38. };
  39. #if CALL_NOT_IN_CARBON
  40. /*
  41. * LISTCreate()
  42. *
  43. * Availability:
  44. * Non-Carbon CFM: not available
  45. * CarbonLib: not available
  46. * Mac OS X: not available
  47. */
  48. EXTERN_API( ComponentResult )
  49. LISTCreate(
  50. ComponentInstance ci,
  51. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  52. /*
  53. * LISTLDispose()
  54. *
  55. * Availability:
  56. * Non-Carbon CFM: not available
  57. * CarbonLib: not available
  58. * Mac OS X: not available
  59. */
  60. EXTERN_API( ComponentResult )
  61. LISTLDispose(
  62. ComponentInstance list,
  63. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
  64. /*
  65. * LISTLAddRow()
  66. *
  67. * Availability:
  68. * Non-Carbon CFM: not available
  69. * CarbonLib: not available
  70. * Mac OS X: not available
  71. */
  72. EXTERN_API( ComponentResult )
  73. LISTLAddRow(
  74. ComponentInstance list,
  75. short count,
  76. short rowNum,
  77. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0003, 0x7000, 0xA82A);
  78. /*
  79. * LISTLDelRow()
  80. *
  81. * Availability:
  82. * Non-Carbon CFM: not available
  83. * CarbonLib: not available
  84. * Mac OS X: not available
  85. */
  86. EXTERN_API( ComponentResult )
  87. LISTLDelRow(
  88. ComponentInstance list,
  89. short count,
  90. short rowNum,
  91. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  92. /*
  93. * LISTLSetDrawingMode()
  94. *
  95. * Availability:
  96. * Non-Carbon CFM: not available
  97. * CarbonLib: not available
  98. * Mac OS X: not available
  99. */
  100. EXTERN_API( ComponentResult )
  101. LISTLSetDrawingMode(
  102. ComponentInstance list,
  103. Boolean drawIt,
  104. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0005, 0x7000, 0xA82A);
  105. /*
  106. * LISTLAutoScroll()
  107. *
  108. * Availability:
  109. * Non-Carbon CFM: not available
  110. * CarbonLib: not available
  111. * Mac OS X: not available
  112. */
  113. EXTERN_API( ComponentResult )
  114. LISTLAutoScroll(
  115. ComponentInstance list,
  116. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  117. /*
  118. * LISTLActivate()
  119. *
  120. * Availability:
  121. * Non-Carbon CFM: not available
  122. * CarbonLib: not available
  123. * Mac OS X: not available
  124. */
  125. EXTERN_API( ComponentResult )
  126. LISTLActivate(
  127. ComponentInstance list,
  128. Boolean act,
  129. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0007, 0x7000, 0xA82A);
  130. /*
  131. * LISTLAddToCell()
  132. *
  133. * Availability:
  134. * Non-Carbon CFM: not available
  135. * CarbonLib: not available
  136. * Mac OS X: not available
  137. */
  138. EXTERN_API( ComponentResult )
  139. LISTLAddToCell(
  140. ComponentInstance list,
  141. const void * dataPtr,
  142. short dataLen,
  143. Cell theCell,
  144. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x000E, 0x0008, 0x7000, 0xA82A);
  145. /*
  146. * LISTLClrCell()
  147. *
  148. * Availability:
  149. * Non-Carbon CFM: not available
  150. * CarbonLib: not available
  151. * Mac OS X: not available
  152. */
  153. EXTERN_API( ComponentResult )
  154. LISTLClrCell(
  155. ComponentInstance list,
  156. Cell theCell,
  157. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
  158. /*
  159. * LISTLSetCell()
  160. *
  161. * Availability:
  162. * Non-Carbon CFM: not available
  163. * CarbonLib: not available
  164. * Mac OS X: not available
  165. */
  166. EXTERN_API( ComponentResult )
  167. LISTLSetCell(
  168. ComponentInstance list,
  169. const void * dataPtr,
  170. short dataLen,
  171. Cell theCell,
  172. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x000E, 0x000A, 0x7000, 0xA82A);
  173. /*
  174. * LISTLSetSelect()
  175. *
  176. * Availability:
  177. * Non-Carbon CFM: not available
  178. * CarbonLib: not available
  179. * Mac OS X: not available
  180. */
  181. EXTERN_API( ComponentResult )
  182. LISTLSetSelect(
  183. ComponentInstance list,
  184. Boolean setIt,
  185. Cell theCell,
  186. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x000A, 0x000B, 0x7000, 0xA82A);
  187. /*
  188. * LISTLDraw()
  189. *
  190. * Availability:
  191. * Non-Carbon CFM: not available
  192. * CarbonLib: not available
  193. * Mac OS X: not available
  194. */
  195. EXTERN_API( ComponentResult )
  196. LISTLDraw(
  197. ComponentInstance list,
  198. Cell theCell,
  199. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
  200. /*
  201. * LISTGetVisibleBounds()
  202. *
  203. * Availability:
  204. * Non-Carbon CFM: not available
  205. * CarbonLib: not available
  206. * Mac OS X: not available
  207. */
  208. EXTERN_API( ComponentResult )
  209. LISTGetVisibleBounds(
  210. ComponentInstance list,
  211. Rect * bounds,
  212. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0008, 0x000D, 0x7000, 0xA82A);
  213. /*
  214. * LISTLScroll()
  215. *
  216. * Availability:
  217. * Non-Carbon CFM: not available
  218. * CarbonLib: not available
  219. * Mac OS X: not available
  220. */
  221. EXTERN_API( ComponentResult )
  222. LISTLScroll(
  223. ComponentInstance list,
  224. short dh,
  225. short dv,
  226. ListHandle lHandle) FIVEWORDINLINE(0x2F3C, 0x0008, 0x000E, 0x7000, 0xA82A);
  227. /* selectors for component calls */
  228. enum {
  229. kLISTCreateSelect = 0x0001,
  230. kLISTLDisposeSelect = 0x0002,
  231. kLISTLAddRowSelect = 0x0003,
  232. kLISTLDelRowSelect = 0x0004,
  233. kLISTLSetDrawingModeSelect = 0x0005,
  234. kLISTLAutoScrollSelect = 0x0006,
  235. kLISTLActivateSelect = 0x0007,
  236. kLISTLAddToCellSelect = 0x0008,
  237. kLISTLClrCellSelect = 0x0009,
  238. kLISTLSetCellSelect = 0x000A,
  239. kLISTLSetSelectSelect = 0x000B,
  240. kLISTLDrawSelect = 0x000C,
  241. kLISTGetVisibleBoundsSelect = 0x000D,
  242. kLISTLScrollSelect = 0x000E
  243. };
  244. #endif /* CALL_NOT_IN_CARBON */
  245. #if PRAGMA_STRUCT_ALIGN
  246. #pragma options align=reset
  247. #elif PRAGMA_STRUCT_PACKPUSH
  248. #pragma pack(pop)
  249. #elif PRAGMA_STRUCT_PACK
  250. #pragma pack()
  251. #endif
  252. #ifdef PRAGMA_IMPORT_OFF
  253. #pragma import off
  254. #elif PRAGMA_IMPORT
  255. #pragma import reset
  256. #endif
  257. #ifdef __cplusplus
  258. }
  259. #endif
  260. #endif /* __LISTMANAGERCOMPONENT__ */