QDOffscreen.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  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. {$IFNDEF FPC_DOTTEDUNITS}
  24. unit QDOffscreen;
  25. {$ENDIF FPC_DOTTEDUNITS}
  26. interface
  27. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  28. {$setc GAP_INTERFACES_VERSION := $0308}
  29. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  30. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  31. {$endc}
  32. {$ifc defined CPUPOWERPC and defined CPUI386}
  33. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  34. {$endc}
  35. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  36. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  37. {$endc}
  38. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  39. {$setc __ppc__ := 1}
  40. {$elsec}
  41. {$setc __ppc__ := 0}
  42. {$endc}
  43. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  44. {$setc __ppc64__ := 1}
  45. {$elsec}
  46. {$setc __ppc64__ := 0}
  47. {$endc}
  48. {$ifc not defined __i386__ and defined CPUI386}
  49. {$setc __i386__ := 1}
  50. {$elsec}
  51. {$setc __i386__ := 0}
  52. {$endc}
  53. {$ifc not defined __x86_64__ and defined CPUX86_64}
  54. {$setc __x86_64__ := 1}
  55. {$elsec}
  56. {$setc __x86_64__ := 0}
  57. {$endc}
  58. {$ifc not defined __arm__ and defined CPUARM}
  59. {$setc __arm__ := 1}
  60. {$elsec}
  61. {$setc __arm__ := 0}
  62. {$endc}
  63. {$ifc not defined __arm64__ and defined CPUAARCH64}
  64. {$setc __arm64__ := 1}
  65. {$elsec}
  66. {$setc __arm64__ := 0}
  67. {$endc}
  68. {$ifc defined cpu64}
  69. {$setc __LP64__ := 1}
  70. {$elsec}
  71. {$setc __LP64__ := 0}
  72. {$endc}
  73. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  74. {$error Conflicting definitions for __ppc__ and __i386__}
  75. {$endc}
  76. {$ifc defined __ppc__ and __ppc__}
  77. {$setc TARGET_CPU_PPC := TRUE}
  78. {$setc TARGET_CPU_PPC64 := FALSE}
  79. {$setc TARGET_CPU_X86 := FALSE}
  80. {$setc TARGET_CPU_X86_64 := FALSE}
  81. {$setc TARGET_CPU_ARM := FALSE}
  82. {$setc TARGET_CPU_ARM64 := FALSE}
  83. {$setc TARGET_OS_MAC := TRUE}
  84. {$setc TARGET_OS_IPHONE := FALSE}
  85. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  86. {$setc TARGET_OS_EMBEDDED := FALSE}
  87. {$elifc defined __ppc64__ and __ppc64__}
  88. {$setc TARGET_CPU_PPC := FALSE}
  89. {$setc TARGET_CPU_PPC64 := TRUE}
  90. {$setc TARGET_CPU_X86 := FALSE}
  91. {$setc TARGET_CPU_X86_64 := FALSE}
  92. {$setc TARGET_CPU_ARM := FALSE}
  93. {$setc TARGET_CPU_ARM64 := FALSE}
  94. {$setc TARGET_OS_MAC := TRUE}
  95. {$setc TARGET_OS_IPHONE := FALSE}
  96. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  97. {$setc TARGET_OS_EMBEDDED := FALSE}
  98. {$elifc defined __i386__ and __i386__}
  99. {$setc TARGET_CPU_PPC := FALSE}
  100. {$setc TARGET_CPU_PPC64 := FALSE}
  101. {$setc TARGET_CPU_X86 := TRUE}
  102. {$setc TARGET_CPU_X86_64 := FALSE}
  103. {$setc TARGET_CPU_ARM := FALSE}
  104. {$setc TARGET_CPU_ARM64 := FALSE}
  105. {$ifc defined iphonesim}
  106. {$setc TARGET_OS_MAC := FALSE}
  107. {$setc TARGET_OS_IPHONE := TRUE}
  108. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  109. {$elsec}
  110. {$setc TARGET_OS_MAC := TRUE}
  111. {$setc TARGET_OS_IPHONE := FALSE}
  112. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  113. {$endc}
  114. {$setc TARGET_OS_EMBEDDED := FALSE}
  115. {$elifc defined __x86_64__ and __x86_64__}
  116. {$setc TARGET_CPU_PPC := FALSE}
  117. {$setc TARGET_CPU_PPC64 := FALSE}
  118. {$setc TARGET_CPU_X86 := FALSE}
  119. {$setc TARGET_CPU_X86_64 := TRUE}
  120. {$setc TARGET_CPU_ARM := FALSE}
  121. {$setc TARGET_CPU_ARM64 := FALSE}
  122. {$ifc defined iphonesim}
  123. {$setc TARGET_OS_MAC := FALSE}
  124. {$setc TARGET_OS_IPHONE := TRUE}
  125. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  126. {$elsec}
  127. {$setc TARGET_OS_MAC := TRUE}
  128. {$setc TARGET_OS_IPHONE := FALSE}
  129. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  130. {$endc}
  131. {$setc TARGET_OS_EMBEDDED := FALSE}
  132. {$elifc defined __arm__ and __arm__}
  133. {$setc TARGET_CPU_PPC := FALSE}
  134. {$setc TARGET_CPU_PPC64 := FALSE}
  135. {$setc TARGET_CPU_X86 := FALSE}
  136. {$setc TARGET_CPU_X86_64 := FALSE}
  137. {$setc TARGET_CPU_ARM := TRUE}
  138. {$setc TARGET_CPU_ARM64 := FALSE}
  139. {$setc TARGET_OS_MAC := FALSE}
  140. {$setc TARGET_OS_IPHONE := TRUE}
  141. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  142. {$setc TARGET_OS_EMBEDDED := TRUE}
  143. {$elifc defined __arm64__ and __arm64__}
  144. {$setc TARGET_CPU_PPC := FALSE}
  145. {$setc TARGET_CPU_PPC64 := FALSE}
  146. {$setc TARGET_CPU_X86 := FALSE}
  147. {$setc TARGET_CPU_X86_64 := FALSE}
  148. {$setc TARGET_CPU_ARM := FALSE}
  149. {$setc TARGET_CPU_ARM64 := TRUE}
  150. {$ifc defined ios}
  151. {$setc TARGET_OS_MAC := FALSE}
  152. {$setc TARGET_OS_IPHONE := TRUE}
  153. {$setc TARGET_OS_EMBEDDED := TRUE}
  154. {$elsec}
  155. {$setc TARGET_OS_MAC := TRUE}
  156. {$setc TARGET_OS_IPHONE := FALSE}
  157. {$setc TARGET_OS_EMBEDDED := FALSE}
  158. {$endc}
  159. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  160. {$elsec}
  161. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
  162. {$endc}
  163. {$ifc defined __LP64__ and __LP64__ }
  164. {$setc TARGET_CPU_64 := TRUE}
  165. {$elsec}
  166. {$setc TARGET_CPU_64 := FALSE}
  167. {$endc}
  168. {$ifc defined FPC_BIG_ENDIAN}
  169. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  170. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  171. {$elifc defined FPC_LITTLE_ENDIAN}
  172. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  173. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  174. {$elsec}
  175. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  176. {$endc}
  177. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  178. {$setc CALL_NOT_IN_CARBON := FALSE}
  179. {$setc OLDROUTINENAMES := FALSE}
  180. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  181. {$setc OPAQUE_UPP_TYPES := TRUE}
  182. {$setc OTCARBONAPPLICATION := TRUE}
  183. {$setc OTKERNEL := FALSE}
  184. {$setc PM_USE_SESSION_APIS := TRUE}
  185. {$setc TARGET_API_MAC_CARBON := TRUE}
  186. {$setc TARGET_API_MAC_OS8 := FALSE}
  187. {$setc TARGET_API_MAC_OSX := TRUE}
  188. {$setc TARGET_CARBON := TRUE}
  189. {$setc TARGET_CPU_68K := FALSE}
  190. {$setc TARGET_CPU_MIPS := FALSE}
  191. {$setc TARGET_CPU_SPARC := FALSE}
  192. {$setc TARGET_OS_UNIX := FALSE}
  193. {$setc TARGET_OS_WIN32 := FALSE}
  194. {$setc TARGET_RT_MAC_68881 := FALSE}
  195. {$setc TARGET_RT_MAC_CFM := FALSE}
  196. {$setc TARGET_RT_MAC_MACHO := TRUE}
  197. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  198. {$setc TYPE_BOOL := FALSE}
  199. {$setc TYPE_EXTENDED := FALSE}
  200. {$setc TYPE_LONGLONG := TRUE}
  201. {$IFDEF FPC_DOTTEDUNITS}
  202. uses MacOsApi.MacTypes,MacOsApi.MacErrors,MacOsApi.QuickdrawTypes;
  203. {$ELSE FPC_DOTTEDUNITS}
  204. uses MacTypes,MacErrors,QuickdrawTypes;
  205. {$ENDIF FPC_DOTTEDUNITS}
  206. {$endc} {not MACOSALLINCLUDE}
  207. {$ifc TARGET_OS_MAC}
  208. {$ALIGN POWER}
  209. {
  210. NOTE: With the exception of noNewDeviceBit and nativeEndianPixMapBit,
  211. the following definitions for the GWorldFlags parameter in NewGWorld
  212. are all obsolete on Mac OS X, and ignored.
  213. }
  214. const
  215. pixPurgeBit = 0;
  216. noNewDeviceBit = 1;
  217. useTempMemBit = 2;
  218. keepLocalBit = 3;
  219. useDistantHdwrMemBit = 4;
  220. useLocalHdwrMemBit = 5;
  221. pixelsPurgeableBit = 6;
  222. pixelsLockedBit = 7;
  223. nativeEndianPixMapBit = 8;
  224. mapPixBit = 16;
  225. newDepthBit = 17;
  226. alignPixBit = 18;
  227. newRowBytesBit = 19;
  228. reallocPixBit = 20;
  229. clipPixBit = 28;
  230. stretchPixBit = 29;
  231. ditherPixBit = 30;
  232. gwFlagErrBit = 31;
  233. const
  234. pixPurge = 1 shl pixPurgeBit;
  235. noNewDevice = 1 shl noNewDeviceBit;
  236. useTempMem = 1 shl useTempMemBit;
  237. keepLocal = 1 shl keepLocalBit;
  238. useDistantHdwrMem = 1 shl useDistantHdwrMemBit;
  239. useLocalHdwrMem = 1 shl useLocalHdwrMemBit;
  240. pixelsPurgeable = 1 shl pixelsPurgeableBit;
  241. pixelsLocked = 1 shl pixelsLockedBit;
  242. kNativeEndianPixMap = 1 shl nativeEndianPixMapBit;
  243. kAllocDirectDrawSurface = 1 shl 14;
  244. mapPix = 1 shl mapPixBit;
  245. newDepth = 1 shl newDepthBit;
  246. alignPix = 1 shl alignPixBit;
  247. newRowBytes = 1 shl newRowBytesBit;
  248. reallocPix = 1 shl reallocPixBit;
  249. clipPix = 1 shl clipPixBit;
  250. stretchPix = 1 shl stretchPixBit;
  251. ditherPix = 1 shl ditherPixBit;
  252. gwFlagErr = 1 shl gwFlagErrBit;
  253. type
  254. GWorldFlags = UNSIGNEDLONG;
  255. { Type definition of a GWorldPtr }
  256. type
  257. GWorldPtr = CGrafPtr;
  258. {$ifc not TARGET_CPU_64}
  259. {
  260. * NewGWorld() *** DEPRECATED ***
  261. *
  262. * Availability:
  263. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  264. * CarbonLib: in CarbonLib 1.0 and later
  265. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  266. }
  267. 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';
  268. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  269. { GDevice attribute bits for Carbon and QuickTime 3.0}
  270. {$endc} {not TARGET_CPU_64}
  271. const
  272. deviceIsIndirect = 1 shl 0;
  273. deviceNeedsLock = 1 shl 1;
  274. deviceIsStatic = 1 shl 2;
  275. deviceIsExternalBuffer = 1 shl 3;
  276. deviceIsDDSurface = 1 shl 4;
  277. deviceIsDCISurface = 1 shl 5;
  278. deviceIsGDISurface = 1 shl 6;
  279. deviceIsAScreen = 1 shl 7;
  280. deviceIsOverlaySurface = 1 shl 8;
  281. {$ifc TARGET_OS_WIN32}
  282. {
  283. * GetGDeviceSurface()
  284. *
  285. * Availability:
  286. * Mac OS X: not available
  287. * CarbonLib: not available
  288. * Non-Carbon CFM: not available
  289. }
  290. {
  291. * GetGDeviceAttributes()
  292. *
  293. * Availability:
  294. * Mac OS X: not available
  295. * CarbonLib: not available
  296. * Non-Carbon CFM: not available
  297. }
  298. { to allocate non-mac-rgb GWorlds use QTNewGWorld (ImageCompression.h) }
  299. {
  300. * NewGWorldFromHBITMAP()
  301. *
  302. * Availability:
  303. * Mac OS X: not available
  304. * CarbonLib: not available
  305. * Non-Carbon CFM: not available
  306. }
  307. {$endc} {TARGET_OS_WIN32}
  308. {$ifc not TARGET_CPU_64}
  309. {
  310. * NewGWorldFromPtr() *** 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.1 and later
  315. * Non-Carbon CFM: not available
  316. }
  317. 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';
  318. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  319. {
  320. * LockPixels() *** 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. function LockPixels( pm: PixMapHandle ): Boolean; external name '_LockPixels';
  328. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  329. {
  330. * UnlockPixels() *** 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. procedure UnlockPixels( pm: PixMapHandle ); external name '_UnlockPixels';
  338. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  339. {
  340. * UpdateGWorld() *** 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. function UpdateGWorld( var offscreenGWorld: GWorldPtr; pixelDepth: SInt16; const (*var*) boundsRect: Rect; cTable: CTabHandle; aGDevice: GDHandle { can be NULL }; flags: GWorldFlags ): GWorldFlags; external name '_UpdateGWorld';
  348. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  349. {
  350. * DisposeGWorld() *** 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 DisposeGWorld( offscreenGWorld: GWorldPtr ); external name '_DisposeGWorld';
  358. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  359. {
  360. * GetGWorld() *** 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 GetGWorld( var port: CGrafPtr; var gdh: GDHandle ); external name '_GetGWorld';
  368. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  369. {
  370. * SetGWorld() *** 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 SetGWorld( port: CGrafPtr; gdh: GDHandle ); external name '_SetGWorld';
  378. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  379. {
  380. * CTabChanged() *** 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 CTabChanged( ctab: CTabHandle ); external name '_CTabChanged';
  388. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  389. {
  390. * PixPatChanged() *** 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 PixPatChanged( ppat: PixPatHandle ); external name '_PixPatChanged';
  398. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  399. {
  400. * PortChanged() *** 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 PortChanged( port: GrafPtr ); external name '_PortChanged';
  408. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  409. {
  410. * GDeviceChanged() *** 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 GDeviceChanged( gdh: GDHandle ); external name '_GDeviceChanged';
  418. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  419. {
  420. * AllowPurgePixels() *** 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 AllowPurgePixels( pm: PixMapHandle ); external name '_AllowPurgePixels';
  428. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  429. {
  430. * NoPurgePixels() *** 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. procedure NoPurgePixels( pm: PixMapHandle ); external name '_NoPurgePixels';
  438. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  439. {
  440. * GetPixelsState() *** 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. function GetPixelsState( pm: PixMapHandle ): GWorldFlags; external name '_GetPixelsState';
  448. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  449. {
  450. * SetPixelsState() *** DEPRECATED ***
  451. *
  452. * Availability:
  453. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  454. * CarbonLib: in CarbonLib 1.0 and later
  455. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  456. }
  457. procedure SetPixelsState( pm: PixMapHandle; state: GWorldFlags ); external name '_SetPixelsState';
  458. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  459. {
  460. * GetPixBaseAddr()
  461. *
  462. * Availability:
  463. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only]
  464. * CarbonLib: in CarbonLib 1.0 and later
  465. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  466. }
  467. function GetPixBaseAddr( pm: PixMapHandle ): Ptr; external name '_GetPixBaseAddr';
  468. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  469. {
  470. * GetPixRowBytes() *** 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 8.5 and later
  476. }
  477. function GetPixRowBytes( pm: PixMapHandle ): SInt32; external name '_GetPixRowBytes';
  478. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  479. {
  480. * NewScreenBuffer() *** 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. function NewScreenBuffer( const (*var*) globalRect: Rect; purgeable: Boolean; var gdh: GDHandle; var offscreenPixMap: PixMapHandle ): QDErr; external name '_NewScreenBuffer';
  488. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  489. {
  490. * DisposeScreenBuffer() *** 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. procedure DisposeScreenBuffer( offscreenPixMap: PixMapHandle ); external name '_DisposeScreenBuffer';
  498. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  499. {
  500. * GetGWorldDevice() *** 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 GetGWorldDevice( offscreenGWorld: GWorldPtr ): GDHandle; external name '_GetGWorldDevice';
  508. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  509. {
  510. * QDDone() *** 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 QDDone( port: GrafPtr ): Boolean; external name '_QDDone';
  518. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  519. {
  520. * OffscreenVersion() *** 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 OffscreenVersion: SInt32; external name '_OffscreenVersion';
  528. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  529. {
  530. * NewTempScreenBuffer() *** 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 NewTempScreenBuffer( const (*var*) globalRect: Rect; purgeable: Boolean; var gdh: GDHandle; var offscreenPixMap: PixMapHandle ): QDErr; external name '_NewTempScreenBuffer';
  538. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  539. {
  540. * PixMap32Bit() *** 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 PixMap32Bit( pmHandle: PixMapHandle ): Boolean; external name '_PixMap32Bit';
  548. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  549. {
  550. * GetGWorldPixMap() *** DEPRECATED ***
  551. *
  552. * Availability:
  553. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  554. * CarbonLib: in CarbonLib 1.0 and later
  555. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  556. }
  557. function GetGWorldPixMap( offscreenGWorld: GWorldPtr ): PixMapHandle; external name '_GetGWorldPixMap';
  558. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  559. {$endc} {not TARGET_CPU_64}
  560. {$endc} {TARGET_OS_MAC}
  561. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  562. end.
  563. {$endc} {not MACOSALLINCLUDE}