Displays.pas 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628
  1. {
  2. File: QD/Displays.h
  3. Contains: Display Manager Interfaces.
  4. Version: Quickdraw-262~1
  5. Copyright: © 1993-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 Displays;
  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.QuickdrawTypes,MacOsApi.ColorSyncDeprecated,MacOsApi.AEDataModel,MacOsApi.ConditionalMacros,MacOsApi.Components,MacOsApi.Video,MacOsApi.AppleEvents,MacOsApi.Events,MacOsApi.Processes,MacOsApi.Dialogs;
  203. {$ELSE FPC_DOTTEDUNITS}
  204. uses MacTypes,QuickdrawTypes,ColorSyncDeprecated,AEDataModel,ConditionalMacros,Components,Video,AppleEvents,Events,Processes,Dialogs;
  205. {$ENDIF FPC_DOTTEDUNITS}
  206. {$endc} {not MACOSALLINCLUDE}
  207. {$ifc TARGET_OS_MAC}
  208. {$ALIGN MAC68K}
  209. {******************* DEPRECATION NOTICE *********************
  210. *
  211. * The DisplayMgr API is being deprecated, and should be replaced
  212. * by the CGDirectDisplay API in the CoreGraphics framework in
  213. * ApplicationServices.framework.
  214. *
  215. ************************************************************}
  216. type
  217. DMProcessInfoPtr = UnivPtr;
  218. DMModalFilterUPP = UnivPtr;
  219. const
  220. { AppleEvents Core Suite }
  221. kAESystemConfigNotice = FourCharCode('cnfg'); { Core Suite types }
  222. kAEDisplayNotice = FourCharCode('dspl');
  223. kAEDisplaySummary = FourCharCode('dsum');
  224. keyDMConfigVersion = FourCharCode('dmcv');
  225. keyDMConfigFlags = FourCharCode('dmcf');
  226. keyDMConfigReserved = FourCharCode('dmcr');
  227. keyDisplayID = FourCharCode('dmid');
  228. keyDisplayComponent = FourCharCode('dmdc');
  229. keyDisplayDevice = FourCharCode('dmdd');
  230. keyDisplayFlags = FourCharCode('dmdf');
  231. keyDisplayMode = FourCharCode('dmdm');
  232. keyDisplayModeReserved = FourCharCode('dmmr');
  233. keyDisplayReserved = FourCharCode('dmdr');
  234. keyDisplayMirroredId = FourCharCode('dmmi');
  235. keyDeviceFlags = FourCharCode('dddf');
  236. keyDeviceDepthMode = FourCharCode('dddm');
  237. keyDeviceRect = FourCharCode('dddr');
  238. keyPixMapRect = FourCharCode('dpdr');
  239. keyPixMapHResolution = FourCharCode('dphr');
  240. keyPixMapVResolution = FourCharCode('dpvr');
  241. keyPixMapPixelType = FourCharCode('dppt');
  242. keyPixMapPixelSize = FourCharCode('dpps');
  243. keyPixMapCmpCount = FourCharCode('dpcc');
  244. keyPixMapCmpSize = FourCharCode('dpcs');
  245. keyPixMapAlignment = FourCharCode('dppa');
  246. keyPixMapResReserved = FourCharCode('dprr');
  247. keyPixMapReserved = FourCharCode('dppr');
  248. keyPixMapColorTableSeed = FourCharCode('dpct');
  249. keySummaryMenubar = FourCharCode('dsmb');
  250. keySummaryChanges = FourCharCode('dsch');
  251. keyDisplayOldConfig = FourCharCode('dold');
  252. keyDisplayNewConfig = FourCharCode('dnew');
  253. const
  254. dmOnlyActiveDisplays = true;
  255. dmAllDisplays = false;
  256. const
  257. { DMSendDependentNotification notifyClass }
  258. kDependentNotifyClassShowCursor = FourCharCode('shcr'); { When display mgr shows a hidden cursor during an unmirror }
  259. kDependentNotifyClassDriverOverride = FourCharCode('ndrv'); { When a driver is overridden }
  260. kDependentNotifyClassDisplayMgrOverride = FourCharCode('dmgr'); { When display manager is upgraded }
  261. kDependentNotifyClassProfileChanged = FourCharCode('prof'); { When DMSetProfileByAVID is called }
  262. const
  263. { Switch Flags }
  264. kNoSwitchConfirmBit = 0; { Flag indicating that there is no need to confirm a switch to this mode }
  265. kDepthNotAvailableBit = 1; { Current depth not available in new mode }
  266. kShowModeBit = 3; { Show this mode even though it requires a confirm. }
  267. kModeNotResizeBit = 4; { Do not use this mode to resize display (for cards that mode drives a different connector). }
  268. kNeverShowModeBit = 5; { This mode should not be shown in the user interface. }
  269. { Summary Change Flags (sticky bits indicating an operation was performed)
  270. For example, moving a display then moving it back will still set the kMovedDisplayBit.
  271. }
  272. const
  273. kBeginEndConfigureBit = 0;
  274. kMovedDisplayBit = 1;
  275. kSetMainDisplayBit = 2;
  276. kSetDisplayModeBit = 3;
  277. kAddDisplayBit = 4;
  278. kRemoveDisplayBit = 5;
  279. kNewDisplayBit = 6;
  280. kDisposeDisplayBit = 7;
  281. kEnabledDisplayBit = 8;
  282. kDisabledDisplayBit = 9;
  283. kMirrorDisplayBit = 10;
  284. kUnMirrorDisplayBit = 11;
  285. const
  286. { Notification Messages for extended call back routines }
  287. kDMNotifyRequestConnectionProbe = 0; { Like kDMNotifyRequestDisplayProbe only not for smart displays (used in wake before all busses are awake) }
  288. kDMNotifyInstalled = 1; { At install time }
  289. kDMNotifyEvent = 2; { Post change time }
  290. kDMNotifyRemoved = 3; { At remove time }
  291. kDMNotifyPrep = 4; { Pre change time }
  292. kDMNotifyExtendEvent = 5; { Allow registrees to extend apple event before it is sent }
  293. kDMNotifyDependents = 6; { Minor notification check without full update }
  294. kDMNotifySuspendConfigure = 7; { Temporary end of configuration }
  295. kDMNotifyResumeConfigure = 8; { Resume configuration }
  296. kDMNotifyRequestDisplayProbe = 9; { Request smart displays re-probe (used in sleep and hot plugging) }
  297. kDMNotifyDisplayWillSleep = 10; { Mac OS X only }
  298. kDMNotifyDisplayDidWake = 11; { Mac OS X only }
  299. { Notification Flags }
  300. kExtendedNotificationProc = 1 shl 16;
  301. { types for notifyType }
  302. const
  303. kFullNotify = 0; { This is the appleevent whole nine yards notify }
  304. kFullDependencyNotify = 1; { Only sends to those who want to know about interrelated functionality (used for updating UI) }
  305. { DisplayID/DeviceID constants }
  306. const
  307. kDummyDeviceID = $00FF; { This is the ID of the dummy display, used when the last ÒrealÓ display is disabled.}
  308. kInvalidDisplayID = $0000; { This is the invalid ID}
  309. kFirstDisplayID = $0100;
  310. const
  311. { bits for panelListFlags }
  312. kAllowDuplicatesBit = 0;
  313. const
  314. { bits for nameFlags }
  315. kSuppressNumberBit = 0;
  316. kSuppressNumberMask = 1;
  317. kForceNumberBit = 1;
  318. kForceNumberMask = 2;
  319. kSuppressNameBit = 2;
  320. kSuppressNameMask = 4;
  321. { DMGetNameByAVID masks}
  322. const
  323. kDMSupressNumbersMask = 1 shl 0; { Supress the numbers and return only names}
  324. kDMForceNumbersMask = 1 shl 1; { Force numbers to always be shown (even on single display configs)}
  325. kDMSupressNameMask = 1 shl 2; { Supress the names and return only numbers.}
  326. { Constants for fidelity checks }
  327. const
  328. kNoFidelity = 0;
  329. kMinimumFidelity = 1;
  330. kDefaultFidelity = 500; { I'm just picking a number for Apple default panels and engines}
  331. kDefaultManufacturerFidelity = 1000; { I'm just picking a number for Manufacturer's panels and engines (overrides apple defaults)}
  332. const
  333. kAnyPanelType = 0; { Pass to DMNewEngineList for list of all panels (as opposed to specific types)}
  334. kAnyEngineType = 0; { Pass to DMNewEngineList for list of all engines}
  335. kAnyDeviceType = 0; { Pass to DMNewDeviceList for list of all devices}
  336. kAnyPortType = 0; { Pass to DMNewDevicePortList for list of all devices}
  337. { portListFlags for DM_NewDevicePortList }
  338. const
  339. { Should offline devices be put into the port list (such as dummy display) }
  340. kPLIncludeOfflineDevicesBit = 0;
  341. { confirmFlags for DMConfirmConfiguration }
  342. const
  343. kForceConfirmBit = 0; { Force a confirm dialog }
  344. kForceConfirmMask = 1 shl kForceConfirmBit;
  345. { Flags for displayModeFlags }
  346. const
  347. kDisplayModeListNotPreferredBit = 0;
  348. kDisplayModeListNotPreferredMask = 1 shl kDisplayModeListNotPreferredBit;
  349. { Flags for itemFlags }
  350. const
  351. kComponentListNotPreferredBit = 0;
  352. kComponentListNotPreferredMask = 1 shl kComponentListNotPreferredBit;
  353. const
  354. kDisplayTimingInfoVersionZero = 1;
  355. kDisplayTimingInfoReservedCountVersionZero = 16;
  356. kDisplayModeEntryVersionZero = 0; { displayModeVersion - original version}
  357. kDisplayModeEntryVersionOne = 1; { displayModeVersion - added displayModeOverrideInfo}
  358. const
  359. kMakeAndModelReservedCount = 4; { Number of reserved fields}
  360. { Display Gestalt for DMDisplayGestalt}
  361. const
  362. kDisplayGestaltDisplayCommunicationAttr = FourCharCode('comm');
  363. kDisplayGestaltForbidI2CMask = 1 shl 0; { Some displays have firmware problems if they get I2C communication. If this bit is set, then I2C communication is forbidden}
  364. kDisplayGestaltUseI2CPowerMask = 1 shl 1; { Some displays require I2C power settings (most use DPMS).}
  365. kDisplayGestaltCalibratorAttr = FourCharCode('cali');
  366. kDisplayGestaltBrightnessAffectsGammaMask = 1 shl 0; { Used by default calibrator (should we show brightness panel) }
  367. kDisplayGestaltViewAngleAffectsGammaMask = 1 shl 1; { Currently not used by color sync}
  368. type
  369. DMFidelityType = UInt32;
  370. {
  371. AVID is an ID for ports and devices the old DisplayID type
  372. is carried on for compatibility
  373. }
  374. type
  375. DMListType = UnivPtr;
  376. DMListIndexType = UInt32;
  377. AVPowerStateRec = VDPowerStateRec;
  378. AVPowerStateRecPtr = ^AVPowerStateRec;
  379. AVPowerStatePtr = VDPowerStateRecPtr;
  380. DMDisplayTimingInfoRecPtr = ^DMDisplayTimingInfoRec;
  381. DMDisplayTimingInfoRec = record
  382. timingInfoVersion: UInt32;
  383. timingInfoAttributes: UInt32; { Flags }
  384. timingInfoRelativeQuality: SInt32; { quality of the timing }
  385. timingInfoRelativeDefault: SInt32; { relative default of the timing }
  386. timingInfoReserved: array [0..15] of UInt32;
  387. end;
  388. type
  389. DMDisplayTimingInfoPtr = ^DMDisplayTimingInfoRec;
  390. type
  391. DMComponentListEntryRecPtr = ^DMComponentListEntryRec;
  392. DMComponentListEntryRec = record
  393. itemID: DisplayIDType; { DisplayID Manager}
  394. itemComponent: Component; { Component Manager}
  395. itemDescription: ComponentDescription; { We can always construct this if we use something beyond the compontent mgr.}
  396. itemClass: ResType; { Class of group to put this panel (eg geometry/color/etc for panels, brightness/contrast for engines, video out/sound/etc for devices)}
  397. itemFidelity: DMFidelityType; { How good is this item for the specified search?}
  398. itemSubClass: ResType; { Subclass of group to put this panel. Can use to do sub-grouping (eg volume for volume panel and mute panel)}
  399. itemSort: Point; { Set to 0 - future to sort the items in a sub group.}
  400. itemFlags: UInt32; { Set to 0 (future expansion)}
  401. itemReserved: ResType; { What kind of code does the itemReference point to (right now - kPanelEntryTypeComponentMgr only)}
  402. itemFuture1: UInt32; { Set to 0 (future expansion - probably an alternate code style)}
  403. itemFuture2: UInt32; { Set to 0 (future expansion - probably an alternate code style)}
  404. itemFuture3: UInt32; { Set to 0 (future expansion - probably an alternate code style)}
  405. itemFuture4: UInt32; { Set to 0 (future expansion - probably an alternate code style)}
  406. end;
  407. type
  408. DMComponentListEntryPtr = DMComponentListEntryRecPtr;
  409. { ¥¥¥ Move AVLocationRec to AVComponents.i AFTER AVComponents.i is created}
  410. type
  411. AVLocationRecPtr = ^AVLocationRec;
  412. AVLocationRec = record
  413. locationConstant: UInt32; { Set to 0 (future expansion - probably an alternate code style)}
  414. end;
  415. type
  416. AVLocationPtr = AVLocationRecPtr;
  417. DMDepthInfoRecPtr = ^DMDepthInfoRec;
  418. DMDepthInfoRec = record
  419. depthSwitchInfo: VDSwitchInfoPtr; { This is the switch mode to choose this timing/depth }
  420. depthVPBlock: VPBlockPtr; { VPBlock (including size, depth and format) }
  421. depthFlags: UInt32; { VDVideoParametersInfoRec.csDepthFlags }
  422. depthReserved1: UInt32; { Reserved }
  423. depthReserved2: UInt32; { Reserved }
  424. end;
  425. type
  426. DMDepthInfoPtr = DMDepthInfoRecPtr;
  427. DMDepthInfoBlockRecPtr = ^DMDepthInfoBlockRec;
  428. DMDepthInfoBlockRec = record
  429. depthBlockCount: UInt32; { How many depths are there? }
  430. depthVPBlock: DMDepthInfoPtr; { Array of DMDepthInfoRec }
  431. depthBlockFlags: UInt32; { Reserved }
  432. depthBlockReserved1: UInt32; { Reserved }
  433. depthBlockReserved2: UInt32; { Reserved }
  434. end;
  435. type
  436. DMDepthInfoBlockPtr = DMDepthInfoBlockRecPtr;
  437. DMDisplayModeListEntryRecPtr = ^DMDisplayModeListEntryRec;
  438. DMDisplayModeListEntryRec = record
  439. displayModeFlags: UInt32;
  440. displayModeSwitchInfo: VDSwitchInfoPtr;
  441. displayModeResolutionInfo: VDResolutionInfoPtr;
  442. displayModeTimingInfo: VDTimingInfoPtr;
  443. displayModeDepthBlockInfo: DMDepthInfoBlockPtr; { Information about all the depths}
  444. displayModeVersion: UInt32; { What version is this record (now kDisplayModeEntryVersionOne)}
  445. displayModeName: StringPtr; { Name of the timing mode}
  446. displayModeDisplayInfo: DMDisplayTimingInfoPtr; { Information from the display.}
  447. end;
  448. type
  449. DMDisplayModeListEntryPtr = DMDisplayModeListEntryRecPtr;
  450. type
  451. DependentNotifyRecPtr = ^DependentNotifyRec;
  452. DependentNotifyRec = record
  453. notifyType: ResType; { What type was the engine that made the change (may be zero)}
  454. notifyClass: ResType; { What class was the change (eg geometry, color etc)}
  455. notifyPortID: DisplayIDType; { Which device was touched (kInvalidDisplayID -> all or none)}
  456. notifyComponent: ComponentInstance; { What engine did it (may be 0)?}
  457. notifyVersion: UInt32; { Set to 0 (future expansion)}
  458. notifyFlags: UInt32; { Set to 0 (future expansion)}
  459. notifyReserved: UInt32; { Set to 0 (future expansion)}
  460. notifyFuture: UInt32; { Set to 0 (future expansion)}
  461. end;
  462. type
  463. DependentNotifyPtr = DependentNotifyRecPtr;
  464. type
  465. DMMakeAndModelRecPtr = ^DMMakeAndModelRec;
  466. DMMakeAndModelRec = record
  467. manufacturer: ResType;
  468. model: UInt32;
  469. serialNumber: UInt32;
  470. manufactureDate: UInt32;
  471. makeReserved: array [0..3] of UInt32;
  472. end;
  473. type
  474. DMMakeAndModelPtr = DMMakeAndModelRecPtr;
  475. { DMNewDisplayList displayListIncludeFlags}
  476. const
  477. kIncludeOnlineActiveDisplaysMask = 1 shl 0;
  478. kIncludeOnlineDisabledDisplaysMask = 1 shl 1;
  479. kIncludeOfflineDisplaysMask = 1 shl 2;
  480. kIncludeOfflineDummyDisplaysMask = 1 shl 3;
  481. kIncludeHardwareMirroredDisplaysMask = 1 shl 4;
  482. const
  483. { modeListFlags for DMNewDisplayModeList }
  484. kDMModeListIncludeAllModesMask = 1 shl 0; { Include all timing modes not _explicitly_ excluded (see other bits)}
  485. kDMModeListIncludeOfflineModesMask = 1 shl 1;
  486. kDMModeListExcludeDriverModesMask = 1 shl 2; { Exclude old-style timing modes (cscGetNextResolution/kDisplayModeIDFindFirstResolution modes)}
  487. kDMModeListExcludeDisplayModesMask = 1 shl 3; { Exclude timing modes that come from the display (always arbritrary timing modes)}
  488. kDMModeListExcludeCustomModesMask = 1 shl 4; { Exclude custom modes that came neither from the driver or display (need a better name)}
  489. kDMModeListPreferStretchedModesMask = 1 shl 5; { Prefer modes that are stretched over modes that are letterboxed when setting kDisplayModeListNotPreferredBit}
  490. kDMModeListPreferSafeModesMask = 1 shl 6; { Prefer modes that are safe over modes that are not when setting kDisplayModeListNotPreferredBit}
  491. { DMNewDisplayList displayListFlags}
  492. type
  493. DisplayListEntryRecPtr = ^DisplayListEntryRec;
  494. DisplayListEntryRec = record
  495. displayListEntryGDevice: GDHandle;
  496. displayListEntryDisplayID: DisplayIDType;
  497. displayListEntryIncludeFlags: UInt32; { Reason this entry was included}
  498. displayListEntryReserved1: UInt32;
  499. displayListEntryReserved2: UInt32; { Zero}
  500. displayListEntryReserved3: UInt32; { Zero}
  501. displayListEntryReserved4: UInt32; { Zero}
  502. displayListEntryReserved5: UInt32; { Zero}
  503. end;
  504. type
  505. DisplayListEntryPtr = DisplayListEntryRecPtr;
  506. DMProfileListEntryRecPtr = ^DMProfileListEntryRec;
  507. DMProfileListEntryRec = record
  508. profileRef: UnivPtr; { was CMProfileRef}
  509. profileReserved1: Ptr; { Reserved}
  510. profileReserved2: Ptr; { Reserved}
  511. profileReserved3: Ptr; { Reserved}
  512. end;
  513. type
  514. DMProfileListEntryPtr = DMProfileListEntryRecPtr;
  515. DMNotificationProcPtr = procedure( var theEvent: AppleEvent );
  516. DMExtendedNotificationProcPtr = procedure( userData: UnivPtr; theMessage: SInt16; notifyData: UnivPtr );
  517. DMComponentListIteratorProcPtr = procedure( userData: UnivPtr; itemIndex: DMListIndexType; componentInfo: DMComponentListEntryPtr );
  518. DMDisplayModeListIteratorProcPtr = procedure( userData: UnivPtr; itemIndex: DMListIndexType; displaymodeInfo: DMDisplayModeListEntryPtr );
  519. DMProfileListIteratorProcPtr = procedure( userData: UnivPtr; itemIndex: DMListIndexType; profileInfo: DMProfileListEntryPtr );
  520. DMDisplayListIteratorProcPtr = procedure( userData: UnivPtr; itemIndex: DMListIndexType; displaymodeInfo: DisplayListEntryPtr );
  521. DMNotificationUPP = DMNotificationProcPtr;
  522. DMExtendedNotificationUPP = DMExtendedNotificationProcPtr;
  523. DMComponentListIteratorUPP = DMComponentListIteratorProcPtr;
  524. DMDisplayModeListIteratorUPP = DMDisplayModeListIteratorProcPtr;
  525. DMProfileListIteratorUPP = DMProfileListIteratorProcPtr;
  526. DMDisplayListIteratorUPP = DMDisplayListIteratorProcPtr;
  527. {
  528. * NewDMNotificationUPP()
  529. *
  530. * Availability:
  531. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  532. * CarbonLib: in CarbonLib 1.0 and later
  533. * Non-Carbon CFM: available as macro/inline
  534. }
  535. function NewDMNotificationUPP( userRoutine: DMNotificationProcPtr ): DMNotificationUPP; external name '_NewDMNotificationUPP';
  536. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  537. {
  538. * NewDMExtendedNotificationUPP()
  539. *
  540. * Availability:
  541. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  542. * CarbonLib: in CarbonLib 1.0 and later
  543. * Non-Carbon CFM: available as macro/inline
  544. }
  545. function NewDMExtendedNotificationUPP( userRoutine: DMExtendedNotificationProcPtr ): DMExtendedNotificationUPP; external name '_NewDMExtendedNotificationUPP';
  546. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  547. {
  548. * NewDMComponentListIteratorUPP()
  549. *
  550. * Availability:
  551. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  552. * CarbonLib: in CarbonLib 1.0 and later
  553. * Non-Carbon CFM: available as macro/inline
  554. }
  555. function NewDMComponentListIteratorUPP( userRoutine: DMComponentListIteratorProcPtr ): DMComponentListIteratorUPP; external name '_NewDMComponentListIteratorUPP';
  556. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  557. {
  558. * NewDMDisplayModeListIteratorUPP()
  559. *
  560. * Availability:
  561. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  562. * CarbonLib: in CarbonLib 1.0 and later
  563. * Non-Carbon CFM: available as macro/inline
  564. }
  565. function NewDMDisplayModeListIteratorUPP( userRoutine: DMDisplayModeListIteratorProcPtr ): DMDisplayModeListIteratorUPP; external name '_NewDMDisplayModeListIteratorUPP';
  566. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  567. {
  568. * NewDMProfileListIteratorUPP()
  569. *
  570. * Availability:
  571. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  572. * CarbonLib: in CarbonLib 1.0 and later
  573. * Non-Carbon CFM: available as macro/inline
  574. }
  575. function NewDMProfileListIteratorUPP( userRoutine: DMProfileListIteratorProcPtr ): DMProfileListIteratorUPP; external name '_NewDMProfileListIteratorUPP';
  576. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  577. {
  578. * NewDMDisplayListIteratorUPP()
  579. *
  580. * Availability:
  581. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  582. * CarbonLib: in CarbonLib 1.0 and later
  583. * Non-Carbon CFM: available as macro/inline
  584. }
  585. function NewDMDisplayListIteratorUPP( userRoutine: DMDisplayListIteratorProcPtr ): DMDisplayListIteratorUPP; external name '_NewDMDisplayListIteratorUPP';
  586. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  587. {
  588. * DisposeDMNotificationUPP()
  589. *
  590. * Availability:
  591. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  592. * CarbonLib: in CarbonLib 1.0 and later
  593. * Non-Carbon CFM: available as macro/inline
  594. }
  595. procedure DisposeDMNotificationUPP( userUPP: DMNotificationUPP ); external name '_DisposeDMNotificationUPP';
  596. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  597. {
  598. * DisposeDMExtendedNotificationUPP()
  599. *
  600. * Availability:
  601. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  602. * CarbonLib: in CarbonLib 1.0 and later
  603. * Non-Carbon CFM: available as macro/inline
  604. }
  605. procedure DisposeDMExtendedNotificationUPP( userUPP: DMExtendedNotificationUPP ); external name '_DisposeDMExtendedNotificationUPP';
  606. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  607. {
  608. * DisposeDMComponentListIteratorUPP()
  609. *
  610. * Availability:
  611. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  612. * CarbonLib: in CarbonLib 1.0 and later
  613. * Non-Carbon CFM: available as macro/inline
  614. }
  615. procedure DisposeDMComponentListIteratorUPP( userUPP: DMComponentListIteratorUPP ); external name '_DisposeDMComponentListIteratorUPP';
  616. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  617. {
  618. * DisposeDMDisplayModeListIteratorUPP()
  619. *
  620. * Availability:
  621. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  622. * CarbonLib: in CarbonLib 1.0 and later
  623. * Non-Carbon CFM: available as macro/inline
  624. }
  625. procedure DisposeDMDisplayModeListIteratorUPP( userUPP: DMDisplayModeListIteratorUPP ); external name '_DisposeDMDisplayModeListIteratorUPP';
  626. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  627. {
  628. * DisposeDMProfileListIteratorUPP()
  629. *
  630. * Availability:
  631. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  632. * CarbonLib: in CarbonLib 1.0 and later
  633. * Non-Carbon CFM: available as macro/inline
  634. }
  635. procedure DisposeDMProfileListIteratorUPP( userUPP: DMProfileListIteratorUPP ); external name '_DisposeDMProfileListIteratorUPP';
  636. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  637. {
  638. * DisposeDMDisplayListIteratorUPP()
  639. *
  640. * Availability:
  641. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  642. * CarbonLib: in CarbonLib 1.0 and later
  643. * Non-Carbon CFM: available as macro/inline
  644. }
  645. procedure DisposeDMDisplayListIteratorUPP( userUPP: DMDisplayListIteratorUPP ); external name '_DisposeDMDisplayListIteratorUPP';
  646. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  647. {
  648. * InvokeDMNotificationUPP()
  649. *
  650. * Availability:
  651. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  652. * CarbonLib: in CarbonLib 1.0 and later
  653. * Non-Carbon CFM: available as macro/inline
  654. }
  655. procedure InvokeDMNotificationUPP( var theEvent: AppleEvent; userUPP: DMNotificationUPP ); external name '_InvokeDMNotificationUPP';
  656. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  657. {
  658. * InvokeDMExtendedNotificationUPP()
  659. *
  660. * Availability:
  661. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  662. * CarbonLib: in CarbonLib 1.0 and later
  663. * Non-Carbon CFM: available as macro/inline
  664. }
  665. procedure InvokeDMExtendedNotificationUPP( userData: UnivPtr; theMessage: SInt16; notifyData: UnivPtr; userUPP: DMExtendedNotificationUPP ); external name '_InvokeDMExtendedNotificationUPP';
  666. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  667. {
  668. * InvokeDMComponentListIteratorUPP()
  669. *
  670. * Availability:
  671. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  672. * CarbonLib: in CarbonLib 1.0 and later
  673. * Non-Carbon CFM: available as macro/inline
  674. }
  675. procedure InvokeDMComponentListIteratorUPP( userData: UnivPtr; itemIndex: DMListIndexType; componentInfo: DMComponentListEntryPtr; userUPP: DMComponentListIteratorUPP ); external name '_InvokeDMComponentListIteratorUPP';
  676. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  677. {
  678. * InvokeDMDisplayModeListIteratorUPP()
  679. *
  680. * Availability:
  681. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  682. * CarbonLib: in CarbonLib 1.0 and later
  683. * Non-Carbon CFM: available as macro/inline
  684. }
  685. procedure InvokeDMDisplayModeListIteratorUPP( userData: UnivPtr; itemIndex: DMListIndexType; displaymodeInfo: DMDisplayModeListEntryPtr; userUPP: DMDisplayModeListIteratorUPP ); external name '_InvokeDMDisplayModeListIteratorUPP';
  686. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  687. {
  688. * InvokeDMProfileListIteratorUPP()
  689. *
  690. * Availability:
  691. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  692. * CarbonLib: in CarbonLib 1.0 and later
  693. * Non-Carbon CFM: available as macro/inline
  694. }
  695. procedure InvokeDMProfileListIteratorUPP( userData: UnivPtr; itemIndex: DMListIndexType; profileInfo: DMProfileListEntryPtr; userUPP: DMProfileListIteratorUPP ); external name '_InvokeDMProfileListIteratorUPP';
  696. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  697. {
  698. * InvokeDMDisplayListIteratorUPP()
  699. *
  700. * Availability:
  701. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  702. * CarbonLib: in CarbonLib 1.0 and later
  703. * Non-Carbon CFM: available as macro/inline
  704. }
  705. procedure InvokeDMDisplayListIteratorUPP( userData: UnivPtr; itemIndex: DMListIndexType; displaymodeInfo: DisplayListEntryPtr; userUPP: DMDisplayListIteratorUPP ); external name '_InvokeDMDisplayListIteratorUPP';
  706. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  707. {$ifc not TARGET_CPU_64}
  708. {
  709. * DMDisplayGestalt()
  710. *
  711. * Availability:
  712. * Mac OS X: not available [32-bit only]
  713. * CarbonLib: not available
  714. * Non-Carbon CFM: in DisplayLib 2.1 and later
  715. }
  716. {
  717. * DMUseScreenPrefs()
  718. *
  719. * Availability:
  720. * Mac OS X: not available [32-bit only]
  721. * CarbonLib: not available
  722. * Non-Carbon CFM: in DisplayLib 2.1 and later
  723. }
  724. {
  725. * DMSuspendConfigure()
  726. *
  727. * Availability:
  728. * Mac OS X: not available [32-bit only]
  729. * CarbonLib: not available
  730. * Non-Carbon CFM: in DisplayLib 2.1 and later
  731. }
  732. {
  733. * DMResumeConfigure()
  734. *
  735. * Availability:
  736. * Mac OS X: not available [32-bit only]
  737. * CarbonLib: not available
  738. * Non-Carbon CFM: in DisplayLib 2.1 and later
  739. }
  740. {
  741. * DMSetGammaByAVID()
  742. *
  743. * Availability:
  744. * Mac OS X: not available [32-bit only]
  745. * CarbonLib: not available
  746. * Non-Carbon CFM: in DisplayLib 2.1 and later
  747. }
  748. {
  749. * DMGetGammaByAVID()
  750. *
  751. * Availability:
  752. * Mac OS X: not available [32-bit only]
  753. * CarbonLib: not available
  754. * Non-Carbon CFM: in DisplayLib 2.1 and later
  755. }
  756. {
  757. * DMGetMakeAndModelByAVID()
  758. *
  759. * Availability:
  760. * Mac OS X: not available [32-bit only]
  761. * CarbonLib: not available
  762. * Non-Carbon CFM: in DisplayLib 2.1 and later
  763. }
  764. {
  765. * DMNewDisplayList()
  766. *
  767. * Availability:
  768. * Mac OS X: not available [32-bit only]
  769. * CarbonLib: not available
  770. * Non-Carbon CFM: in DisplayLib 2.1 and later
  771. }
  772. {
  773. * DMGetIndexedDisplayFromList()
  774. *
  775. * Availability:
  776. * Mac OS X: not available [32-bit only]
  777. * CarbonLib: not available
  778. * Non-Carbon CFM: in DisplayLib 2.1 and later
  779. }
  780. {
  781. * DMNewProfileListByAVID()
  782. *
  783. * Availability:
  784. * Mac OS X: not available [32-bit only]
  785. * CarbonLib: not available
  786. * Non-Carbon CFM: in DisplayLib 2.1 and later
  787. }
  788. {
  789. * DMGetIndexedProfileFromList()
  790. *
  791. * Availability:
  792. * Mac OS X: not available [32-bit only]
  793. * CarbonLib: not available
  794. * Non-Carbon CFM: in DisplayLib 2.1 and later
  795. }
  796. {
  797. * DMGetFirstScreenDevice() *** DEPRECATED ***
  798. *
  799. * Availability:
  800. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  801. * CarbonLib: in CarbonLib 1.0 and later
  802. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  803. }
  804. function DMGetFirstScreenDevice( activeOnly: Boolean ): GDHandle; external name '_DMGetFirstScreenDevice';
  805. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  806. {
  807. * DMGetNextScreenDevice() *** DEPRECATED ***
  808. *
  809. * Availability:
  810. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  811. * CarbonLib: in CarbonLib 1.0 and later
  812. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  813. }
  814. function DMGetNextScreenDevice( theDevice: GDHandle; activeOnly: Boolean ): GDHandle; external name '_DMGetNextScreenDevice';
  815. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  816. {
  817. * DMDrawDesktopRect() *** DEPRECATED ***
  818. *
  819. * Availability:
  820. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  821. * CarbonLib: in CarbonLib 1.0 and later
  822. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  823. }
  824. procedure DMDrawDesktopRect( var globalRect: Rect ); external name '_DMDrawDesktopRect';
  825. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  826. {
  827. * DMDrawDesktopRegion() *** DEPRECATED ***
  828. *
  829. * Availability:
  830. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  831. * CarbonLib: in CarbonLib 1.0 and later
  832. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  833. }
  834. procedure DMDrawDesktopRegion( globalRgn: RgnHandle ); external name '_DMDrawDesktopRegion';
  835. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  836. {
  837. * DMBeginConfigureDisplays() *** DEPRECATED ***
  838. *
  839. * Availability:
  840. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  841. * CarbonLib: in CarbonLib 1.0 and later
  842. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  843. }
  844. function DMBeginConfigureDisplays( var displayState: Handle ): OSErr; external name '_DMBeginConfigureDisplays';
  845. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  846. {
  847. * DMEndConfigureDisplays() *** DEPRECATED ***
  848. *
  849. * Availability:
  850. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  851. * CarbonLib: in CarbonLib 1.0 and later
  852. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  853. }
  854. function DMEndConfigureDisplays( displayState: Handle ): OSErr; external name '_DMEndConfigureDisplays';
  855. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  856. {
  857. * DMAddDisplay() *** DEPRECATED ***
  858. *
  859. * Availability:
  860. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  861. * CarbonLib: in CarbonLib 1.0 and later
  862. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  863. }
  864. function DMAddDisplay( newDevice: GDHandle; driver: SInt16; mode: UInt32; reserved: UInt32; displayID: UInt32; displayComponent: Component; displayState: Handle ): OSErr; external name '_DMAddDisplay';
  865. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  866. {
  867. * DMMoveDisplay() *** DEPRECATED ***
  868. *
  869. * Availability:
  870. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  871. * CarbonLib: in CarbonLib 1.0 and later
  872. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  873. }
  874. function DMMoveDisplay( moveDevice: GDHandle; x: SInt16; y: SInt16; displayState: Handle ): OSErr; external name '_DMMoveDisplay';
  875. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  876. {
  877. * DMDisableDisplay() *** DEPRECATED ***
  878. *
  879. * Availability:
  880. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  881. * CarbonLib: in CarbonLib 1.0 and later
  882. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  883. }
  884. function DMDisableDisplay( disableDevice: GDHandle; displayState: Handle ): OSErr; external name '_DMDisableDisplay';
  885. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  886. {
  887. * DMEnableDisplay() *** DEPRECATED ***
  888. *
  889. * Availability:
  890. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  891. * CarbonLib: in CarbonLib 1.0 and later
  892. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  893. }
  894. function DMEnableDisplay( enableDevice: GDHandle; displayState: Handle ): OSErr; external name '_DMEnableDisplay';
  895. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  896. {
  897. * DMRemoveDisplay() *** DEPRECATED ***
  898. *
  899. * Availability:
  900. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  901. * CarbonLib: in CarbonLib 1.0 and later
  902. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  903. }
  904. function DMRemoveDisplay( removeDevice: GDHandle; displayState: Handle ): OSErr; external name '_DMRemoveDisplay';
  905. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  906. {
  907. * DMSetMainDisplay() *** DEPRECATED ***
  908. *
  909. * Availability:
  910. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  911. * CarbonLib: in CarbonLib 1.0 and later
  912. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  913. }
  914. function DMSetMainDisplay( newMainDevice: GDHandle; displayState: Handle ): OSErr; external name '_DMSetMainDisplay';
  915. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  916. {
  917. * DMSetDisplayMode() *** DEPRECATED ***
  918. *
  919. * Availability:
  920. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  921. * CarbonLib: in CarbonLib 1.0 and later
  922. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  923. }
  924. function DMSetDisplayMode( theDevice: GDHandle; mode: UInt32; var depthMode: UInt32; reserved: SIGNEDLONG; displayState: Handle ): OSErr; external name '_DMSetDisplayMode';
  925. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  926. {
  927. * DMCheckDisplayMode() *** DEPRECATED ***
  928. *
  929. * Availability:
  930. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  931. * CarbonLib: in CarbonLib 1.0 and later
  932. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  933. }
  934. function DMCheckDisplayMode( theDevice: GDHandle; mode: UInt32; depthMode: UInt32; var switchFlags: UInt32; reserved: UInt32; var modeOk: Boolean ): OSErr; external name '_DMCheckDisplayMode';
  935. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  936. {
  937. * DMGetDeskRegion() *** DEPRECATED ***
  938. *
  939. * Availability:
  940. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  941. * CarbonLib: in CarbonLib 1.0 and later
  942. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  943. }
  944. function DMGetDeskRegion( var desktopRegion: RgnHandle ): OSErr; external name '_DMGetDeskRegion';
  945. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  946. {
  947. * DMRegisterNotifyProc() *** DEPRECATED ***
  948. *
  949. * Availability:
  950. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  951. * CarbonLib: in CarbonLib 1.0 and later
  952. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  953. }
  954. function DMRegisterNotifyProc( notificationProc: DMNotificationUPP; whichPSN: DMProcessInfoPtr ): OSErr; external name '_DMRegisterNotifyProc';
  955. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  956. {
  957. * DMRemoveNotifyProc() *** DEPRECATED ***
  958. *
  959. * Availability:
  960. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  961. * CarbonLib: in CarbonLib 1.0 and later
  962. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  963. }
  964. function DMRemoveNotifyProc( notificationProc: DMNotificationUPP; whichPSN: DMProcessInfoPtr ): OSErr; external name '_DMRemoveNotifyProc';
  965. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  966. {
  967. * DMQDIsMirroringCapable() *** DEPRECATED ***
  968. *
  969. * Availability:
  970. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  971. * CarbonLib: in CarbonLib 1.0 and later
  972. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  973. }
  974. function DMQDIsMirroringCapable( var qdIsMirroringCapable: Boolean ): OSErr; external name '_DMQDIsMirroringCapable';
  975. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  976. {
  977. * DMCanMirrorNow() *** DEPRECATED ***
  978. *
  979. * Availability:
  980. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  981. * CarbonLib: in CarbonLib 1.0 and later
  982. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  983. }
  984. function DMCanMirrorNow( var canMirrorNow: Boolean ): OSErr; external name '_DMCanMirrorNow';
  985. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  986. {
  987. * DMIsMirroringOn() *** DEPRECATED ***
  988. *
  989. * Availability:
  990. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  991. * CarbonLib: in CarbonLib 1.0 and later
  992. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  993. }
  994. function DMIsMirroringOn( var isMirroringOn: Boolean ): OSErr; external name '_DMIsMirroringOn';
  995. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  996. {
  997. * DMMirrorDevices() *** DEPRECATED ***
  998. *
  999. * Availability:
  1000. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1001. * CarbonLib: in CarbonLib 1.0 and later
  1002. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1003. }
  1004. function DMMirrorDevices( gD1: GDHandle; gD2: GDHandle; displayState: Handle ): OSErr; external name '_DMMirrorDevices';
  1005. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1006. {
  1007. * DMUnmirrorDevice() *** DEPRECATED ***
  1008. *
  1009. * Availability:
  1010. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1011. * CarbonLib: in CarbonLib 1.0 and later
  1012. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1013. }
  1014. function DMUnmirrorDevice( gDevice: GDHandle; displayState: Handle ): OSErr; external name '_DMUnmirrorDevice';
  1015. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1016. {
  1017. * DMGetNextMirroredDevice() *** DEPRECATED ***
  1018. *
  1019. * Availability:
  1020. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1021. * CarbonLib: in CarbonLib 1.0 and later
  1022. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1023. }
  1024. function DMGetNextMirroredDevice( gDevice: GDHandle; var mirroredDevice: GDHandle ): OSErr; external name '_DMGetNextMirroredDevice';
  1025. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1026. {
  1027. * DMBlockMirroring() *** DEPRECATED ***
  1028. *
  1029. * Availability:
  1030. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1031. * CarbonLib: in CarbonLib 1.0 and later
  1032. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1033. }
  1034. function DMBlockMirroring: OSErr; external name '_DMBlockMirroring';
  1035. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1036. {
  1037. * DMUnblockMirroring() *** DEPRECATED ***
  1038. *
  1039. * Availability:
  1040. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1041. * CarbonLib: in CarbonLib 1.0 and later
  1042. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1043. }
  1044. function DMUnblockMirroring: OSErr; external name '_DMUnblockMirroring';
  1045. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1046. {
  1047. * DMGetDisplayMgrA5World()
  1048. *
  1049. * Availability:
  1050. * Mac OS X: not available [32-bit only]
  1051. * CarbonLib: not available
  1052. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1053. }
  1054. {
  1055. * DMGetDisplayIDByGDevice() *** DEPRECATED ***
  1056. *
  1057. * Availability:
  1058. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1059. * CarbonLib: in CarbonLib 1.0 and later
  1060. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1061. }
  1062. function DMGetDisplayIDByGDevice( displayDevice: GDHandle; var displayID: DisplayIDType; failToMain: Boolean ): OSErr; external name '_DMGetDisplayIDByGDevice';
  1063. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1064. {
  1065. * DMGetGDeviceByDisplayID() *** DEPRECATED ***
  1066. *
  1067. * Availability:
  1068. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1069. * CarbonLib: in CarbonLib 1.0 and later
  1070. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1071. }
  1072. function DMGetGDeviceByDisplayID( displayID: DisplayIDType; var displayDevice: GDHandle; failToMain: Boolean ): OSErr; external name '_DMGetGDeviceByDisplayID';
  1073. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1074. {
  1075. * DMSetDisplayComponent() *** DEPRECATED ***
  1076. *
  1077. * Availability:
  1078. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1079. * CarbonLib: in CarbonLib 1.0 and later
  1080. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1081. }
  1082. function DMSetDisplayComponent( theDevice: GDHandle; displayComponent: Component ): OSErr; external name '_DMSetDisplayComponent';
  1083. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1084. {
  1085. * DMGetDisplayComponent() *** DEPRECATED ***
  1086. *
  1087. * Availability:
  1088. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1089. * CarbonLib: in CarbonLib 1.0 and later
  1090. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1091. }
  1092. function DMGetDisplayComponent( theDevice: GDHandle; var displayComponent: Component ): OSErr; external name '_DMGetDisplayComponent';
  1093. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1094. {
  1095. * DMNewDisplay() *** DEPRECATED ***
  1096. *
  1097. * Availability:
  1098. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1099. * CarbonLib: in CarbonLib 1.0 and later
  1100. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1101. }
  1102. function DMNewDisplay( var newDevice: GDHandle; driverRefNum: SInt16; mode: UInt32; reserved: UInt32; displayID: DisplayIDType; displayComponent: Component; displayState: Handle ): OSErr; external name '_DMNewDisplay';
  1103. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1104. {
  1105. * DMDisposeDisplay() *** DEPRECATED ***
  1106. *
  1107. * Availability:
  1108. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1109. * CarbonLib: in CarbonLib 1.0 and later
  1110. * Non-Carbon CFM: in InterfaceLib 7.5 and later
  1111. }
  1112. function DMDisposeDisplay( disposeDevice: GDHandle; displayState: Handle ): OSErr; external name '_DMDisposeDisplay';
  1113. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1114. {
  1115. * DMResolveDisplayComponents() *** DEPRECATED ***
  1116. *
  1117. * Availability:
  1118. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1119. * CarbonLib: in CarbonLib 1.0 and later
  1120. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  1121. }
  1122. function DMResolveDisplayComponents: OSErr; external name '_DMResolveDisplayComponents';
  1123. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1124. {
  1125. * DMRegisterExtendedNotifyProc() *** DEPRECATED ***
  1126. *
  1127. * Availability:
  1128. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1129. * CarbonLib: in CarbonLib 1.0 and later
  1130. * Non-Carbon CFM: in DisplayLib 2.0 and later
  1131. }
  1132. function DMRegisterExtendedNotifyProc( notifyProc: DMExtendedNotificationUPP; notifyUserData: UnivPtr; nofifyOnFlags: UInt16; whichPSN: DMProcessInfoPtr ): OSErr; external name '_DMRegisterExtendedNotifyProc';
  1133. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1134. {
  1135. * DMRemoveExtendedNotifyProc() *** DEPRECATED ***
  1136. *
  1137. * Availability:
  1138. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1139. * CarbonLib: in CarbonLib 1.0 and later
  1140. * Non-Carbon CFM: in DisplayLib 2.0 and later
  1141. }
  1142. function DMRemoveExtendedNotifyProc( notifyProc: DMExtendedNotificationUPP; notifyUserData: UnivPtr; whichPSN: DMProcessInfoPtr; removeFlags: UInt16 ): OSErr; external name '_DMRemoveExtendedNotifyProc';
  1143. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1144. {
  1145. * DMNewAVPanelList() *** DEPRECATED ***
  1146. *
  1147. * Availability:
  1148. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1149. * CarbonLib: in CarbonLib 1.0 and later
  1150. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1151. }
  1152. function DMNewAVPanelList( displayID: DisplayIDType; panelType: ResType; minimumFidelity: DMFidelityType; panelListFlags: UInt32; reserved: UInt32; var thePanelCount: DMListIndexType; var thePanelList: DMListType ): OSErr; external name '_DMNewAVPanelList';
  1153. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1154. {
  1155. * DMNewAVEngineList() *** DEPRECATED ***
  1156. *
  1157. * Availability:
  1158. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1159. * CarbonLib: in CarbonLib 1.0 and later
  1160. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1161. }
  1162. function DMNewAVEngineList( displayID: DisplayIDType; engineType: ResType; minimumFidelity: DMFidelityType; engineListFlags: UInt32; reserved: UInt32; var engineCount: DMListIndexType; var engineList: DMListType ): OSErr; external name '_DMNewAVEngineList';
  1163. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1164. {
  1165. * DMNewAVDeviceList() *** DEPRECATED ***
  1166. *
  1167. * Availability:
  1168. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1169. * CarbonLib: in CarbonLib 1.0 and later
  1170. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1171. }
  1172. function DMNewAVDeviceList( deviceType: ResType; deviceListFlags: UInt32; reserved: UInt32; var deviceCount: DMListIndexType; var deviceList: DMListType ): OSErr; external name '_DMNewAVDeviceList';
  1173. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1174. {
  1175. * DMNewAVPortListByPortType() *** DEPRECATED ***
  1176. *
  1177. * Availability:
  1178. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1179. * CarbonLib: in CarbonLib 1.0 and later
  1180. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1181. }
  1182. function DMNewAVPortListByPortType( subType: ResType; portListFlags: UInt32; reserved: UInt32; var devicePortCount: DMListIndexType; var theDevicePortList: DMListType ): OSErr; external name '_DMNewAVPortListByPortType';
  1183. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1184. {
  1185. * DMGetIndexedComponentFromList() *** DEPRECATED ***
  1186. *
  1187. * Availability:
  1188. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1189. * CarbonLib: in CarbonLib 1.0 and later
  1190. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1191. }
  1192. function DMGetIndexedComponentFromList( panelList: DMListType; itemIndex: DMListIndexType; reserved: UInt32; listIterator: DMComponentListIteratorUPP; userData: UnivPtr ): OSErr; external name '_DMGetIndexedComponentFromList';
  1193. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1194. {
  1195. * DMDisposeList() *** DEPRECATED ***
  1196. *
  1197. * Availability:
  1198. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1199. * CarbonLib: in CarbonLib 1.0 and later
  1200. * Non-Carbon CFM: in DisplayLib 2.0 and later
  1201. }
  1202. function DMDisposeList( panelList: DMListType ): OSErr; external name '_DMDisposeList';
  1203. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1204. {
  1205. * DMGetNameByAVID() *** DEPRECATED ***
  1206. *
  1207. * Availability:
  1208. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1209. * CarbonLib: in CarbonLib 1.0 and later
  1210. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1211. }
  1212. function DMGetNameByAVID( theID: AVIDType; nameFlags: UInt32; var name: Str255 ): OSErr; external name '_DMGetNameByAVID';
  1213. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1214. {
  1215. * DMNewAVIDByPortComponent() *** DEPRECATED ***
  1216. *
  1217. * Availability:
  1218. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1219. * CarbonLib: in CarbonLib 1.0 and later
  1220. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1221. }
  1222. function DMNewAVIDByPortComponent( thePortComponent: Component; portKind: ResType; reserved: UInt32; var newID: AVIDType ): OSErr; external name '_DMNewAVIDByPortComponent';
  1223. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1224. {
  1225. * DMGetPortComponentByAVID() *** DEPRECATED ***
  1226. *
  1227. * Availability:
  1228. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1229. * CarbonLib: in CarbonLib 1.0 and later
  1230. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1231. }
  1232. function DMGetPortComponentByAVID( thePortID: DisplayIDType; var thePortComponent: Component; var theDesciption: ComponentDescription; var thePortKind: ResType ): OSErr; external name '_DMGetPortComponentByAVID';
  1233. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1234. {
  1235. * DMSendDependentNotification() *** DEPRECATED ***
  1236. *
  1237. * Availability:
  1238. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1239. * CarbonLib: in CarbonLib 1.0 and later
  1240. * Non-Carbon CFM: in DisplayLib 2.0 and later
  1241. }
  1242. function DMSendDependentNotification( notifyType: ResType; notifyClass: ResType; displayID: AVIDType; notifyComponent: ComponentInstance ): OSErr; external name '_DMSendDependentNotification';
  1243. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1244. {
  1245. * DMDisposeAVComponent() *** DEPRECATED ***
  1246. *
  1247. * Availability:
  1248. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1249. * CarbonLib: in CarbonLib 1.0 and later
  1250. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1251. }
  1252. function DMDisposeAVComponent( theAVComponent: Component ): OSErr; external name '_DMDisposeAVComponent';
  1253. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1254. {
  1255. * DMSaveScreenPrefs() *** DEPRECATED ***
  1256. *
  1257. * Availability:
  1258. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1259. * CarbonLib: in CarbonLib 1.0 and later
  1260. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1261. }
  1262. function DMSaveScreenPrefs( reserved1: UInt32; saveFlags: UInt32; reserved2: UInt32 ): OSErr; external name '_DMSaveScreenPrefs';
  1263. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1264. {
  1265. * DMNewAVIDByDeviceComponent() *** DEPRECATED ***
  1266. *
  1267. * Availability:
  1268. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1269. * CarbonLib: in CarbonLib 1.0 and later
  1270. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1271. }
  1272. function DMNewAVIDByDeviceComponent( theDeviceComponent: Component; portKind: ResType; reserved: UInt32; var newID: DisplayIDType ): OSErr; external name '_DMNewAVIDByDeviceComponent';
  1273. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1274. {
  1275. * DMNewAVPortListByDeviceAVID() *** DEPRECATED ***
  1276. *
  1277. * Availability:
  1278. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1279. * CarbonLib: in CarbonLib 1.0 and later
  1280. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1281. }
  1282. function DMNewAVPortListByDeviceAVID( theID: AVIDType; minimumFidelity: DMFidelityType; portListFlags: UInt32; reserved: UInt32; var devicePortCount: DMListIndexType; var theDevicePortList: DMListType ): OSErr; external name '_DMNewAVPortListByDeviceAVID';
  1283. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1284. {
  1285. * DMGetDeviceComponentByAVID() *** DEPRECATED ***
  1286. *
  1287. * Availability:
  1288. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1289. * CarbonLib: in CarbonLib 1.0 and later
  1290. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1291. }
  1292. function DMGetDeviceComponentByAVID( theDeviceID: AVIDType; var theDeviceComponent: Component; var theDesciption: ComponentDescription; var theDeviceKind: ResType ): OSErr; external name '_DMGetDeviceComponentByAVID';
  1293. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1294. {
  1295. * DMNewDisplayModeList() *** DEPRECATED ***
  1296. *
  1297. * Availability:
  1298. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1299. * CarbonLib: in CarbonLib 1.0 and later
  1300. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1301. }
  1302. function DMNewDisplayModeList( displayID: DisplayIDType; modeListFlags: UInt32; reserved: UInt32; var thePanelCount: DMListIndexType; var thePanelList: DMListType ): OSErr; external name '_DMNewDisplayModeList';
  1303. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1304. {
  1305. * DMGetIndexedDisplayModeFromList() *** DEPRECATED ***
  1306. *
  1307. * Availability:
  1308. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1309. * CarbonLib: in CarbonLib 1.0 and later
  1310. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1311. }
  1312. function DMGetIndexedDisplayModeFromList( panelList: DMListType; itemIndex: DMListIndexType; reserved: UInt32; listIterator: DMDisplayModeListIteratorUPP; userData: UnivPtr ): OSErr; external name '_DMGetIndexedDisplayModeFromList';
  1313. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1314. {
  1315. * DMGetGraphicInfoByAVID() *** DEPRECATED ***
  1316. *
  1317. * Availability:
  1318. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1319. * CarbonLib: in CarbonLib 1.0 and later
  1320. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1321. }
  1322. function DMGetGraphicInfoByAVID( theID: AVIDType; var theAVPcit: PicHandle; var theAVIconSuite: Handle; var theAVLocation: AVLocationRec ): OSErr; external name '_DMGetGraphicInfoByAVID';
  1323. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1324. {
  1325. * DMGetAVPowerState() *** DEPRECATED ***
  1326. *
  1327. * Availability:
  1328. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1329. * CarbonLib: in CarbonLib 1.0 and later
  1330. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1331. }
  1332. function DMGetAVPowerState( theID: AVIDType; getPowerState: AVPowerStatePtr; reserved1: UInt32 ): OSErr; external name '_DMGetAVPowerState';
  1333. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1334. {
  1335. * DMSetAVPowerState() *** DEPRECATED ***
  1336. *
  1337. * Availability:
  1338. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1339. * CarbonLib: in CarbonLib 1.0 and later
  1340. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1341. }
  1342. function DMSetAVPowerState( theID: AVIDType; setPowerState: AVPowerStatePtr; powerFlags: UInt32; displayState: Handle ): OSErr; external name '_DMSetAVPowerState';
  1343. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1344. {
  1345. * DMGetDeviceAVIDByPortAVID() *** DEPRECATED ***
  1346. *
  1347. * Availability:
  1348. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1349. * CarbonLib: in CarbonLib 1.0 and later
  1350. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1351. }
  1352. function DMGetDeviceAVIDByPortAVID( portAVID: AVIDType; var deviceAVID: AVIDType ): OSErr; external name '_DMGetDeviceAVIDByPortAVID';
  1353. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1354. {
  1355. * DMGetEnableByAVID() *** DEPRECATED ***
  1356. *
  1357. * Availability:
  1358. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1359. * CarbonLib: in CarbonLib 1.0 and later
  1360. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1361. }
  1362. function DMGetEnableByAVID( theAVID: AVIDType; var isAVIDEnabledNow: Boolean; var canChangeEnableNow: Boolean ): OSErr; external name '_DMGetEnableByAVID';
  1363. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1364. {
  1365. * DMSetEnableByAVID() *** DEPRECATED ***
  1366. *
  1367. * Availability:
  1368. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1369. * CarbonLib: in CarbonLib 1.0 and later
  1370. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1371. }
  1372. function DMSetEnableByAVID( theAVID: AVIDType; doEnable: Boolean; displayState: Handle ): OSErr; external name '_DMSetEnableByAVID';
  1373. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1374. {
  1375. * DMGetDisplayMode() *** DEPRECATED ***
  1376. *
  1377. * Availability:
  1378. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1379. * CarbonLib: in CarbonLib 1.0 and later
  1380. * Non-Carbon CFM: in DisplayLib68k 2.0 and later
  1381. }
  1382. function DMGetDisplayMode( theDevice: GDHandle; switchInfo: VDSwitchInfoPtr ): OSErr; external name '_DMGetDisplayMode';
  1383. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1384. {
  1385. * DMConfirmConfiguration() *** DEPRECATED ***
  1386. *
  1387. * Availability:
  1388. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1389. * CarbonLib: in CarbonLib 1.0 and later
  1390. * Non-Carbon CFM: in DisplayLib 2.1 and later
  1391. }
  1392. function DMConfirmConfiguration( filterProc: DMModalFilterUPP; confirmFlags: UInt32; reserved: UInt32; displayState: Handle ): OSErr; external name '_DMConfirmConfiguration';
  1393. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1394. {$endc} {not TARGET_CPU_64}
  1395. {$endc} {TARGET_OS_MAC}
  1396. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  1397. end.
  1398. {$endc} {not MACOSALLINCLUDE}