QDOffscreen.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. {
  2. File: QD/QDOffscreen.h
  3. Contains: Quickdraw Offscreen GWorld Interfaces.
  4. Version: Quickdraw-262~1
  5. Copyright: © 1985-2008 by Apple Inc. all rights reserved.
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://bugs.freepascal.org
  9. }
  10. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2009 }
  11. {
  12. Modified for use with Free Pascal
  13. Version 308
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  17. {$mode macpas}
  18. {$modeswitch cblocks}
  19. {$packenum 1}
  20. {$macro on}
  21. {$inline on}
  22. {$calling mwpascal}
  23. unit QDOffscreen;
  24. interface
  25. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  26. {$setc GAP_INTERFACES_VERSION := $0308}
  27. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  28. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  29. {$endc}
  30. {$ifc defined CPUPOWERPC and defined CPUI386}
  31. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  32. {$endc}
  33. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  34. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  35. {$endc}
  36. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  37. {$setc __ppc__ := 1}
  38. {$elsec}
  39. {$setc __ppc__ := 0}
  40. {$endc}
  41. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  42. {$setc __ppc64__ := 1}
  43. {$elsec}
  44. {$setc __ppc64__ := 0}
  45. {$endc}
  46. {$ifc not defined __i386__ and defined CPUI386}
  47. {$setc __i386__ := 1}
  48. {$elsec}
  49. {$setc __i386__ := 0}
  50. {$endc}
  51. {$ifc not defined __x86_64__ and defined CPUX86_64}
  52. {$setc __x86_64__ := 1}
  53. {$elsec}
  54. {$setc __x86_64__ := 0}
  55. {$endc}
  56. {$ifc not defined __arm__ and defined CPUARM}
  57. {$setc __arm__ := 1}
  58. {$elsec}
  59. {$setc __arm__ := 0}
  60. {$endc}
  61. {$ifc not defined __arm64__ and defined CPUAARCH64}
  62. {$setc __arm64__ := 1}
  63. {$elsec}
  64. {$setc __arm64__ := 0}
  65. {$endc}
  66. {$ifc defined cpu64}
  67. {$setc __LP64__ := 1}
  68. {$elsec}
  69. {$setc __LP64__ := 0}
  70. {$endc}
  71. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  72. {$error Conflicting definitions for __ppc__ and __i386__}
  73. {$endc}
  74. {$ifc defined __ppc__ and __ppc__}
  75. {$setc TARGET_CPU_PPC := TRUE}
  76. {$setc TARGET_CPU_PPC64 := FALSE}
  77. {$setc TARGET_CPU_X86 := FALSE}
  78. {$setc TARGET_CPU_X86_64 := FALSE}
  79. {$setc TARGET_CPU_ARM := FALSE}
  80. {$setc TARGET_CPU_ARM64 := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_IPHONE := FALSE}
  83. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  84. {$setc TARGET_OS_EMBEDDED := FALSE}
  85. {$elifc defined __ppc64__ and __ppc64__}
  86. {$setc TARGET_CPU_PPC := FALSE}
  87. {$setc TARGET_CPU_PPC64 := TRUE}
  88. {$setc TARGET_CPU_X86 := FALSE}
  89. {$setc TARGET_CPU_X86_64 := FALSE}
  90. {$setc TARGET_CPU_ARM := FALSE}
  91. {$setc TARGET_CPU_ARM64 := FALSE}
  92. {$setc TARGET_OS_MAC := TRUE}
  93. {$setc TARGET_OS_IPHONE := FALSE}
  94. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  95. {$setc TARGET_OS_EMBEDDED := FALSE}
  96. {$elifc defined __i386__ and __i386__}
  97. {$setc TARGET_CPU_PPC := FALSE}
  98. {$setc TARGET_CPU_PPC64 := FALSE}
  99. {$setc TARGET_CPU_X86 := TRUE}
  100. {$setc TARGET_CPU_X86_64 := FALSE}
  101. {$setc TARGET_CPU_ARM := FALSE}
  102. {$setc TARGET_CPU_ARM64 := FALSE}
  103. {$ifc defined(iphonesim)}
  104. {$setc TARGET_OS_MAC := FALSE}
  105. {$setc TARGET_OS_IPHONE := TRUE}
  106. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  107. {$elsec}
  108. {$setc TARGET_OS_MAC := TRUE}
  109. {$setc TARGET_OS_IPHONE := FALSE}
  110. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  111. {$endc}
  112. {$setc TARGET_OS_EMBEDDED := FALSE}
  113. {$elifc defined __x86_64__ and __x86_64__}
  114. {$setc TARGET_CPU_PPC := FALSE}
  115. {$setc TARGET_CPU_PPC64 := FALSE}
  116. {$setc TARGET_CPU_X86 := FALSE}
  117. {$setc TARGET_CPU_X86_64 := TRUE}
  118. {$setc TARGET_CPU_ARM := FALSE}
  119. {$setc TARGET_CPU_ARM64 := FALSE}
  120. {$ifc defined(iphonesim)}
  121. {$setc TARGET_OS_MAC := FALSE}
  122. {$setc TARGET_OS_IPHONE := TRUE}
  123. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  124. {$elsec}
  125. {$setc TARGET_OS_MAC := TRUE}
  126. {$setc TARGET_OS_IPHONE := FALSE}
  127. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  128. {$endc}
  129. {$setc TARGET_OS_EMBEDDED := FALSE}
  130. {$elifc defined __arm__ and __arm__}
  131. {$setc TARGET_CPU_PPC := FALSE}
  132. {$setc TARGET_CPU_PPC64 := FALSE}
  133. {$setc TARGET_CPU_X86 := FALSE}
  134. {$setc TARGET_CPU_X86_64 := FALSE}
  135. {$setc TARGET_CPU_ARM := TRUE}
  136. {$setc TARGET_CPU_ARM64 := FALSE}
  137. { will require compiler define when/if other Apple devices with ARM cpus ship }
  138. {$setc TARGET_OS_MAC := FALSE}
  139. {$setc TARGET_OS_IPHONE := TRUE}
  140. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  141. {$setc TARGET_OS_EMBEDDED := TRUE}
  142. {$elifc defined __arm64__ and __arm64__}
  143. {$setc TARGET_CPU_PPC := FALSE}
  144. {$setc TARGET_CPU_PPC64 := FALSE}
  145. {$setc TARGET_CPU_X86 := FALSE}
  146. {$setc TARGET_CPU_X86_64 := FALSE}
  147. {$setc TARGET_CPU_ARM := FALSE}
  148. {$setc TARGET_CPU_ARM64 := TRUE}
  149. { will require compiler define when/if other Apple devices with ARM cpus ship }
  150. {$setc TARGET_OS_MAC := FALSE}
  151. {$setc TARGET_OS_IPHONE := TRUE}
  152. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  153. {$setc TARGET_OS_EMBEDDED := TRUE}
  154. {$elsec}
  155. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
  156. {$endc}
  157. {$ifc defined __LP64__ and __LP64__ }
  158. {$setc TARGET_CPU_64 := TRUE}
  159. {$elsec}
  160. {$setc TARGET_CPU_64 := FALSE}
  161. {$endc}
  162. {$ifc defined FPC_BIG_ENDIAN}
  163. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  164. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  165. {$elifc defined FPC_LITTLE_ENDIAN}
  166. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  167. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  168. {$elsec}
  169. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  170. {$endc}
  171. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  172. {$setc CALL_NOT_IN_CARBON := FALSE}
  173. {$setc OLDROUTINENAMES := FALSE}
  174. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  175. {$setc OPAQUE_UPP_TYPES := TRUE}
  176. {$setc OTCARBONAPPLICATION := TRUE}
  177. {$setc OTKERNEL := FALSE}
  178. {$setc PM_USE_SESSION_APIS := TRUE}
  179. {$setc TARGET_API_MAC_CARBON := TRUE}
  180. {$setc TARGET_API_MAC_OS8 := FALSE}
  181. {$setc TARGET_API_MAC_OSX := TRUE}
  182. {$setc TARGET_CARBON := TRUE}
  183. {$setc TARGET_CPU_68K := FALSE}
  184. {$setc TARGET_CPU_MIPS := FALSE}
  185. {$setc TARGET_CPU_SPARC := FALSE}
  186. {$setc TARGET_OS_UNIX := FALSE}
  187. {$setc TARGET_OS_WIN32 := FALSE}
  188. {$setc TARGET_RT_MAC_68881 := FALSE}
  189. {$setc TARGET_RT_MAC_CFM := FALSE}
  190. {$setc TARGET_RT_MAC_MACHO := TRUE}
  191. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  192. {$setc TYPE_BOOL := FALSE}
  193. {$setc TYPE_EXTENDED := FALSE}
  194. {$setc TYPE_LONGLONG := TRUE}
  195. uses MacTypes,MacErrors,QuickdrawTypes;
  196. {$endc} {not MACOSALLINCLUDE}
  197. {$ifc TARGET_OS_MAC}
  198. {$ALIGN POWER}
  199. {
  200. NOTE: With the exception of noNewDeviceBit and nativeEndianPixMapBit,
  201. the following definitions for the GWorldFlags parameter in NewGWorld
  202. are all obsolete on Mac OS X, and ignored.
  203. }
  204. const
  205. pixPurgeBit = 0;
  206. noNewDeviceBit = 1;
  207. useTempMemBit = 2;
  208. keepLocalBit = 3;
  209. useDistantHdwrMemBit = 4;
  210. useLocalHdwrMemBit = 5;
  211. pixelsPurgeableBit = 6;
  212. pixelsLockedBit = 7;
  213. nativeEndianPixMapBit = 8;
  214. mapPixBit = 16;
  215. newDepthBit = 17;
  216. alignPixBit = 18;
  217. newRowBytesBit = 19;
  218. reallocPixBit = 20;
  219. clipPixBit = 28;
  220. stretchPixBit = 29;
  221. ditherPixBit = 30;
  222. gwFlagErrBit = 31;
  223. const
  224. pixPurge = 1 shl pixPurgeBit;
  225. noNewDevice = 1 shl noNewDeviceBit;
  226. useTempMem = 1 shl useTempMemBit;
  227. keepLocal = 1 shl keepLocalBit;
  228. useDistantHdwrMem = 1 shl useDistantHdwrMemBit;
  229. useLocalHdwrMem = 1 shl useLocalHdwrMemBit;
  230. pixelsPurgeable = 1 shl pixelsPurgeableBit;
  231. pixelsLocked = 1 shl pixelsLockedBit;
  232. kNativeEndianPixMap = 1 shl nativeEndianPixMapBit;
  233. kAllocDirectDrawSurface = 1 shl 14;
  234. mapPix = 1 shl mapPixBit;
  235. newDepth = 1 shl newDepthBit;
  236. alignPix = 1 shl alignPixBit;
  237. newRowBytes = 1 shl newRowBytesBit;
  238. reallocPix = 1 shl reallocPixBit;
  239. clipPix = 1 shl clipPixBit;
  240. stretchPix = 1 shl stretchPixBit;
  241. ditherPix = 1 shl ditherPixBit;
  242. gwFlagErr = 1 shl gwFlagErrBit;
  243. type
  244. GWorldFlags = UNSIGNEDLONG;
  245. { Type definition of a GWorldPtr }
  246. type
  247. GWorldPtr = CGrafPtr;
  248. {$ifc not TARGET_CPU_64}
  249. {
  250. * NewGWorld() *** DEPRECATED ***
  251. *
  252. * Availability:
  253. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  254. * CarbonLib: in CarbonLib 1.0 and later
  255. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  256. }
  257. function NewGWorld( var offscreenGWorld: GWorldPtr; PixelDepth: SInt16; const (*var*) boundsRect: Rect; cTable: CTabHandle { can be NULL }; aGDevice: GDHandle { can be NULL }; flags: GWorldFlags ): QDErr; external name '_NewGWorld';
  258. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  259. { GDevice attribute bits for Carbon and QuickTime 3.0}
  260. {$endc} {not TARGET_CPU_64}
  261. const
  262. deviceIsIndirect = 1 shl 0;
  263. deviceNeedsLock = 1 shl 1;
  264. deviceIsStatic = 1 shl 2;
  265. deviceIsExternalBuffer = 1 shl 3;
  266. deviceIsDDSurface = 1 shl 4;
  267. deviceIsDCISurface = 1 shl 5;
  268. deviceIsGDISurface = 1 shl 6;
  269. deviceIsAScreen = 1 shl 7;
  270. deviceIsOverlaySurface = 1 shl 8;
  271. {$ifc TARGET_OS_WIN32}
  272. {
  273. * GetGDeviceSurface()
  274. *
  275. * Availability:
  276. * Mac OS X: not available
  277. * CarbonLib: not available
  278. * Non-Carbon CFM: not available
  279. }
  280. {
  281. * GetGDeviceAttributes()
  282. *
  283. * Availability:
  284. * Mac OS X: not available
  285. * CarbonLib: not available
  286. * Non-Carbon CFM: not available
  287. }
  288. { to allocate non-mac-rgb GWorlds use QTNewGWorld (ImageCompression.h) }
  289. {
  290. * NewGWorldFromHBITMAP()
  291. *
  292. * Availability:
  293. * Mac OS X: not available
  294. * CarbonLib: not available
  295. * Non-Carbon CFM: not available
  296. }
  297. {$endc} {TARGET_OS_WIN32}
  298. {$ifc not TARGET_CPU_64}
  299. {
  300. * NewGWorldFromPtr() *** DEPRECATED ***
  301. *
  302. * Availability:
  303. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  304. * CarbonLib: in CarbonLib 1.1 and later
  305. * Non-Carbon CFM: not available
  306. }
  307. function NewGWorldFromPtr( var offscreenGWorld: GWorldPtr; PixelFormat: UInt32; const (*var*) boundsRect: Rect; cTable: CTabHandle { can be NULL }; aGDevice: GDHandle { can be NULL }; flags: GWorldFlags; newBuffer: Ptr; rowBytes: SInt32 ): QDErr; external name '_NewGWorldFromPtr';
  308. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  309. {
  310. * LockPixels() *** DEPRECATED ***
  311. *
  312. * Availability:
  313. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  314. * CarbonLib: in CarbonLib 1.0 and later
  315. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  316. }
  317. function LockPixels( pm: PixMapHandle ): Boolean; external name '_LockPixels';
  318. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  319. {
  320. * UnlockPixels() *** DEPRECATED ***
  321. *
  322. * Availability:
  323. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  324. * CarbonLib: in CarbonLib 1.0 and later
  325. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  326. }
  327. procedure UnlockPixels( pm: PixMapHandle ); external name '_UnlockPixels';
  328. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  329. {
  330. * UpdateGWorld() *** DEPRECATED ***
  331. *
  332. * Availability:
  333. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  334. * CarbonLib: in CarbonLib 1.0 and later
  335. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  336. }
  337. function UpdateGWorld( var offscreenGWorld: GWorldPtr; pixelDepth: SInt16; const (*var*) boundsRect: Rect; cTable: CTabHandle; aGDevice: GDHandle { can be NULL }; flags: GWorldFlags ): GWorldFlags; external name '_UpdateGWorld';
  338. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  339. {
  340. * DisposeGWorld() *** DEPRECATED ***
  341. *
  342. * Availability:
  343. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  344. * CarbonLib: in CarbonLib 1.0 and later
  345. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  346. }
  347. procedure DisposeGWorld( offscreenGWorld: GWorldPtr ); external name '_DisposeGWorld';
  348. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  349. {
  350. * GetGWorld() *** DEPRECATED ***
  351. *
  352. * Availability:
  353. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  354. * CarbonLib: in CarbonLib 1.0 and later
  355. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  356. }
  357. procedure GetGWorld( var port: CGrafPtr; var gdh: GDHandle ); external name '_GetGWorld';
  358. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  359. {
  360. * SetGWorld() *** DEPRECATED ***
  361. *
  362. * Availability:
  363. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  364. * CarbonLib: in CarbonLib 1.0 and later
  365. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  366. }
  367. procedure SetGWorld( port: CGrafPtr; gdh: GDHandle ); external name '_SetGWorld';
  368. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  369. {
  370. * CTabChanged() *** DEPRECATED ***
  371. *
  372. * Availability:
  373. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  374. * CarbonLib: in CarbonLib 1.0 and later
  375. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  376. }
  377. procedure CTabChanged( ctab: CTabHandle ); external name '_CTabChanged';
  378. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  379. {
  380. * PixPatChanged() *** DEPRECATED ***
  381. *
  382. * Availability:
  383. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  384. * CarbonLib: in CarbonLib 1.0 and later
  385. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  386. }
  387. procedure PixPatChanged( ppat: PixPatHandle ); external name '_PixPatChanged';
  388. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  389. {
  390. * PortChanged() *** DEPRECATED ***
  391. *
  392. * Availability:
  393. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  394. * CarbonLib: in CarbonLib 1.0 and later
  395. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  396. }
  397. procedure PortChanged( port: GrafPtr ); external name '_PortChanged';
  398. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  399. {
  400. * GDeviceChanged() *** DEPRECATED ***
  401. *
  402. * Availability:
  403. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  404. * CarbonLib: in CarbonLib 1.0 and later
  405. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  406. }
  407. procedure GDeviceChanged( gdh: GDHandle ); external name '_GDeviceChanged';
  408. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  409. {
  410. * AllowPurgePixels() *** DEPRECATED ***
  411. *
  412. * Availability:
  413. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  414. * CarbonLib: in CarbonLib 1.0 and later
  415. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  416. }
  417. procedure AllowPurgePixels( pm: PixMapHandle ); external name '_AllowPurgePixels';
  418. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  419. {
  420. * NoPurgePixels() *** DEPRECATED ***
  421. *
  422. * Availability:
  423. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  424. * CarbonLib: in CarbonLib 1.0 and later
  425. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  426. }
  427. procedure NoPurgePixels( pm: PixMapHandle ); external name '_NoPurgePixels';
  428. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  429. {
  430. * GetPixelsState() *** DEPRECATED ***
  431. *
  432. * Availability:
  433. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  434. * CarbonLib: in CarbonLib 1.0 and later
  435. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  436. }
  437. function GetPixelsState( pm: PixMapHandle ): GWorldFlags; external name '_GetPixelsState';
  438. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  439. {
  440. * SetPixelsState() *** DEPRECATED ***
  441. *
  442. * Availability:
  443. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  444. * CarbonLib: in CarbonLib 1.0 and later
  445. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  446. }
  447. procedure SetPixelsState( pm: PixMapHandle; state: GWorldFlags ); external name '_SetPixelsState';
  448. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  449. {
  450. * GetPixBaseAddr()
  451. *
  452. * Availability:
  453. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
  454. * CarbonLib: in CarbonLib 1.0 and later
  455. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  456. }
  457. function GetPixBaseAddr( pm: PixMapHandle ): Ptr; external name '_GetPixBaseAddr';
  458. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  459. {
  460. * GetPixRowBytes() *** DEPRECATED ***
  461. *
  462. * Availability:
  463. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  464. * CarbonLib: in CarbonLib 1.0 and later
  465. * Non-Carbon CFM: in InterfaceLib 8.5 and later
  466. }
  467. function GetPixRowBytes( pm: PixMapHandle ): SInt32; external name '_GetPixRowBytes';
  468. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  469. {
  470. * NewScreenBuffer() *** DEPRECATED ***
  471. *
  472. * Availability:
  473. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  474. * CarbonLib: in CarbonLib 1.0 and later
  475. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  476. }
  477. function NewScreenBuffer( const (*var*) globalRect: Rect; purgeable: Boolean; var gdh: GDHandle; var offscreenPixMap: PixMapHandle ): QDErr; external name '_NewScreenBuffer';
  478. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  479. {
  480. * DisposeScreenBuffer() *** DEPRECATED ***
  481. *
  482. * Availability:
  483. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  484. * CarbonLib: in CarbonLib 1.0 and later
  485. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  486. }
  487. procedure DisposeScreenBuffer( offscreenPixMap: PixMapHandle ); external name '_DisposeScreenBuffer';
  488. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  489. {
  490. * GetGWorldDevice() *** DEPRECATED ***
  491. *
  492. * Availability:
  493. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  494. * CarbonLib: in CarbonLib 1.0 and later
  495. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  496. }
  497. function GetGWorldDevice( offscreenGWorld: GWorldPtr ): GDHandle; external name '_GetGWorldDevice';
  498. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  499. {
  500. * QDDone() *** DEPRECATED ***
  501. *
  502. * Availability:
  503. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  504. * CarbonLib: in CarbonLib 1.0 and later
  505. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  506. }
  507. function QDDone( port: GrafPtr ): Boolean; external name '_QDDone';
  508. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  509. {
  510. * OffscreenVersion() *** DEPRECATED ***
  511. *
  512. * Availability:
  513. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  514. * CarbonLib: in CarbonLib 1.0 and later
  515. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  516. }
  517. function OffscreenVersion: SInt32; external name '_OffscreenVersion';
  518. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  519. {
  520. * NewTempScreenBuffer() *** DEPRECATED ***
  521. *
  522. * Availability:
  523. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  524. * CarbonLib: in CarbonLib 1.0 and later
  525. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  526. }
  527. function NewTempScreenBuffer( const (*var*) globalRect: Rect; purgeable: Boolean; var gdh: GDHandle; var offscreenPixMap: PixMapHandle ): QDErr; external name '_NewTempScreenBuffer';
  528. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  529. {
  530. * PixMap32Bit() *** DEPRECATED ***
  531. *
  532. * Availability:
  533. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  534. * CarbonLib: in CarbonLib 1.0 and later
  535. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  536. }
  537. function PixMap32Bit( pmHandle: PixMapHandle ): Boolean; external name '_PixMap32Bit';
  538. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  539. {
  540. * GetGWorldPixMap() *** DEPRECATED ***
  541. *
  542. * Availability:
  543. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  544. * CarbonLib: in CarbonLib 1.0 and later
  545. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  546. }
  547. function GetGWorldPixMap( offscreenGWorld: GWorldPtr ): PixMapHandle; external name '_GetGWorldPixMap';
  548. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  549. {$endc} {not TARGET_CPU_64}
  550. {$endc} {TARGET_OS_MAC}
  551. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  552. end.
  553. {$endc} {not MACOSALLINCLUDE}