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.

535 lines
14 KiB

  1. /*
  2. File: ControlManagerComponent.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 __CONTROLMANAGERCOMPONENT__
  12. #define __CONTROLMANAGERCOMPONENT__
  13. #ifndef __COMPONENTS__
  14. #include <Components.h>
  15. #endif
  16. #ifndef __CONTROLS__
  17. #include <Controls.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. kCTRLComponentType = FOUR_CHAR_CODE('ctrl'),
  37. kCTRLComponentBaseSubType = FOUR_CHAR_CODE('ctrl'),
  38. kCTRLComponentButtonSubType = FOUR_CHAR_CODE('butn'),
  39. kCTRLComponentRadioSubType = FOUR_CHAR_CODE('radi'),
  40. kCTRLComponentCheckSubType = FOUR_CHAR_CODE('chec'),
  41. kCTRLComponentScrollSubType = FOUR_CHAR_CODE('scro'),
  42. kCTRLComponentStaticTextSubType = FOUR_CHAR_CODE('stx '),
  43. kCTRLComponentEditTextSubType = FOUR_CHAR_CODE('edit'),
  44. kCTRLComponentIconSubType = FOUR_CHAR_CODE('icon'),
  45. kCTRLComponentPopupMenuSubType = FOUR_CHAR_CODE('popu'),
  46. kCTRLComponentUserItemSubType = FOUR_CHAR_CODE('user'),
  47. kCTRLComponentCDEFSubType = FOUR_CHAR_CODE('cdef'),
  48. kCTRLComponentPICTSubType = FOUR_CHAR_CODE('pict'),
  49. kCTRLComponentGroupBoxSubType = FOUR_CHAR_CODE('gbox'),
  50. kCTRLComponentLittleArrowsSubType = FOUR_CHAR_CODE('larw'),
  51. kCTRLComponentBevelButtonSubType = FOUR_CHAR_CODE('bvbn'),
  52. kCTRLComponentImageWellSubType = FOUR_CHAR_CODE('imwl'),
  53. kCTRLComponentProgressBarSubType = FOUR_CHAR_CODE('prog')
  54. };
  55. #if CALL_NOT_IN_CARBON
  56. /*
  57. * CTRLGetCookie()
  58. *
  59. * Availability:
  60. * Non-Carbon CFM: not available
  61. * CarbonLib: not available
  62. * Mac OS X: not available
  63. */
  64. EXTERN_API( ComponentResult )
  65. CTRLGetCookie(
  66. ComponentInstance ctrl,
  67. void * cookie) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  68. /*
  69. * CTRLSetCookie()
  70. *
  71. * Availability:
  72. * Non-Carbon CFM: not available
  73. * CarbonLib: not available
  74. * Mac OS X: not available
  75. */
  76. EXTERN_API( ComponentResult )
  77. CTRLSetCookie(
  78. ComponentInstance ctrl,
  79. long cookie) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
  80. /*
  81. * CTRLGetCapabilities()
  82. *
  83. * Availability:
  84. * Non-Carbon CFM: not available
  85. * CarbonLib: not available
  86. * Mac OS X: not available
  87. */
  88. EXTERN_API( ComponentResult )
  89. CTRLGetCapabilities(
  90. ComponentInstance ctrl,
  91. long * capabilities) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  92. /*
  93. * CTRLCreate()
  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. CTRLCreate(
  102. ComponentInstance ctrl,
  103. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  104. /*
  105. * CTRLSetControlTitle()
  106. *
  107. * Availability:
  108. * Non-Carbon CFM: not available
  109. * CarbonLib: not available
  110. * Mac OS X: not available
  111. */
  112. EXTERN_API( ComponentResult )
  113. CTRLSetControlTitle(
  114. ComponentInstance ctrl,
  115. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
  116. /*
  117. * CTRLDisposeControl()
  118. *
  119. * Availability:
  120. * Non-Carbon CFM: not available
  121. * CarbonLib: not available
  122. * Mac OS X: not available
  123. */
  124. EXTERN_API( ComponentResult )
  125. CTRLDisposeControl(
  126. ComponentInstance ctrl,
  127. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  128. /*
  129. * CTRLHideControl()
  130. *
  131. * Availability:
  132. * Non-Carbon CFM: not available
  133. * CarbonLib: not available
  134. * Mac OS X: not available
  135. */
  136. EXTERN_API( ComponentResult )
  137. CTRLHideControl(
  138. ComponentInstance ctrl,
  139. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  140. /*
  141. * CTRLShowControl()
  142. *
  143. * Availability:
  144. * Non-Carbon CFM: not available
  145. * CarbonLib: not available
  146. * Mac OS X: not available
  147. */
  148. EXTERN_API( ComponentResult )
  149. CTRLShowControl(
  150. ComponentInstance ctrl,
  151. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
  152. /*
  153. * CTRLDraw1Control()
  154. *
  155. * Availability:
  156. * Non-Carbon CFM: not available
  157. * CarbonLib: not available
  158. * Mac OS X: not available
  159. */
  160. EXTERN_API( ComponentResult )
  161. CTRLDraw1Control(
  162. ComponentInstance ctrl,
  163. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0009, 0x7000, 0xA82A);
  164. /*
  165. * CTRLHiliteControl()
  166. *
  167. * Availability:
  168. * Non-Carbon CFM: not available
  169. * CarbonLib: not available
  170. * Mac OS X: not available
  171. */
  172. EXTERN_API( ComponentResult )
  173. CTRLHiliteControl(
  174. ComponentInstance ctrl,
  175. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  176. /*
  177. * CTRLMoveControl()
  178. *
  179. * Availability:
  180. * Non-Carbon CFM: not available
  181. * CarbonLib: not available
  182. * Mac OS X: not available
  183. */
  184. EXTERN_API( ComponentResult )
  185. CTRLMoveControl(
  186. ComponentInstance ctrl,
  187. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
  188. /*
  189. * CTRLSizeControl()
  190. *
  191. * Availability:
  192. * Non-Carbon CFM: not available
  193. * CarbonLib: not available
  194. * Mac OS X: not available
  195. */
  196. EXTERN_API( ComponentResult )
  197. CTRLSizeControl(
  198. ComponentInstance ctrl,
  199. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  200. /*
  201. * CTRLSetControlValue()
  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. CTRLSetControlValue(
  210. ComponentInstance ctrl,
  211. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  212. /*
  213. * CTRLSetControlMinimum()
  214. *
  215. * Availability:
  216. * Non-Carbon CFM: not available
  217. * CarbonLib: not available
  218. * Mac OS X: not available
  219. */
  220. EXTERN_API( ComponentResult )
  221. CTRLSetControlMinimum(
  222. ComponentInstance ctrl,
  223. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000E, 0x7000, 0xA82A);
  224. /*
  225. * CTRLSetControlMaximum()
  226. *
  227. * Availability:
  228. * Non-Carbon CFM: not available
  229. * CarbonLib: not available
  230. * Mac OS X: not available
  231. */
  232. EXTERN_API( ComponentResult )
  233. CTRLSetControlMaximum(
  234. ComponentInstance ctrl,
  235. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  236. /*
  237. * CTRLHaveFocus()
  238. *
  239. * Availability:
  240. * Non-Carbon CFM: not available
  241. * CarbonLib: not available
  242. * Mac OS X: not available
  243. */
  244. EXTERN_API( ComponentResult )
  245. CTRLHaveFocus(
  246. ComponentInstance ctrl,
  247. short * haveFocus) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0010, 0x7000, 0xA82A);
  248. /*
  249. * CTRLSetPreFilterProc()
  250. *
  251. * Availability:
  252. * Non-Carbon CFM: not available
  253. * CarbonLib: not available
  254. * Mac OS X: not available
  255. */
  256. EXTERN_API( ComponentResult )
  257. CTRLSetPreFilterProc(
  258. ComponentInstance ctrl,
  259. long preFilterProc) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0011, 0x7000, 0xA82A);
  260. /*
  261. * CTRLGetPreFilterProc()
  262. *
  263. * Availability:
  264. * Non-Carbon CFM: not available
  265. * CarbonLib: not available
  266. * Mac OS X: not available
  267. */
  268. EXTERN_API( ComponentResult )
  269. CTRLGetPreFilterProc(
  270. ComponentInstance ctrl,
  271. void * preFilterProc) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  272. /*
  273. * CTRLSetText()
  274. *
  275. * Availability:
  276. * Non-Carbon CFM: not available
  277. * CarbonLib: not available
  278. * Mac OS X: not available
  279. */
  280. EXTERN_API( ComponentResult )
  281. CTRLSetText(
  282. ComponentInstance ctrl,
  283. StringPtr str) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
  284. /*
  285. * CTRLGetText()
  286. *
  287. * Availability:
  288. * Non-Carbon CFM: not available
  289. * CarbonLib: not available
  290. * Mac OS X: not available
  291. */
  292. EXTERN_API( ComponentResult )
  293. CTRLGetText(
  294. ComponentInstance ctrl,
  295. StringPtr str) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  296. /*
  297. * CTRLSelectText()
  298. *
  299. * Availability:
  300. * Non-Carbon CFM: not available
  301. * CarbonLib: not available
  302. * Mac OS X: not available
  303. */
  304. EXTERN_API( ComponentResult )
  305. CTRLSelectText(
  306. ComponentInstance ctrl,
  307. short startSel,
  308. short endSel) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  309. /*
  310. * CTRLSetDefaultItem()
  311. *
  312. * Availability:
  313. * Non-Carbon CFM: not available
  314. * CarbonLib: not available
  315. * Mac OS X: not available
  316. */
  317. EXTERN_API( ComponentResult )
  318. CTRLSetDefaultItem(ComponentInstance ctrl) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0016, 0x7000, 0xA82A);
  319. /*
  320. * CTRLSetDrawProc()
  321. *
  322. * Availability:
  323. * Non-Carbon CFM: not available
  324. * CarbonLib: not available
  325. * Mac OS X: not available
  326. */
  327. EXTERN_API( ComponentResult )
  328. CTRLSetDrawProc(
  329. ComponentInstance ctrl,
  330. short theItem,
  331. ProcPtr drawProc) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0017, 0x7000, 0xA82A);
  332. /*
  333. * CTRLTrackControl()
  334. *
  335. * Availability:
  336. * Non-Carbon CFM: not available
  337. * CarbonLib: not available
  338. * Mac OS X: not available
  339. */
  340. EXTERN_API( ComponentResult )
  341. CTRLTrackControl(
  342. ComponentInstance ctrl,
  343. ControlHandle hControl,
  344. Point localPt,
  345. ControlActionUPP actionProc) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0018, 0x7000, 0xA82A);
  346. /*
  347. * CTRLSetFocus()
  348. *
  349. * Availability:
  350. * Non-Carbon CFM: not available
  351. * CarbonLib: not available
  352. * Mac OS X: not available
  353. */
  354. EXTERN_API( ComponentResult )
  355. CTRLSetFocus(
  356. ComponentInstance ctrl,
  357. ControlHandle hControl) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  358. /*
  359. * CTRLTestControl()
  360. *
  361. * Availability:
  362. * Non-Carbon CFM: not available
  363. * CarbonLib: not available
  364. * Mac OS X: not available
  365. */
  366. EXTERN_API( ComponentResult )
  367. CTRLTestControl(
  368. ComponentInstance ctrl,
  369. ControlHandle hControl,
  370. Point localPt) FIVEWORDINLINE(0x2F3C, 0x0008, 0x001A, 0x7000, 0xA82A);
  371. /*
  372. * CTRLSetControlData()
  373. *
  374. * Availability:
  375. * Non-Carbon CFM: not available
  376. * CarbonLib: not available
  377. * Mac OS X: not available
  378. */
  379. EXTERN_API( ComponentResult )
  380. CTRLSetControlData(
  381. ComponentInstance ctrl,
  382. ControlHandle hControl,
  383. ControlPartCode part,
  384. ResType tagName,
  385. Size size,
  386. Ptr data) FIVEWORDINLINE(0x2F3C, 0x0012, 0x001B, 0x7000, 0xA82A);
  387. /*
  388. * CTRLGetControlData()
  389. *
  390. * Availability:
  391. * Non-Carbon CFM: not available
  392. * CarbonLib: not available
  393. * Mac OS X: not available
  394. */
  395. EXTERN_API( ComponentResult )
  396. CTRLGetControlData(
  397. ComponentInstance ctrl,
  398. ControlHandle hControl,
  399. ControlPartCode part,
  400. ResType tagName,
  401. Size bufferSize,
  402. Ptr buffer,
  403. Size * actualSize) FIVEWORDINLINE(0x2F3C, 0x0016, 0x001C, 0x7000, 0xA82A);
  404. /* selectors for component calls */
  405. enum {
  406. kCTRLGetCookieSelect = 0x0001,
  407. kCTRLSetCookieSelect = 0x0002,
  408. kCTRLGetCapabilitiesSelect = 0x0003,
  409. kCTRLCreateSelect = 0x0004,
  410. kCTRLSetControlTitleSelect = 0x0005,
  411. kCTRLDisposeControlSelect = 0x0006,
  412. kCTRLHideControlSelect = 0x0007,
  413. kCTRLShowControlSelect = 0x0008,
  414. kCTRLDraw1ControlSelect = 0x0009,
  415. kCTRLHiliteControlSelect = 0x000A,
  416. kCTRLMoveControlSelect = 0x000B,
  417. kCTRLSizeControlSelect = 0x000C,
  418. kCTRLSetControlValueSelect = 0x000D,
  419. kCTRLSetControlMinimumSelect = 0x000E,
  420. kCTRLSetControlMaximumSelect = 0x000F,
  421. kCTRLHaveFocusSelect = 0x0010,
  422. kCTRLSetPreFilterProcSelect = 0x0011,
  423. kCTRLGetPreFilterProcSelect = 0x0012,
  424. kCTRLSetTextSelect = 0x0013,
  425. kCTRLGetTextSelect = 0x0014,
  426. kCTRLSelectTextSelect = 0x0015,
  427. kCTRLSetDefaultItemSelect = 0x0016,
  428. kCTRLSetDrawProcSelect = 0x0017,
  429. kCTRLTrackControlSelect = 0x0018,
  430. kCTRLSetFocusSelect = 0x0019,
  431. kCTRLTestControlSelect = 0x001A,
  432. kCTRLSetControlDataSelect = 0x001B,
  433. kCTRLGetControlDataSelect = 0x001C
  434. };
  435. #endif /* CALL_NOT_IN_CARBON */
  436. #if PRAGMA_STRUCT_ALIGN
  437. #pragma options align=reset
  438. #elif PRAGMA_STRUCT_PACKPUSH
  439. #pragma pack(pop)
  440. #elif PRAGMA_STRUCT_PACK
  441. #pragma pack()
  442. #endif
  443. #ifdef PRAGMA_IMPORT_OFF
  444. #pragma import off
  445. #elif PRAGMA_IMPORT
  446. #pragma import reset
  447. #endif
  448. #ifdef __cplusplus
  449. }
  450. #endif
  451. #endif /* __CONTROLMANAGERCOMPONENT__ */