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.

1492 lines
39 KiB

  1. /*
  2. File: Lists.h
  3. Contains: List Manager Interfaces.
  4. Version: QuickTime 7.3
  5. Copyright: (c) 2007 (c) 1985-2001 by Apple Computer, Inc., all rights reserved
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://developer.apple.com/bugreporter/
  9. */
  10. #ifndef __LISTS__
  11. #define __LISTS__
  12. #ifndef __MACTYPES__
  13. #include <MacTypes.h>
  14. #endif
  15. #ifndef __CONTROLS__
  16. #include <Controls.h>
  17. #endif
  18. #if PRAGMA_ONCE
  19. #pragma once
  20. #endif
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #if PRAGMA_IMPORT
  25. #pragma import on
  26. #endif
  27. #if PRAGMA_STRUCT_ALIGN
  28. #pragma options align=mac68k
  29. #elif PRAGMA_STRUCT_PACKPUSH
  30. #pragma pack(push, 2)
  31. #elif PRAGMA_STRUCT_PACK
  32. #pragma pack(2)
  33. #endif
  34. typedef Point Cell;
  35. typedef Rect ListBounds;
  36. typedef char DataArray[32001];
  37. typedef char * DataPtr;
  38. typedef DataPtr * DataHandle;
  39. typedef CALLBACK_API( short , ListSearchProcPtr )(Ptr aPtr, Ptr bPtr, short aLen, short bLen);
  40. typedef CALLBACK_API_REGISTER68K( Boolean , ListClickLoopProcPtr, (void) );
  41. typedef STACK_UPP_TYPE(ListSearchProcPtr) ListSearchUPP;
  42. typedef REGISTER_UPP_TYPE(ListClickLoopProcPtr) ListClickLoopUPP;
  43. #if !TARGET_OS_MAC
  44. /* QuickTime 3.0 */
  45. typedef long ListNotification;
  46. enum {
  47. listNotifyNothing = FOUR_CHAR_CODE('nada'), /* No (null) notification*/
  48. listNotifyClick = FOUR_CHAR_CODE('clik'), /* Control was clicked*/
  49. listNotifyDoubleClick = FOUR_CHAR_CODE('dblc'), /* Control was double-clicked*/
  50. listNotifyPreClick = FOUR_CHAR_CODE('pclk') /* Control about to be clicked*/
  51. };
  52. #endif /* !TARGET_OS_MAC */
  53. struct ListRec {
  54. Rect rView; /* in Carbon use Get/SetListViewBounds*/
  55. GrafPtr port; /* in Carbon use Get/SetListPort*/
  56. Point indent; /* in Carbon use Get/SetListCellIndent*/
  57. Point cellSize; /* in Carbon use Get/SetListCellSize*/
  58. ListBounds visible; /* in Carbon use GetListVisibleCells*/
  59. ControlRef vScroll; /* in Carbon use GetListVerticalScrollBar*/
  60. ControlRef hScroll; /* in Carbon use GetListHorizontalScrollBar*/
  61. SInt8 selFlags; /* in Carbon use Get/SetListSelectionFlags*/
  62. Boolean lActive; /* in Carbon use LActivate, GetListActive*/
  63. SInt8 lReserved; /* not supported in Carbon */
  64. SInt8 listFlags; /* in Carbon use Get/SetListFlags */
  65. long clikTime; /* in Carbon use Get/SetListClickTime*/
  66. Point clikLoc; /* in Carbon use GetListClickLocation*/
  67. Point mouseLoc; /* in Carbon use GetListMouseLocation*/
  68. ListClickLoopUPP lClickLoop; /* in Carbon use Get/SetListClickLoop*/
  69. Cell lastClick; /* in Carbon use SetListLastClick*/
  70. long refCon; /* in Carbon use Get/SetListRefCon*/
  71. Handle listDefProc; /* not supported in Carbon */
  72. Handle userHandle; /* in Carbon use Get/SetListUserHandle*/
  73. ListBounds dataBounds; /* in Carbon use GetListDataBounds*/
  74. DataHandle cells; /* in Carbon use LGet/SetCell*/
  75. short maxIndex; /* in Carbon use LGet/SetCell*/
  76. short cellArray[1]; /* in Carbon use LGet/SetCell*/
  77. };
  78. typedef struct ListRec ListRec;
  79. typedef ListRec * ListPtr;
  80. typedef ListPtr * ListHandle;
  81. /* ListRef is obsolete. Use ListHandle. */
  82. typedef ListHandle ListRef;
  83. enum {
  84. /* ListRec.listFlags bits*/
  85. lDrawingModeOffBit = 3,
  86. lDoVAutoscrollBit = 1,
  87. lDoHAutoscrollBit = 0
  88. };
  89. enum {
  90. /* ListRec.listFlags masks*/
  91. lDrawingModeOff = 8,
  92. lDoVAutoscroll = 2,
  93. lDoHAutoscroll = 1
  94. };
  95. enum {
  96. /* ListRec.selFlags bits*/
  97. lOnlyOneBit = 7,
  98. lExtendDragBit = 6,
  99. lNoDisjointBit = 5,
  100. lNoExtendBit = 4,
  101. lNoRectBit = 3,
  102. lUseSenseBit = 2,
  103. lNoNilHiliteBit = 1
  104. };
  105. enum {
  106. /* ListRec.selFlags masks*/
  107. lOnlyOne = -128,
  108. lExtendDrag = 64,
  109. lNoDisjoint = 32,
  110. lNoExtend = 16,
  111. lNoRect = 8,
  112. lUseSense = 4,
  113. lNoNilHilite = 2
  114. };
  115. enum {
  116. /* LDEF messages*/
  117. lInitMsg = 0,
  118. lDrawMsg = 1,
  119. lHiliteMsg = 2,
  120. lCloseMsg = 3
  121. };
  122. /*
  123. StandardIconListCellDataRec is the cell data format for
  124. use with the standard icon list (kListDefStandardIconType).
  125. */
  126. struct StandardIconListCellDataRec {
  127. Handle iconHandle;
  128. short font;
  129. short face;
  130. short size;
  131. Str255 name;
  132. };
  133. typedef struct StandardIconListCellDataRec StandardIconListCellDataRec;
  134. typedef StandardIconListCellDataRec * StandardIconListCellDataPtr;
  135. typedef CALLBACK_API( void , ListDefProcPtr )(short lMessage, Boolean lSelect, Rect *lRect, Cell lCell, short lDataOffset, short lDataLen, ListHandle lHandle);
  136. typedef STACK_UPP_TYPE(ListDefProcPtr) ListDefUPP;
  137. /*
  138. * NewListSearchUPP()
  139. *
  140. * Availability:
  141. * Non-Carbon CFM: available as macro/inline
  142. * CarbonLib: in CarbonLib 1.0 and later
  143. * Mac OS X: in version 10.0 and later
  144. */
  145. EXTERN_API_C( ListSearchUPP )
  146. NewListSearchUPP(ListSearchProcPtr userRoutine);
  147. #if !OPAQUE_UPP_TYPES
  148. enum { uppListSearchProcInfo = 0x00002BE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 2_bytes, 2_bytes) */
  149. #ifdef __cplusplus
  150. inline DEFINE_API_C(ListSearchUPP) NewListSearchUPP(ListSearchProcPtr userRoutine) { return (ListSearchUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppListSearchProcInfo, GetCurrentArchitecture()); }
  151. #else
  152. #define NewListSearchUPP(userRoutine) (ListSearchUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppListSearchProcInfo, GetCurrentArchitecture())
  153. #endif
  154. #endif
  155. /*
  156. * NewListClickLoopUPP()
  157. *
  158. * Availability:
  159. * Non-Carbon CFM: available as macro/inline
  160. * CarbonLib: in CarbonLib 1.0 and later
  161. * Mac OS X: in version 10.0 and later
  162. */
  163. EXTERN_API_C( ListClickLoopUPP )
  164. NewListClickLoopUPP(ListClickLoopProcPtr userRoutine);
  165. #if !OPAQUE_UPP_TYPES
  166. enum { uppListClickLoopProcInfo = 0x00000012 }; /* register 1_byte:D0 Func() */
  167. #ifdef __cplusplus
  168. inline DEFINE_API_C(ListClickLoopUPP) NewListClickLoopUPP(ListClickLoopProcPtr userRoutine) { return (ListClickLoopUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppListClickLoopProcInfo, GetCurrentArchitecture()); }
  169. #else
  170. #define NewListClickLoopUPP(userRoutine) (ListClickLoopUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppListClickLoopProcInfo, GetCurrentArchitecture())
  171. #endif
  172. #endif
  173. /*
  174. * NewListDefUPP()
  175. *
  176. * Availability:
  177. * Non-Carbon CFM: available as macro/inline
  178. * CarbonLib: in CarbonLib 1.0 and later
  179. * Mac OS X: in version 10.0 and later
  180. */
  181. EXTERN_API_C( ListDefUPP )
  182. NewListDefUPP(ListDefProcPtr userRoutine);
  183. #if !OPAQUE_UPP_TYPES
  184. enum { uppListDefProcInfo = 0x000EBD80 }; /* pascal no_return_value Func(2_bytes, 1_byte, 4_bytes, 4_bytes, 2_bytes, 2_bytes, 4_bytes) */
  185. #ifdef __cplusplus
  186. inline DEFINE_API_C(ListDefUPP) NewListDefUPP(ListDefProcPtr userRoutine) { return (ListDefUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppListDefProcInfo, GetCurrentArchitecture()); }
  187. #else
  188. #define NewListDefUPP(userRoutine) (ListDefUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppListDefProcInfo, GetCurrentArchitecture())
  189. #endif
  190. #endif
  191. /*
  192. * DisposeListSearchUPP()
  193. *
  194. * Availability:
  195. * Non-Carbon CFM: available as macro/inline
  196. * CarbonLib: in CarbonLib 1.0 and later
  197. * Mac OS X: in version 10.0 and later
  198. */
  199. EXTERN_API_C( void )
  200. DisposeListSearchUPP(ListSearchUPP userUPP);
  201. #if !OPAQUE_UPP_TYPES
  202. #ifdef __cplusplus
  203. inline DEFINE_API_C(void) DisposeListSearchUPP(ListSearchUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  204. #else
  205. #define DisposeListSearchUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  206. #endif
  207. #endif
  208. /*
  209. * DisposeListClickLoopUPP()
  210. *
  211. * Availability:
  212. * Non-Carbon CFM: available as macro/inline
  213. * CarbonLib: in CarbonLib 1.0 and later
  214. * Mac OS X: in version 10.0 and later
  215. */
  216. EXTERN_API_C( void )
  217. DisposeListClickLoopUPP(ListClickLoopUPP userUPP);
  218. #if !OPAQUE_UPP_TYPES
  219. #ifdef __cplusplus
  220. inline DEFINE_API_C(void) DisposeListClickLoopUPP(ListClickLoopUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  221. #else
  222. #define DisposeListClickLoopUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  223. #endif
  224. #endif
  225. /*
  226. * DisposeListDefUPP()
  227. *
  228. * Availability:
  229. * Non-Carbon CFM: available as macro/inline
  230. * CarbonLib: in CarbonLib 1.0 and later
  231. * Mac OS X: in version 10.0 and later
  232. */
  233. EXTERN_API_C( void )
  234. DisposeListDefUPP(ListDefUPP userUPP);
  235. #if !OPAQUE_UPP_TYPES
  236. #ifdef __cplusplus
  237. inline DEFINE_API_C(void) DisposeListDefUPP(ListDefUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  238. #else
  239. #define DisposeListDefUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  240. #endif
  241. #endif
  242. /*
  243. * InvokeListSearchUPP()
  244. *
  245. * Availability:
  246. * Non-Carbon CFM: available as macro/inline
  247. * CarbonLib: in CarbonLib 1.0 and later
  248. * Mac OS X: in version 10.0 and later
  249. */
  250. EXTERN_API_C( short )
  251. InvokeListSearchUPP(
  252. Ptr aPtr,
  253. Ptr bPtr,
  254. short aLen,
  255. short bLen,
  256. ListSearchUPP userUPP);
  257. #if !OPAQUE_UPP_TYPES
  258. #ifdef __cplusplus
  259. inline DEFINE_API_C(short) InvokeListSearchUPP(Ptr aPtr, Ptr bPtr, short aLen, short bLen, ListSearchUPP userUPP) { return (short)CALL_FOUR_PARAMETER_UPP(userUPP, uppListSearchProcInfo, aPtr, bPtr, aLen, bLen); }
  260. #else
  261. #define InvokeListSearchUPP(aPtr, bPtr, aLen, bLen, userUPP) (short)CALL_FOUR_PARAMETER_UPP((userUPP), uppListSearchProcInfo, (aPtr), (bPtr), (aLen), (bLen))
  262. #endif
  263. #endif
  264. /*
  265. * InvokeListClickLoopUPP()
  266. *
  267. * Availability:
  268. * Non-Carbon CFM: available as macro/inline
  269. * CarbonLib: in CarbonLib 1.0 and later
  270. * Mac OS X: in version 10.0 and later
  271. */
  272. #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  273. #pragma parameter __D0 InvokeListClickLoopUPP(__A0)
  274. #endif
  275. EXTERN_API_C( Boolean )
  276. InvokeListClickLoopUPP(ListClickLoopUPP userUPP) ONEWORDINLINE(0x4E90);
  277. #if !OPAQUE_UPP_TYPES && (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
  278. #ifdef __cplusplus
  279. inline DEFINE_API_C(Boolean) InvokeListClickLoopUPP(ListClickLoopUPP userUPP) { return (Boolean)CALL_ZERO_PARAMETER_UPP(userUPP, uppListClickLoopProcInfo); }
  280. #else
  281. #define InvokeListClickLoopUPP(userUPP) (Boolean)CALL_ZERO_PARAMETER_UPP((userUPP), uppListClickLoopProcInfo)
  282. #endif
  283. #endif
  284. /*
  285. * InvokeListDefUPP()
  286. *
  287. * Availability:
  288. * Non-Carbon CFM: available as macro/inline
  289. * CarbonLib: in CarbonLib 1.0 and later
  290. * Mac OS X: in version 10.0 and later
  291. */
  292. EXTERN_API_C( void )
  293. InvokeListDefUPP(
  294. short lMessage,
  295. Boolean lSelect,
  296. Rect * lRect,
  297. Cell lCell,
  298. short lDataOffset,
  299. short lDataLen,
  300. ListHandle lHandle,
  301. ListDefUPP userUPP);
  302. #if !OPAQUE_UPP_TYPES
  303. #ifdef __cplusplus
  304. inline DEFINE_API_C(void) InvokeListDefUPP(short lMessage, Boolean lSelect, Rect * lRect, Cell lCell, short lDataOffset, short lDataLen, ListHandle lHandle, ListDefUPP userUPP) { CALL_SEVEN_PARAMETER_UPP(userUPP, uppListDefProcInfo, lMessage, lSelect, lRect, lCell, lDataOffset, lDataLen, lHandle); }
  305. #else
  306. #define InvokeListDefUPP(lMessage, lSelect, lRect, lCell, lDataOffset, lDataLen, lHandle, userUPP) CALL_SEVEN_PARAMETER_UPP((userUPP), uppListDefProcInfo, (lMessage), (lSelect), (lRect), (lCell), (lDataOffset), (lDataLen), (lHandle))
  307. #endif
  308. #endif
  309. #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
  310. /* support for pre-Carbon UPP routines: New...Proc and Call...Proc */
  311. #define NewListSearchProc(userRoutine) NewListSearchUPP(userRoutine)
  312. #define NewListClickLoopProc(userRoutine) NewListClickLoopUPP(userRoutine)
  313. #define NewListDefProc(userRoutine) NewListDefUPP(userRoutine)
  314. #define CallListSearchProc(userRoutine, aPtr, bPtr, aLen, bLen) InvokeListSearchUPP(aPtr, bPtr, aLen, bLen, userRoutine)
  315. #define CallListClickLoopProc(userRoutine) InvokeListClickLoopUPP(userRoutine)
  316. #define CallListDefProc(userRoutine, lMessage, lSelect, lRect, lCell, lDataOffset, lDataLen, lHandle) InvokeListDefUPP(lMessage, lSelect, lRect, lCell, lDataOffset, lDataLen, lHandle, userRoutine)
  317. #endif /* CALL_NOT_IN_CARBON */
  318. enum {
  319. kListDefProcPtr = 0,
  320. kListDefUserProcType = kListDefProcPtr,
  321. kListDefStandardTextType = 1,
  322. kListDefStandardIconType = 2
  323. };
  324. typedef UInt32 ListDefType;
  325. struct ListDefSpec {
  326. ListDefType defType;
  327. union {
  328. ListDefUPP userProc;
  329. } u;
  330. };
  331. typedef struct ListDefSpec ListDefSpec;
  332. typedef ListDefSpec * ListDefSpecPtr;
  333. /*
  334. * CreateCustomList()
  335. *
  336. * Availability:
  337. * Non-Carbon CFM: not available
  338. * CarbonLib: in CarbonLib 1.0 and later
  339. * Mac OS X: in version 10.0 and later
  340. */
  341. EXTERN_API( OSStatus )
  342. CreateCustomList(
  343. const Rect * rView,
  344. const ListBounds * dataBounds,
  345. Point cellSize,
  346. const ListDefSpec * theSpec,
  347. WindowRef theWindow,
  348. Boolean drawIt,
  349. Boolean hasGrow,
  350. Boolean scrollHoriz,
  351. Boolean scrollVert,
  352. ListHandle * outList);
  353. #if !TARGET_OS_MAC
  354. /* QuickTime 3.0 */
  355. typedef CALLBACK_API( void , ListNotificationProcPtr )(ListHandle theList, ListNotification notification, long param);
  356. typedef ListNotificationProcPtr ListNotificationUPP;
  357. #if CALL_NOT_IN_CARBON
  358. /*
  359. * LSetNotificationCallback()
  360. *
  361. * Availability:
  362. * Non-Carbon CFM: not available
  363. * CarbonLib: not available
  364. * Mac OS X: not available
  365. */
  366. EXTERN_API_C( void )
  367. LSetNotificationCallback(
  368. ListNotificationProcPtr callBack,
  369. ListHandle lHandle);
  370. /*
  371. * GetListVisibleBounds()
  372. *
  373. * Availability:
  374. * Non-Carbon CFM: not available
  375. * CarbonLib: not available
  376. * Mac OS X: not available
  377. */
  378. EXTERN_API_C( void )
  379. GetListVisibleBounds(
  380. ListHandle theList,
  381. Rect * visibleBounds);
  382. #endif /* CALL_NOT_IN_CARBON */
  383. #endif /* !TARGET_OS_MAC */
  384. /*
  385. * LNew()
  386. *
  387. * Availability:
  388. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  389. * CarbonLib: in CarbonLib 1.0 and later
  390. * Mac OS X: in version 10.0 and later
  391. */
  392. EXTERN_API( ListHandle )
  393. LNew(
  394. const Rect * rView,
  395. const ListBounds * dataBounds,
  396. Point cSize,
  397. short theProc,
  398. WindowRef theWindow,
  399. Boolean drawIt,
  400. Boolean hasGrow,
  401. Boolean scrollHoriz,
  402. Boolean scrollVert) THREEWORDINLINE(0x3F3C, 0x0044, 0xA9E7);
  403. /*
  404. * LDispose()
  405. *
  406. * Availability:
  407. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  408. * CarbonLib: in CarbonLib 1.0 and later
  409. * Mac OS X: in version 10.0 and later
  410. */
  411. EXTERN_API( void )
  412. LDispose(ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0028, 0xA9E7);
  413. /*
  414. * LAddColumn()
  415. *
  416. * Availability:
  417. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  418. * CarbonLib: in CarbonLib 1.0 and later
  419. * Mac OS X: in version 10.0 and later
  420. */
  421. EXTERN_API( short )
  422. LAddColumn(
  423. short count,
  424. short colNum,
  425. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0004, 0xA9E7);
  426. /*
  427. * LAddRow()
  428. *
  429. * Availability:
  430. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  431. * CarbonLib: in CarbonLib 1.0 and later
  432. * Mac OS X: in version 10.0 and later
  433. */
  434. EXTERN_API( short )
  435. LAddRow(
  436. short count,
  437. short rowNum,
  438. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0008, 0xA9E7);
  439. /*
  440. * LDelColumn()
  441. *
  442. * Availability:
  443. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  444. * CarbonLib: in CarbonLib 1.0 and later
  445. * Mac OS X: in version 10.0 and later
  446. */
  447. EXTERN_API( void )
  448. LDelColumn(
  449. short count,
  450. short colNum,
  451. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0020, 0xA9E7);
  452. /*
  453. * LDelRow()
  454. *
  455. * Availability:
  456. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  457. * CarbonLib: in CarbonLib 1.0 and later
  458. * Mac OS X: in version 10.0 and later
  459. */
  460. EXTERN_API( void )
  461. LDelRow(
  462. short count,
  463. short rowNum,
  464. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0024, 0xA9E7);
  465. /*
  466. * LGetSelect()
  467. *
  468. * Availability:
  469. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  470. * CarbonLib: in CarbonLib 1.0 and later
  471. * Mac OS X: in version 10.0 and later
  472. */
  473. EXTERN_API( Boolean )
  474. LGetSelect(
  475. Boolean next,
  476. Cell * theCell,
  477. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x003C, 0xA9E7);
  478. /*
  479. * LLastClick()
  480. *
  481. * Availability:
  482. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  483. * CarbonLib: in CarbonLib 1.0 and later
  484. * Mac OS X: in version 10.0 and later
  485. */
  486. EXTERN_API( Cell )
  487. LLastClick(ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0040, 0xA9E7);
  488. /*
  489. * LNextCell()
  490. *
  491. * Availability:
  492. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  493. * CarbonLib: in CarbonLib 1.0 and later
  494. * Mac OS X: in version 10.0 and later
  495. */
  496. EXTERN_API( Boolean )
  497. LNextCell(
  498. Boolean hNext,
  499. Boolean vNext,
  500. Cell * theCell,
  501. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0048, 0xA9E7);
  502. /*
  503. * LSearch()
  504. *
  505. * Availability:
  506. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  507. * CarbonLib: in CarbonLib 1.0 and later
  508. * Mac OS X: in version 10.0 and later
  509. */
  510. EXTERN_API( Boolean )
  511. LSearch(
  512. const void * dataPtr,
  513. short dataLen,
  514. ListSearchUPP searchProc,
  515. Cell * theCell,
  516. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0054, 0xA9E7);
  517. /*
  518. * LSize()
  519. *
  520. * Availability:
  521. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  522. * CarbonLib: in CarbonLib 1.0 and later
  523. * Mac OS X: in version 10.0 and later
  524. */
  525. EXTERN_API( void )
  526. LSize(
  527. short listWidth,
  528. short listHeight,
  529. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0060, 0xA9E7);
  530. /*
  531. * LSetDrawingMode()
  532. *
  533. * Availability:
  534. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  535. * CarbonLib: in CarbonLib 1.0 and later
  536. * Mac OS X: in version 10.0 and later
  537. */
  538. EXTERN_API( void )
  539. LSetDrawingMode(
  540. Boolean drawIt,
  541. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x002C, 0xA9E7);
  542. /*
  543. * LScroll()
  544. *
  545. * Availability:
  546. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  547. * CarbonLib: in CarbonLib 1.0 and later
  548. * Mac OS X: in version 10.0 and later
  549. */
  550. EXTERN_API( void )
  551. LScroll(
  552. short dCols,
  553. short dRows,
  554. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0050, 0xA9E7);
  555. /*
  556. * LAutoScroll()
  557. *
  558. * Availability:
  559. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  560. * CarbonLib: in CarbonLib 1.0 and later
  561. * Mac OS X: in version 10.0 and later
  562. */
  563. EXTERN_API( void )
  564. LAutoScroll(ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0010, 0xA9E7);
  565. /*
  566. * LUpdate()
  567. *
  568. * Availability:
  569. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  570. * CarbonLib: in CarbonLib 1.0 and later
  571. * Mac OS X: in version 10.0 and later
  572. */
  573. EXTERN_API( void )
  574. LUpdate(
  575. RgnHandle theRgn,
  576. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0064, 0xA9E7);
  577. /*
  578. * LActivate()
  579. *
  580. * Availability:
  581. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  582. * CarbonLib: in CarbonLib 1.0 and later
  583. * Mac OS X: in version 10.0 and later
  584. */
  585. EXTERN_API( void )
  586. LActivate(
  587. Boolean act,
  588. ListHandle lHandle) TWOWORDINLINE(0x4267, 0xA9E7);
  589. /*
  590. * LCellSize()
  591. *
  592. * Availability:
  593. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  594. * CarbonLib: in CarbonLib 1.0 and later
  595. * Mac OS X: in version 10.0 and later
  596. */
  597. EXTERN_API( void )
  598. LCellSize(
  599. Point cSize,
  600. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0014, 0xA9E7);
  601. /*
  602. * LClick()
  603. *
  604. * Availability:
  605. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  606. * CarbonLib: in CarbonLib 1.0 and later
  607. * Mac OS X: in version 10.0 and later
  608. */
  609. EXTERN_API( Boolean )
  610. LClick(
  611. Point pt,
  612. EventModifiers modifiers,
  613. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0018, 0xA9E7);
  614. /*
  615. * LAddToCell()
  616. *
  617. * Availability:
  618. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  619. * CarbonLib: in CarbonLib 1.0 and later
  620. * Mac OS X: in version 10.0 and later
  621. */
  622. EXTERN_API( void )
  623. LAddToCell(
  624. const void * dataPtr,
  625. short dataLen,
  626. Cell theCell,
  627. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x000C, 0xA9E7);
  628. /*
  629. * LClrCell()
  630. *
  631. * Availability:
  632. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  633. * CarbonLib: in CarbonLib 1.0 and later
  634. * Mac OS X: in version 10.0 and later
  635. */
  636. EXTERN_API( void )
  637. LClrCell(
  638. Cell theCell,
  639. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x001C, 0xA9E7);
  640. /*
  641. * LGetCell()
  642. *
  643. * Availability:
  644. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  645. * CarbonLib: in CarbonLib 1.0 and later
  646. * Mac OS X: in version 10.0 and later
  647. */
  648. EXTERN_API( void )
  649. LGetCell(
  650. void * dataPtr,
  651. short * dataLen,
  652. Cell theCell,
  653. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0038, 0xA9E7);
  654. /*
  655. * LRect()
  656. *
  657. * Availability:
  658. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  659. * CarbonLib: in CarbonLib 1.0 and later
  660. * Mac OS X: in version 10.0 and later
  661. */
  662. EXTERN_API( void )
  663. LRect(
  664. Rect * cellRect,
  665. Cell theCell,
  666. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x004C, 0xA9E7);
  667. /*
  668. * LSetCell()
  669. *
  670. * Availability:
  671. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  672. * CarbonLib: in CarbonLib 1.0 and later
  673. * Mac OS X: in version 10.0 and later
  674. */
  675. EXTERN_API( void )
  676. LSetCell(
  677. const void * dataPtr,
  678. short dataLen,
  679. Cell theCell,
  680. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0058, 0xA9E7);
  681. /*
  682. * LSetSelect()
  683. *
  684. * Availability:
  685. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  686. * CarbonLib: in CarbonLib 1.0 and later
  687. * Mac OS X: in version 10.0 and later
  688. */
  689. EXTERN_API( void )
  690. LSetSelect(
  691. Boolean setIt,
  692. Cell theCell,
  693. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x005C, 0xA9E7);
  694. /*
  695. * LDraw()
  696. *
  697. * Availability:
  698. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  699. * CarbonLib: in CarbonLib 1.0 and later
  700. * Mac OS X: in version 10.0 and later
  701. */
  702. EXTERN_API( void )
  703. LDraw(
  704. Cell theCell,
  705. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0030, 0xA9E7);
  706. /*
  707. * LGetCellDataLocation()
  708. *
  709. * Availability:
  710. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  711. * CarbonLib: in CarbonLib 1.0 and later
  712. * Mac OS X: in version 10.0 and later
  713. */
  714. EXTERN_API( void )
  715. LGetCellDataLocation(
  716. short * offset,
  717. short * len,
  718. Cell theCell,
  719. ListHandle lHandle) THREEWORDINLINE(0x3F3C, 0x0034, 0xA9E7);
  720. /* Routines available in Carbon only*/
  721. /*
  722. * RegisterListDefinition()
  723. *
  724. * Summary:
  725. * Registers a binding between a resource ID and a list definition
  726. * function.
  727. *
  728. * Discussion:
  729. * In the Mac OS 8.x List Manager, a 'ldes' resource can contain an
  730. * embedded LDEF procID that is used by the List Manager as the
  731. * resource ID of an 'LDEF' resource to measure and draw the list.
  732. * Since LDEFs can no longer be packaged as code resources on
  733. * Carbon, the procID can no longer refer directly to an LDEF
  734. * resource. However, using RegisterListDefinition you can instead
  735. * specify a UniversalProcPtr pointing to code in your application
  736. * code fragment.
  737. *
  738. * Parameters:
  739. *
  740. * inResID:
  741. * An LDEF proc ID, as used in a 'ldes' resource.
  742. *
  743. * inDefSpec:
  744. * Specifies the ListDefUPP that should be used for lists with the
  745. * given LDEF procID.
  746. *
  747. * Availability:
  748. * Non-Carbon CFM: not available
  749. * CarbonLib: in CarbonLib 1.5 and later
  750. * Mac OS X: in version 10.0 and later
  751. */
  752. EXTERN_API( OSStatus )
  753. RegisterListDefinition(
  754. SInt16 inResID,
  755. ListDefSpecPtr inDefSpec);
  756. #if CALL_NOT_IN_CARBON
  757. #if CALL_NOT_IN_CARBON
  758. /*
  759. * SetListDefinitionProc()
  760. *
  761. * Availability:
  762. * Non-Carbon CFM: not available
  763. * CarbonLib: not available
  764. * Mac OS X: not available
  765. */
  766. EXTERN_API( OSErr )
  767. SetListDefinitionProc(
  768. SInt16 resID,
  769. ListDefUPP defProc);
  770. #endif /* CALL_NOT_IN_CARBON */
  771. #endif /* CALL_NOT_IN_CARBON */
  772. #if !TARGET_OS_MAC
  773. /* QuickTime 3.0 */
  774. #if CALL_NOT_IN_CARBON
  775. /*
  776. * LSetLDEF()
  777. *
  778. * Availability:
  779. * Non-Carbon CFM: not available
  780. * CarbonLib: not available
  781. * Mac OS X: not available
  782. */
  783. EXTERN_API_C( void )
  784. LSetLDEF(
  785. ListDefProcPtr proc,
  786. ListHandle lHandle);
  787. #endif /* CALL_NOT_IN_CARBON */
  788. #endif /* !TARGET_OS_MAC */
  789. #if CALL_NOT_IN_CARBON
  790. /*
  791. * laddtocell()
  792. *
  793. * Availability:
  794. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  795. * CarbonLib: not available
  796. * Mac OS X: not available
  797. */
  798. EXTERN_API_C( void )
  799. laddtocell(
  800. const void * dataPtr,
  801. short dataLen,
  802. const Cell * theCell,
  803. ListHandle lHandle);
  804. /*
  805. * lclrcell()
  806. *
  807. * Availability:
  808. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  809. * CarbonLib: not available
  810. * Mac OS X: not available
  811. */
  812. EXTERN_API_C( void )
  813. lclrcell(
  814. const Cell * theCell,
  815. ListHandle lHandle);
  816. /*
  817. * lgetcelldatalocation()
  818. *
  819. * Availability:
  820. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  821. * CarbonLib: not available
  822. * Mac OS X: not available
  823. */
  824. EXTERN_API_C( void )
  825. lgetcelldatalocation(
  826. short * offset,
  827. short * len,
  828. const Cell * theCell,
  829. ListHandle lHandle);
  830. /*
  831. * lgetcell()
  832. *
  833. * Availability:
  834. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  835. * CarbonLib: not available
  836. * Mac OS X: not available
  837. */
  838. EXTERN_API_C( void )
  839. lgetcell(
  840. void * dataPtr,
  841. short * dataLen,
  842. const Cell * theCell,
  843. ListHandle lHandle);
  844. /*
  845. * lnew()
  846. *
  847. * Availability:
  848. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  849. * CarbonLib: not available
  850. * Mac OS X: not available
  851. */
  852. EXTERN_API_C( ListHandle )
  853. lnew(
  854. const Rect * rView,
  855. const ListBounds * dataBounds,
  856. Point * cSize,
  857. short theProc,
  858. WindowRef theWindow,
  859. Boolean drawIt,
  860. Boolean hasGrow,
  861. Boolean scrollHoriz,
  862. Boolean scrollVert);
  863. /*
  864. * lrect()
  865. *
  866. * Availability:
  867. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  868. * CarbonLib: not available
  869. * Mac OS X: not available
  870. */
  871. EXTERN_API_C( void )
  872. lrect(
  873. Rect * cellRect,
  874. const Cell * theCell,
  875. ListHandle lHandle);
  876. /*
  877. * lsetcell()
  878. *
  879. * Availability:
  880. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  881. * CarbonLib: not available
  882. * Mac OS X: not available
  883. */
  884. EXTERN_API_C( void )
  885. lsetcell(
  886. const void * dataPtr,
  887. short dataLen,
  888. const Cell * theCell,
  889. ListHandle lHandle);
  890. /*
  891. * lsetselect()
  892. *
  893. * Availability:
  894. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  895. * CarbonLib: not available
  896. * Mac OS X: not available
  897. */
  898. EXTERN_API_C( void )
  899. lsetselect(
  900. Boolean setIt,
  901. const Cell * theCell,
  902. ListHandle lHandle);
  903. /*
  904. * ldraw()
  905. *
  906. * Availability:
  907. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  908. * CarbonLib: not available
  909. * Mac OS X: not available
  910. */
  911. EXTERN_API_C( void )
  912. ldraw(
  913. const Cell * theCell,
  914. ListHandle lHandle);
  915. /*
  916. * lclick()
  917. *
  918. * Availability:
  919. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  920. * CarbonLib: not available
  921. * Mac OS X: not available
  922. */
  923. EXTERN_API_C( Boolean )
  924. lclick(
  925. Point * pt,
  926. EventModifiers modifiers,
  927. ListHandle lHandle);
  928. /*
  929. * lcellsize()
  930. *
  931. * Availability:
  932. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  933. * CarbonLib: not available
  934. * Mac OS X: not available
  935. */
  936. EXTERN_API_C( void )
  937. lcellsize(
  938. Point * cSize,
  939. ListHandle lHandle);
  940. #endif /* CALL_NOT_IN_CARBON */
  941. #if OLDROUTINENAMES
  942. #define LDoDraw(drawIt, lHandle) LSetDrawingMode(drawIt, lHandle)
  943. #define LFind(offset, len, theCell, lHandle) LGetCellDataLocation(offset, len, theCell, lHandle)
  944. #if CGLUESUPPORTED
  945. #define lfind(offset, len, theCell, lHandle) lgetcelldatalocation(offset, len, theCell, lHandle)
  946. #endif
  947. #endif /* OLDROUTINENAMES */
  948. #if ACCESSOR_CALLS_ARE_FUNCTIONS
  949. /* Getters */
  950. /*
  951. * GetListViewBounds()
  952. *
  953. * Availability:
  954. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  955. * CarbonLib: in CarbonLib 1.0 and later
  956. * Mac OS X: in version 10.0 and later
  957. */
  958. EXTERN_API( Rect * )
  959. GetListViewBounds(
  960. ListHandle list,
  961. Rect * view);
  962. /*
  963. * GetListPort()
  964. *
  965. * Availability:
  966. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  967. * CarbonLib: in CarbonLib 1.0 and later
  968. * Mac OS X: in version 10.0 and later
  969. */
  970. EXTERN_API( CGrafPtr )
  971. GetListPort(ListHandle list);
  972. /*
  973. * GetListCellIndent()
  974. *
  975. * Availability:
  976. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  977. * CarbonLib: in CarbonLib 1.0 and later
  978. * Mac OS X: in version 10.0 and later
  979. */
  980. EXTERN_API( Point * )
  981. GetListCellIndent(
  982. ListHandle list,
  983. Point * indent);
  984. /*
  985. * GetListCellSize()
  986. *
  987. * Availability:
  988. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  989. * CarbonLib: in CarbonLib 1.0 and later
  990. * Mac OS X: in version 10.0 and later
  991. */
  992. EXTERN_API( Point * )
  993. GetListCellSize(
  994. ListHandle list,
  995. Point * size);
  996. /*
  997. * GetListVisibleCells()
  998. *
  999. * Availability:
  1000. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1001. * CarbonLib: in CarbonLib 1.0 and later
  1002. * Mac OS X: in version 10.0 and later
  1003. */
  1004. EXTERN_API( ListBounds * )
  1005. GetListVisibleCells(
  1006. ListHandle list,
  1007. ListBounds * visible);
  1008. /*
  1009. * GetListVerticalScrollBar()
  1010. *
  1011. * Availability:
  1012. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1013. * CarbonLib: in CarbonLib 1.0 and later
  1014. * Mac OS X: in version 10.0 and later
  1015. */
  1016. EXTERN_API( ControlRef )
  1017. GetListVerticalScrollBar(ListHandle list);
  1018. /*
  1019. * GetListHorizontalScrollBar()
  1020. *
  1021. * Availability:
  1022. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1023. * CarbonLib: in CarbonLib 1.0 and later
  1024. * Mac OS X: in version 10.0 and later
  1025. */
  1026. EXTERN_API( ControlRef )
  1027. GetListHorizontalScrollBar(ListHandle list);
  1028. /*
  1029. * GetListActive()
  1030. *
  1031. * Availability:
  1032. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1033. * CarbonLib: in CarbonLib 1.0 and later
  1034. * Mac OS X: in version 10.0 and later
  1035. */
  1036. EXTERN_API( Boolean )
  1037. GetListActive(ListHandle list);
  1038. /*
  1039. * GetListClickTime()
  1040. *
  1041. * Availability:
  1042. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1043. * CarbonLib: in CarbonLib 1.0 and later
  1044. * Mac OS X: in version 10.0 and later
  1045. */
  1046. EXTERN_API( SInt32 )
  1047. GetListClickTime(ListHandle list);
  1048. /*
  1049. * GetListClickLocation()
  1050. *
  1051. * Availability:
  1052. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1053. * CarbonLib: in CarbonLib 1.0 and later
  1054. * Mac OS X: in version 10.0 and later
  1055. */
  1056. EXTERN_API( Point * )
  1057. GetListClickLocation(
  1058. ListHandle list,
  1059. Point * click);
  1060. /*
  1061. * GetListMouseLocation()
  1062. *
  1063. * Availability:
  1064. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1065. * CarbonLib: in CarbonLib 1.0 and later
  1066. * Mac OS X: in version 10.0 and later
  1067. */
  1068. EXTERN_API( Point * )
  1069. GetListMouseLocation(
  1070. ListHandle list,
  1071. Point * mouse);
  1072. /*
  1073. * GetListClickLoop()
  1074. *
  1075. * Availability:
  1076. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1077. * CarbonLib: in CarbonLib 1.0 and later
  1078. * Mac OS X: in version 10.0 and later
  1079. */
  1080. EXTERN_API( ListClickLoopUPP )
  1081. GetListClickLoop(ListHandle list);
  1082. /*
  1083. * GetListRefCon()
  1084. *
  1085. * Availability:
  1086. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1087. * CarbonLib: in CarbonLib 1.0 and later
  1088. * Mac OS X: in version 10.0 and later
  1089. */
  1090. EXTERN_API( SInt32 )
  1091. GetListRefCon(ListHandle list);
  1092. /*
  1093. * GetListDefinition()
  1094. *
  1095. * Availability:
  1096. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1097. * CarbonLib: in CarbonLib 1.0 and later
  1098. * Mac OS X: in version 10.0 and later
  1099. */
  1100. EXTERN_API( Handle )
  1101. GetListDefinition(ListHandle list);
  1102. /*
  1103. * GetListUserHandle()
  1104. *
  1105. * Availability:
  1106. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1107. * CarbonLib: in CarbonLib 1.0 and later
  1108. * Mac OS X: in version 10.0 and later
  1109. */
  1110. EXTERN_API( Handle )
  1111. GetListUserHandle(ListHandle list);
  1112. /*
  1113. * GetListDataBounds()
  1114. *
  1115. * Availability:
  1116. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1117. * CarbonLib: in CarbonLib 1.0 and later
  1118. * Mac OS X: in version 10.0 and later
  1119. */
  1120. EXTERN_API( ListBounds * )
  1121. GetListDataBounds(
  1122. ListHandle list,
  1123. ListBounds * bounds);
  1124. /*
  1125. * GetListDataHandle()
  1126. *
  1127. * Availability:
  1128. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1129. * CarbonLib: in CarbonLib 1.0 and later
  1130. * Mac OS X: in version 10.0 and later
  1131. */
  1132. EXTERN_API( DataHandle )
  1133. GetListDataHandle(ListHandle list);
  1134. /*
  1135. * GetListFlags()
  1136. *
  1137. * Availability:
  1138. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1139. * CarbonLib: in CarbonLib 1.0 and later
  1140. * Mac OS X: in version 10.0 and later
  1141. */
  1142. EXTERN_API( OptionBits )
  1143. GetListFlags(ListHandle list);
  1144. /*
  1145. * GetListSelectionFlags()
  1146. *
  1147. * Availability:
  1148. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1149. * CarbonLib: in CarbonLib 1.0 and later
  1150. * Mac OS X: in version 10.0 and later
  1151. */
  1152. EXTERN_API( OptionBits )
  1153. GetListSelectionFlags(ListHandle list);
  1154. /* Setters */
  1155. /*
  1156. * SetListViewBounds()
  1157. *
  1158. * Availability:
  1159. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1160. * CarbonLib: in CarbonLib 1.0 and later
  1161. * Mac OS X: in version 10.0 and later
  1162. */
  1163. EXTERN_API( void )
  1164. SetListViewBounds(
  1165. ListHandle list,
  1166. const Rect * view);
  1167. /*
  1168. * SetListPort()
  1169. *
  1170. * Availability:
  1171. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1172. * CarbonLib: in CarbonLib 1.0 and later
  1173. * Mac OS X: in version 10.0 and later
  1174. */
  1175. EXTERN_API( void )
  1176. SetListPort(
  1177. ListHandle list,
  1178. CGrafPtr port);
  1179. /*
  1180. * SetListCellIndent()
  1181. *
  1182. * Availability:
  1183. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1184. * CarbonLib: in CarbonLib 1.0 and later
  1185. * Mac OS X: in version 10.0 and later
  1186. */
  1187. EXTERN_API( void )
  1188. SetListCellIndent(
  1189. ListHandle list,
  1190. Point * indent);
  1191. /*
  1192. * SetListClickTime()
  1193. *
  1194. * Availability:
  1195. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1196. * CarbonLib: in CarbonLib 1.0 and later
  1197. * Mac OS X: in version 10.0 and later
  1198. */
  1199. EXTERN_API( void )
  1200. SetListClickTime(
  1201. ListHandle list,
  1202. SInt32 time);
  1203. /*
  1204. * SetListClickLoop()
  1205. *
  1206. * Availability:
  1207. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1208. * CarbonLib: in CarbonLib 1.0 and later
  1209. * Mac OS X: in version 10.0 and later
  1210. */
  1211. EXTERN_API( void )
  1212. SetListClickLoop(
  1213. ListHandle list,
  1214. ListClickLoopUPP clickLoop);
  1215. /*
  1216. * SetListLastClick()
  1217. *
  1218. * Availability:
  1219. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1220. * CarbonLib: in CarbonLib 1.0 and later
  1221. * Mac OS X: in version 10.0 and later
  1222. */
  1223. EXTERN_API( void )
  1224. SetListLastClick(
  1225. ListHandle list,
  1226. Cell * lastClick);
  1227. /*
  1228. * SetListRefCon()
  1229. *
  1230. * Availability:
  1231. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1232. * CarbonLib: in CarbonLib 1.0 and later
  1233. * Mac OS X: in version 10.0 and later
  1234. */
  1235. EXTERN_API( void )
  1236. SetListRefCon(
  1237. ListHandle list,
  1238. SInt32 refCon);
  1239. /*
  1240. * SetListUserHandle()
  1241. *
  1242. * Availability:
  1243. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1244. * CarbonLib: in CarbonLib 1.0 and later
  1245. * Mac OS X: in version 10.0 and later
  1246. */
  1247. EXTERN_API( void )
  1248. SetListUserHandle(
  1249. ListHandle list,
  1250. Handle userHandle);
  1251. /*
  1252. * SetListFlags()
  1253. *
  1254. * Availability:
  1255. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1256. * CarbonLib: in CarbonLib 1.0 and later
  1257. * Mac OS X: in version 10.0 and later
  1258. */
  1259. EXTERN_API( void )
  1260. SetListFlags(
  1261. ListHandle list,
  1262. OptionBits listFlags);
  1263. /*
  1264. * SetListSelectionFlags()
  1265. *
  1266. * Availability:
  1267. * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later
  1268. * CarbonLib: in CarbonLib 1.0 and later
  1269. * Mac OS X: in version 10.0 and later
  1270. */
  1271. EXTERN_API( void )
  1272. SetListSelectionFlags(
  1273. ListHandle list,
  1274. OptionBits selectionFlags);
  1275. #endif /* ACCESSOR_CALLS_ARE_FUNCTIONS */
  1276. #if PRAGMA_STRUCT_ALIGN
  1277. #pragma options align=reset
  1278. #elif PRAGMA_STRUCT_PACKPUSH
  1279. #pragma pack(pop)
  1280. #elif PRAGMA_STRUCT_PACK
  1281. #pragma pack()
  1282. #endif
  1283. #ifdef PRAGMA_IMPORT_OFF
  1284. #pragma import off
  1285. #elif PRAGMA_IMPORT
  1286. #pragma import reset
  1287. #endif
  1288. #ifdef __cplusplus
  1289. }
  1290. #endif
  1291. #endif /* __LISTS__ */