123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314 |
- {
- File: Displays.p
-
- Contains: Display Manager Interfaces.
-
- Version: Technology: Mac OS 8
- Release: Universal Interfaces 3.4.2
-
- Copyright: © 1993-2002 by Apple Computer, Inc., all rights reserved.
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://www.freepascal.org/bugs.html
-
- }
- {
- Modified for use with Free Pascal
- Version 200
- Please report any bugs to <[email protected]>
- }
- {$mode macpas}
- {$packenum 1}
- {$macro on}
- {$inline on}
- {$CALLING MWPASCAL}
- unit Displays;
- interface
- {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
- {$setc GAP_INTERFACES_VERSION := $0200}
- {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
- {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
- {$endc}
- {$ifc defined CPUPOWERPC and defined CPUI386}
- {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
- {$endc}
- {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
- {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
- {$endc}
- {$ifc not defined __ppc__ and defined CPUPOWERPC}
- {$setc __ppc__ := 1}
- {$elsec}
- {$setc __ppc__ := 0}
- {$endc}
- {$ifc not defined __i386__ and defined CPUI386}
- {$setc __i386__ := 1}
- {$elsec}
- {$setc __i386__ := 0}
- {$endc}
- {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
- {$error Conflicting definitions for __ppc__ and __i386__}
- {$endc}
- {$ifc defined __ppc__ and __ppc__}
- {$setc TARGET_CPU_PPC := TRUE}
- {$setc TARGET_CPU_X86 := FALSE}
- {$elifc defined __i386__ and __i386__}
- {$setc TARGET_CPU_PPC := FALSE}
- {$setc TARGET_CPU_X86 := TRUE}
- {$elsec}
- {$error Neither __ppc__ nor __i386__ is defined.}
- {$endc}
- {$setc TARGET_CPU_PPC_64 := FALSE}
- {$ifc defined FPC_BIG_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := TRUE}
- {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
- {$elifc defined FPC_LITTLE_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := FALSE}
- {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
- {$elsec}
- {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
- {$endc}
- {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
- {$setc CALL_NOT_IN_CARBON := FALSE}
- {$setc OLDROUTINENAMES := FALSE}
- {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
- {$setc OPAQUE_UPP_TYPES := TRUE}
- {$setc OTCARBONAPPLICATION := TRUE}
- {$setc OTKERNEL := FALSE}
- {$setc PM_USE_SESSION_APIS := TRUE}
- {$setc TARGET_API_MAC_CARBON := TRUE}
- {$setc TARGET_API_MAC_OS8 := FALSE}
- {$setc TARGET_API_MAC_OSX := TRUE}
- {$setc TARGET_CARBON := TRUE}
- {$setc TARGET_CPU_68K := FALSE}
- {$setc TARGET_CPU_MIPS := FALSE}
- {$setc TARGET_CPU_SPARC := FALSE}
- {$setc TARGET_OS_MAC := TRUE}
- {$setc TARGET_OS_UNIX := FALSE}
- {$setc TARGET_OS_WIN32 := FALSE}
- {$setc TARGET_RT_MAC_68881 := FALSE}
- {$setc TARGET_RT_MAC_CFM := FALSE}
- {$setc TARGET_RT_MAC_MACHO := TRUE}
- {$setc TYPED_FUNCTION_POINTERS := TRUE}
- {$setc TYPE_BOOL := FALSE}
- {$setc TYPE_EXTENDED := FALSE}
- {$setc TYPE_LONGLONG := TRUE}
- uses MacTypes,Quickdraw,CMTypes,AEDataModel,ConditionalMacros,Components,Video,CMApplication,AppleEvents,Events,Processes,Dialogs;
- {$ALIGN MAC68K}
- type
- DMProcessInfoPtr = ProcessSerialNumberPtr;
- DMModalFilterUPP = ModalFilterUPP;
- const
- { AppleEvents Core Suite }
- kAESystemConfigNotice = $636E6667 (* 'cnfg' *); { Core Suite types }
- kAEDisplayNotice = $6473706C (* 'dspl' *);
- kAEDisplaySummary = $6473756D (* 'dsum' *);
- keyDMConfigVersion = $646D6376 (* 'dmcv' *);
- keyDMConfigFlags = $646D6366 (* 'dmcf' *);
- keyDMConfigReserved = $646D6372 (* 'dmcr' *);
- keyDisplayID = $646D6964 (* 'dmid' *);
- keyDisplayComponent = $646D6463 (* 'dmdc' *);
- keyDisplayDevice = $646D6464 (* 'dmdd' *);
- keyDisplayFlags = $646D6466 (* 'dmdf' *);
- keyDisplayMode = $646D646D (* 'dmdm' *);
- keyDisplayModeReserved = $646D6D72 (* 'dmmr' *);
- keyDisplayReserved = $646D6472 (* 'dmdr' *);
- keyDisplayMirroredId = $646D6D69 (* 'dmmi' *);
- keyDeviceFlags = $64646466 (* 'dddf' *);
- keyDeviceDepthMode = $6464646D (* 'dddm' *);
- keyDeviceRect = $64646472 (* 'dddr' *);
- keyPixMapRect = $64706472 (* 'dpdr' *);
- keyPixMapHResolution = $64706872 (* 'dphr' *);
- keyPixMapVResolution = $64707672 (* 'dpvr' *);
- keyPixMapPixelType = $64707074 (* 'dppt' *);
- keyPixMapPixelSize = $64707073 (* 'dpps' *);
- keyPixMapCmpCount = $64706363 (* 'dpcc' *);
- keyPixMapCmpSize = $64706373 (* 'dpcs' *);
- keyPixMapAlignment = $64707061 (* 'dppa' *);
- keyPixMapResReserved = $64707272 (* 'dprr' *);
- keyPixMapReserved = $64707072 (* 'dppr' *);
- keyPixMapColorTableSeed = $64706374 (* 'dpct' *);
- keySummaryMenubar = $64736D62 (* 'dsmb' *);
- keySummaryChanges = $64736368 (* 'dsch' *);
- keyDisplayOldConfig = $646F6C64 (* 'dold' *);
- keyDisplayNewConfig = $646E6577 (* 'dnew' *);
- dmOnlyActiveDisplays = true;
- dmAllDisplays = false;
- { DMSendDependentNotification notifyClass }
- kDependentNotifyClassShowCursor = $73686372 (* 'shcr' *); { When display mgr shows a hidden cursor during an unmirror }
- kDependentNotifyClassDriverOverride = $6E647276 (* 'ndrv' *); { When a driver is overridden }
- kDependentNotifyClassDisplayMgrOverride = $646D6772 (* 'dmgr' *); { When display manager is upgraded }
- kDependentNotifyClassProfileChanged = $70726F66 (* 'prof' *); { When DMSetProfileByAVID is called }
- { Switch Flags }
- kNoSwitchConfirmBit = 0; { Flag indicating that there is no need to confirm a switch to this mode }
- kDepthNotAvailableBit = 1; { Current depth not available in new mode }
- kShowModeBit = 3; { Show this mode even though it requires a confirm. }
- kModeNotResizeBit = 4; { Do not use this mode to resize display (for cards that mode drives a different connector). }
- kNeverShowModeBit = 5; { This mode should not be shown in the user interface. }
- { Summary Change Flags (sticky bits indicating an operation was performed)
- For example, moving a display then moving it back will still set the kMovedDisplayBit.
- }
- kBeginEndConfigureBit = 0;
- kMovedDisplayBit = 1;
- kSetMainDisplayBit = 2;
- kSetDisplayModeBit = 3;
- kAddDisplayBit = 4;
- kRemoveDisplayBit = 5;
- kNewDisplayBit = 6;
- kDisposeDisplayBit = 7;
- kEnabledDisplayBit = 8;
- kDisabledDisplayBit = 9;
- kMirrorDisplayBit = 10;
- kUnMirrorDisplayBit = 11;
- { Notification Messages for extended call back routines }
- kDMNotifyRequestConnectionProbe = 0; { Like kDMNotifyRequestDisplayProbe only not for smart displays (used in wake before all busses are awake) }
- kDMNotifyInstalled = 1; { At install time }
- kDMNotifyEvent = 2; { Post change time }
- kDMNotifyRemoved = 3; { At remove time }
- kDMNotifyPrep = 4; { Pre change time }
- kDMNotifyExtendEvent = 5; { Allow registrees to extend apple event before it is sent }
- kDMNotifyDependents = 6; { Minor notification check without full update }
- kDMNotifySuspendConfigure = 7; { Temporary end of configuration }
- kDMNotifyResumeConfigure = 8; { Resume configuration }
- kDMNotifyRequestDisplayProbe = 9; { Request smart displays re-probe (used in sleep and hot plugging) }
- { Notification Flags }
- kExtendedNotificationProc = $00010000;
- { types for notifyType }
- kFullNotify = 0; { This is the appleevent whole nine yards notify }
- kFullDependencyNotify = 1; { Only sends to those who want to know about interrelated functionality (used for updating UI) }
- { DisplayID/DeviceID constants }
- kDummyDeviceID = $00FF; { This is the ID of the dummy display, used when the last ÒrealÓ display is disabled. }
- kInvalidDisplayID = $0000; { This is the invalid ID }
- kFirstDisplayID = $0100;
- { bits for panelListFlags }
- kAllowDuplicatesBit = 0;
- { bits for nameFlags }
- kSuppressNumberBit = 0;
- kSuppressNumberMask = 1;
- kForceNumberBit = 1;
- kForceNumberMask = 2;
- kSuppressNameBit = 2;
- kSuppressNameMask = 4;
- { DMGetNameByAVID masks }
- kDMSupressNumbersMask = $01; { Supress the numbers and return only names }
- kDMForceNumbersMask = $02; { Force numbers to always be shown (even on single display configs) }
- kDMSupressNameMask = $04; { Supress the names and return only numbers. }
- { Constants for fidelity checks }
- kNoFidelity = 0;
- kMinimumFidelity = 1;
- kDefaultFidelity = 500; { I'm just picking a number for Apple default panels and engines }
- kDefaultManufacturerFidelity = 1000; { I'm just picking a number for Manufacturer's panels and engines (overrides apple defaults) }
- kAnyPanelType = 0; { Pass to DMNewEngineList for list of all panels (as opposed to specific types) }
- kAnyEngineType = 0; { Pass to DMNewEngineList for list of all engines }
- kAnyDeviceType = 0; { Pass to DMNewDeviceList for list of all devices }
- kAnyPortType = 0; { Pass to DMNewDevicePortList for list of all devices }
- { portListFlags for DM_NewDevicePortList }
- { Should offline devices be put into the port list (such as dummy display) }
- kPLIncludeOfflineDevicesBit = 0;
- { confirmFlags for DMConfirmConfiguration }
- kForceConfirmBit = 0; { Force a confirm dialog }
- kForceConfirmMask = $01;
- { Flags for displayModeFlags }
- kDisplayModeListNotPreferredBit = 0;
- kDisplayModeListNotPreferredMask = $01;
- { Flags for itemFlags }
- kComponentListNotPreferredBit = 0;
- kComponentListNotPreferredMask = $01;
- kDisplayTimingInfoVersionZero = 1;
- kDisplayTimingInfoReservedCountVersionZero = 16;
- kDisplayModeEntryVersionZero = 0; { displayModeVersion - original version }
- kDisplayModeEntryVersionOne = 1; { displayModeVersion - added displayModeOverrideInfo }
- kMakeAndModelReservedCount = 4; { Number of reserved fields }
- { Display Gestalt for DMDisplayGestalt }
- kDisplayGestaltDisplayCommunicationAttr = $636F6D6D (* 'comm' *);
- kDisplayGestaltForbidI2CMask = $01; { Some displays have firmware problems if they get I2C communication. If this bit is set, then I2C communication is forbidden }
- kDisplayGestaltUseI2CPowerMask = $02; { Some displays require I2C power settings (most use DPMS). }
- kDisplayGestaltCalibratorAttr = $63616C69 (* 'cali' *);
- kDisplayGestaltBrightnessAffectsGammaMask = $01; { Used by default calibrator (should we show brightness panel) }
- kDisplayGestaltViewAngleAffectsGammaMask = $02; { Currently not used by color sync }
- type
- DMFidelityType = UInt32;
- {
- AVID is an ID for ports and devices the old DisplayID type
- is carried on for compatibility
- }
- DMListType = Ptr;
- DMListIndexType = UInt32;
- AVPowerStateRec = VDPowerStateRec;
- AVPowerStateRecPtr = ^AVPowerStateRec;
- AVPowerStatePtr = ^VDPowerStateRec;
- DMDisplayTimingInfoRecPtr = ^DMDisplayTimingInfoRec;
- DMDisplayTimingInfoRec = record
- timingInfoVersion: UInt32;
- timingInfoAttributes: UInt32; { Flags }
- timingInfoRelativeQuality: SInt32; { quality of the timing }
- timingInfoRelativeDefault: SInt32; { relative default of the timing }
- timingInfoReserved: array [0..15] of UInt32; { Reserved }
- end;
- DMDisplayTimingInfoPtr = ^DMDisplayTimingInfoRec;
- DMComponentListEntryRecPtr = ^DMComponentListEntryRec;
- DMComponentListEntryRec = record
- itemID: DisplayIDType; { DisplayID Manager }
- itemComponent: Component; { Component Manager }
- itemDescription: ComponentDescription; { We can always construct this if we use something beyond the compontent mgr. }
- 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) }
- itemFidelity: DMFidelityType; { How good is this item for the specified search? }
- itemSubClass: ResType; { Subclass of group to put this panel. Can use to do sub-grouping (eg volume for volume panel and mute panel) }
- itemSort: Point; { Set to 0 - future to sort the items in a sub group. }
- itemFlags: UInt32; { Set to 0 (future expansion) }
- itemReserved: ResType; { What kind of code does the itemReference point to (right now - kPanelEntryTypeComponentMgr only) }
- itemFuture1: UInt32; { Set to 0 (future expansion - probably an alternate code style) }
- itemFuture2: UInt32; { Set to 0 (future expansion - probably an alternate code style) }
- itemFuture3: UInt32; { Set to 0 (future expansion - probably an alternate code style) }
- itemFuture4: UInt32; { Set to 0 (future expansion - probably an alternate code style) }
- end;
- DMComponentListEntryPtr = ^DMComponentListEntryRec;
- { ¥¥¥ Move AVLocationRec to AVComponents.i AFTER AVComponents.i is created }
- AVLocationRecPtr = ^AVLocationRec;
- AVLocationRec = record
- locationConstant: UInt32; { Set to 0 (future expansion - probably an alternate code style) }
- end;
- AVLocationPtr = ^AVLocationRec;
- DMDepthInfoRecPtr = ^DMDepthInfoRec;
- DMDepthInfoRec = record
- depthSwitchInfo: VDSwitchInfoPtr; { This is the switch mode to choose this timing/depth }
- depthVPBlock: VPBlockPtr; { VPBlock (including size, depth and format) }
- depthFlags: UInt32; { VDVideoParametersInfoRec.csDepthFlags }
- depthReserved1: UInt32; { Reserved }
- depthReserved2: UInt32; { Reserved }
- end;
- DMDepthInfoPtr = ^DMDepthInfoRec;
- DMDepthInfoBlockRecPtr = ^DMDepthInfoBlockRec;
- DMDepthInfoBlockRec = record
- depthBlockCount: UInt32; { How many depths are there? }
- depthVPBlock: DMDepthInfoPtr; { Array of DMDepthInfoRec }
- depthBlockFlags: UInt32; { Reserved }
- depthBlockReserved1: UInt32; { Reserved }
- depthBlockReserved2: UInt32; { Reserved }
- end;
- DMDepthInfoBlockPtr = ^DMDepthInfoBlockRec;
- DMDisplayModeListEntryRecPtr = ^DMDisplayModeListEntryRec;
- DMDisplayModeListEntryRec = record
- displayModeFlags: UInt32;
- displayModeSwitchInfo: VDSwitchInfoPtr;
- displayModeResolutionInfo: VDResolutionInfoPtr;
- displayModeTimingInfo: VDTimingInfoPtr;
- displayModeDepthBlockInfo: DMDepthInfoBlockPtr; { Information about all the depths }
- displayModeVersion: UInt32; { What version is this record (now kDisplayModeEntryVersionOne) }
- displayModeName: StringPtr; { Name of the timing mode }
- displayModeDisplayInfo: DMDisplayTimingInfoPtr; { Information from the display. }
- end;
- DMDisplayModeListEntryPtr = ^DMDisplayModeListEntryRec;
- DependentNotifyRecPtr = ^DependentNotifyRec;
- DependentNotifyRec = record
- notifyType: ResType; { What type was the engine that made the change (may be zero) }
- notifyClass: ResType; { What class was the change (eg geometry, color etc) }
- notifyPortID: DisplayIDType; { Which device was touched (kInvalidDisplayID -> all or none) }
- notifyComponent: ComponentInstance; { What engine did it (may be 0)? }
- notifyVersion: UInt32; { Set to 0 (future expansion) }
- notifyFlags: UInt32; { Set to 0 (future expansion) }
- notifyReserved: UInt32; { Set to 0 (future expansion) }
- notifyFuture: UInt32; { Set to 0 (future expansion) }
- end;
- DependentNotifyPtr = ^DependentNotifyRec;
- DMMakeAndModelRecPtr = ^DMMakeAndModelRec;
- DMMakeAndModelRec = record
- manufacturer: ResType;
- model: UInt32;
- serialNumber: UInt32;
- manufactureDate: UInt32;
- makeReserved: array [0..3] of UInt32;
- end;
- DMMakeAndModelPtr = ^DMMakeAndModelRec;
- { DMNewDisplayList displayListIncludeFlags }
- const
- kIncludeOnlineActiveDisplaysMask = $01;
- kIncludeOnlineDisabledDisplaysMask = $02;
- kIncludeOfflineDisplaysMask = $04;
- kIncludeOfflineDummyDisplaysMask = $08;
- kIncludeHardwareMirroredDisplaysMask = $10;
- { modeListFlags for DMNewDisplayModeList }
- kDMModeListIncludeAllModesMask = $01; { Include all timing modes not _explicitly_ excluded (see other bits) }
- kDMModeListIncludeOfflineModesMask = $02;
- kDMModeListExcludeDriverModesMask = $04; { Exclude old-style timing modes (cscGetNextResolution/kDisplayModeIDFindFirstResolution modes) }
- kDMModeListExcludeDisplayModesMask = $08; { Exclude timing modes that come from the display (always arbritrary timing modes) }
- kDMModeListExcludeCustomModesMask = $10; { Exclude custom modes that came neither from the driver or display (need a better name) }
- kDMModeListPreferStretchedModesMask = $20; { Prefer modes that are stretched over modes that are letterboxed when setting kDisplayModeListNotPreferredBit }
- kDMModeListPreferSafeModesMask = $40; { Prefer modes that are safe over modes that are not when setting kDisplayModeListNotPreferredBit }
- kDMModeListExcludeDriverScaledModesMask = $80; { Exclude modes that are scaled by the driver (usually on fixed resolution displays) }
- { DMNewDisplayList displayListFlags }
- type
- DisplayListEntryRecPtr = ^DisplayListEntryRec;
- DisplayListEntryRec = record
- displayListEntryGDevice: GDHandle;
- displayListEntryDisplayID: DisplayIDType;
- displayListEntryIncludeFlags: UInt32; { Reason this entry was included }
- displayListEntryReserved1: UInt32;
- displayListEntryReserved2: UInt32; { Zero }
- displayListEntryReserved3: UInt32; { Zero }
- displayListEntryReserved4: UInt32; { Zero }
- displayListEntryReserved5: UInt32; { Zero }
- end;
- DisplayListEntryPtr = ^DisplayListEntryRec;
- DMProfileListEntryRecPtr = ^DMProfileListEntryRec;
- DMProfileListEntryRec = record
- profileRef: CMProfileRef;
- profileReserved1: Ptr; { Reserved }
- profileReserved2: Ptr; { Reserved }
- profileReserved3: Ptr; { Reserved }
- end;
- DMProfileListEntryPtr = ^DMProfileListEntryRec;
- {$ifc TYPED_FUNCTION_POINTERS}
- DMNotificationProcPtr = procedure(var theEvent: AppleEvent);
- {$elsec}
- DMNotificationProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- DMExtendedNotificationProcPtr = procedure(userData: UnivPtr; theMessage: SInt16; notifyData: UnivPtr);
- {$elsec}
- DMExtendedNotificationProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- DMComponentListIteratorProcPtr = procedure(userData: UnivPtr; itemIndex: DMListIndexType; componentInfo: DMComponentListEntryPtr);
- {$elsec}
- DMComponentListIteratorProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- DMDisplayModeListIteratorProcPtr = procedure(userData: UnivPtr; itemIndex: DMListIndexType; displaymodeInfo: DMDisplayModeListEntryPtr);
- {$elsec}
- DMDisplayModeListIteratorProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- DMProfileListIteratorProcPtr = procedure(userData: UnivPtr; itemIndex: DMListIndexType; profileInfo: DMProfileListEntryPtr);
- {$elsec}
- DMProfileListIteratorProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- DMDisplayListIteratorProcPtr = procedure(userData: UnivPtr; itemIndex: DMListIndexType; displaymodeInfo: DisplayListEntryPtr);
- {$elsec}
- DMDisplayListIteratorProcPtr = ProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- DMNotificationUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- DMNotificationUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- DMExtendedNotificationUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- DMExtendedNotificationUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- DMComponentListIteratorUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- DMComponentListIteratorUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- DMDisplayModeListIteratorUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- DMDisplayModeListIteratorUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- DMProfileListIteratorUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- DMProfileListIteratorUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- DMDisplayListIteratorUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- DMDisplayListIteratorUPP = UniversalProcPtr;
- {$endc}
- const
- uppDMNotificationProcInfo = $000000C0;
- uppDMExtendedNotificationProcInfo = $00000EC0;
- uppDMComponentListIteratorProcInfo = $00000FC0;
- uppDMDisplayModeListIteratorProcInfo = $00000FC0;
- uppDMProfileListIteratorProcInfo = $00000FC0;
- uppDMDisplayListIteratorProcInfo = $00000FC0;
- {
- * NewDMNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewDMNotificationUPP(userRoutine: DMNotificationProcPtr): DMNotificationUPP; external name '_NewDMNotificationUPP'; { old name was NewDMNotificationProc }
- {
- * NewDMExtendedNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewDMExtendedNotificationUPP(userRoutine: DMExtendedNotificationProcPtr): DMExtendedNotificationUPP; external name '_NewDMExtendedNotificationUPP'; { old name was NewDMExtendedNotificationProc }
- {
- * NewDMComponentListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewDMComponentListIteratorUPP(userRoutine: DMComponentListIteratorProcPtr): DMComponentListIteratorUPP; external name '_NewDMComponentListIteratorUPP'; { old name was NewDMComponentListIteratorProc }
- {
- * NewDMDisplayModeListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewDMDisplayModeListIteratorUPP(userRoutine: DMDisplayModeListIteratorProcPtr): DMDisplayModeListIteratorUPP; external name '_NewDMDisplayModeListIteratorUPP'; { old name was NewDMDisplayModeListIteratorProc }
- {
- * NewDMProfileListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewDMProfileListIteratorUPP(userRoutine: DMProfileListIteratorProcPtr): DMProfileListIteratorUPP; external name '_NewDMProfileListIteratorUPP'; { old name was NewDMProfileListIteratorProc }
- {
- * NewDMDisplayListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewDMDisplayListIteratorUPP(userRoutine: DMDisplayListIteratorProcPtr): DMDisplayListIteratorUPP; external name '_NewDMDisplayListIteratorUPP'; { old name was NewDMDisplayListIteratorProc }
- {
- * DisposeDMNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeDMNotificationUPP(userUPP: DMNotificationUPP); external name '_DisposeDMNotificationUPP';
- {
- * DisposeDMExtendedNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeDMExtendedNotificationUPP(userUPP: DMExtendedNotificationUPP); external name '_DisposeDMExtendedNotificationUPP';
- {
- * DisposeDMComponentListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeDMComponentListIteratorUPP(userUPP: DMComponentListIteratorUPP); external name '_DisposeDMComponentListIteratorUPP';
- {
- * DisposeDMDisplayModeListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeDMDisplayModeListIteratorUPP(userUPP: DMDisplayModeListIteratorUPP); external name '_DisposeDMDisplayModeListIteratorUPP';
- {
- * DisposeDMProfileListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeDMProfileListIteratorUPP(userUPP: DMProfileListIteratorUPP); external name '_DisposeDMProfileListIteratorUPP';
- {
- * DisposeDMDisplayListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeDMDisplayListIteratorUPP(userUPP: DMDisplayListIteratorUPP); external name '_DisposeDMDisplayListIteratorUPP';
- {
- * InvokeDMNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeDMNotificationUPP(var theEvent: AppleEvent; userRoutine: DMNotificationUPP); external name '_InvokeDMNotificationUPP'; { old name was CallDMNotificationProc }
- {
- * InvokeDMExtendedNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeDMExtendedNotificationUPP(userData: UnivPtr; theMessage: SInt16; notifyData: UnivPtr; userRoutine: DMExtendedNotificationUPP); external name '_InvokeDMExtendedNotificationUPP'; { old name was CallDMExtendedNotificationProc }
- {
- * InvokeDMComponentListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeDMComponentListIteratorUPP(userData: UnivPtr; itemIndex: DMListIndexType; componentInfo: DMComponentListEntryPtr; userRoutine: DMComponentListIteratorUPP); external name '_InvokeDMComponentListIteratorUPP'; { old name was CallDMComponentListIteratorProc }
- {
- * InvokeDMDisplayModeListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeDMDisplayModeListIteratorUPP(userData: UnivPtr; itemIndex: DMListIndexType; displaymodeInfo: DMDisplayModeListEntryPtr; userRoutine: DMDisplayModeListIteratorUPP); external name '_InvokeDMDisplayModeListIteratorUPP'; { old name was CallDMDisplayModeListIteratorProc }
- {
- * InvokeDMProfileListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeDMProfileListIteratorUPP(userData: UnivPtr; itemIndex: DMListIndexType; profileInfo: DMProfileListEntryPtr; userRoutine: DMProfileListIteratorUPP); external name '_InvokeDMProfileListIteratorUPP'; { old name was CallDMProfileListIteratorProc }
- {
- * InvokeDMDisplayListIteratorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeDMDisplayListIteratorUPP(userData: UnivPtr; itemIndex: DMListIndexType; displaymodeInfo: DisplayListEntryPtr; userRoutine: DMDisplayListIteratorUPP); external name '_InvokeDMDisplayListIteratorUPP'; { old name was CallDMDisplayListIteratorProc }
- {$ifc CALL_NOT_IN_CARBON}
- {
- * DMDisplayGestalt()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMDisplayGestalt(theDisplayID: DisplayIDType; displayGestaltSelector: ResType; var displayGestaltResponse: UInt32): OSErr; external name '_DMDisplayGestalt';
- {
- * DMUseScreenPrefs()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMUseScreenPrefs(usePrefs: boolean; displayState: Handle): OSErr; external name '_DMUseScreenPrefs';
- {
- * DMSuspendConfigure()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMSuspendConfigure(displayState: Handle; reserved1: UInt32): OSErr; external name '_DMSuspendConfigure';
- {
- * DMResumeConfigure()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMResumeConfigure(displayState: Handle; reserved1: UInt32): OSErr; external name '_DMResumeConfigure';
- {
- * DMSetGammaByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMSetGammaByAVID(gammaAVID: AVIDType; setGammaFlags: UInt32; theGamma: GammaTblHandle): OSErr; external name '_DMSetGammaByAVID';
- {
- * DMGetGammaByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMGetGammaByAVID(gammaAVID: AVIDType; getGammaFlags: UInt32; var theGamma: GammaTblHandle): OSErr; external name '_DMGetGammaByAVID';
- {
- * DMGetMakeAndModelByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMGetMakeAndModelByAVID(theAVID: AVIDType; theMakeAndModel: DMMakeAndModelPtr): OSErr; external name '_DMGetMakeAndModelByAVID';
- {
- * DMNewDisplayList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMNewDisplayList(displayListIncludeFlags: UInt32; reserved1: UInt32; reserved2: UInt32; var theCount: DMListIndexType; var theDisplayList: DMListType): OSErr; external name '_DMNewDisplayList';
- {
- * DMGetIndexedDisplayFromList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMGetIndexedDisplayFromList(theDisplayList: DMListType; itemIndex: DMListIndexType; reserved: UInt32; listIterator: DMDisplayListIteratorUPP; userData: UnivPtr): OSErr; external name '_DMGetIndexedDisplayFromList';
- {
- * DMNewProfileListByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMNewProfileListByAVID(theAVID: AVIDType; reserved: UInt32; var profileCount: DMListIndexType; var profileList: DMListType): OSErr; external name '_DMNewProfileListByAVID';
- {
- * DMGetIndexedProfileFromList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMGetIndexedProfileFromList(profileList: DMListType; itemIndex: DMListIndexType; reserved: UInt32; listIterator: DMProfileListIteratorUPP; userData: UnivPtr): OSErr; external name '_DMGetIndexedProfileFromList';
- {$endc} {CALL_NOT_IN_CARBON}
- {
- * DMGetFirstScreenDevice()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetFirstScreenDevice(activeOnly: boolean): GDHandle; external name '_DMGetFirstScreenDevice';
- {
- * DMGetNextScreenDevice()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetNextScreenDevice(theDevice: GDHandle; activeOnly: boolean): GDHandle; external name '_DMGetNextScreenDevice';
- {
- * DMDrawDesktopRect()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DMDrawDesktopRect(var globalRect: Rect); external name '_DMDrawDesktopRect';
- {
- * DMDrawDesktopRegion()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DMDrawDesktopRegion(globalRgn: RgnHandle); external name '_DMDrawDesktopRegion';
- {
- * DMBeginConfigureDisplays()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMBeginConfigureDisplays(var displayState: Handle): OSErr; external name '_DMBeginConfigureDisplays';
- {
- * DMEndConfigureDisplays()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMEndConfigureDisplays(displayState: Handle): OSErr; external name '_DMEndConfigureDisplays';
- {
- * DMAddDisplay()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMAddDisplay(newDevice: GDHandle; driver: SInt16; mode: UInt32; reserved: UInt32; displayID: UInt32; displayComponent: Component; displayState: Handle): OSErr; external name '_DMAddDisplay';
- {
- * DMMoveDisplay()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMMoveDisplay(moveDevice: GDHandle; x: SInt16; y: SInt16; displayState: Handle): OSErr; external name '_DMMoveDisplay';
- {
- * DMDisableDisplay()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMDisableDisplay(disableDevice: GDHandle; displayState: Handle): OSErr; external name '_DMDisableDisplay';
- {
- * DMEnableDisplay()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMEnableDisplay(enableDevice: GDHandle; displayState: Handle): OSErr; external name '_DMEnableDisplay';
- {
- * DMRemoveDisplay()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMRemoveDisplay(removeDevice: GDHandle; displayState: Handle): OSErr; external name '_DMRemoveDisplay';
- {
- * DMSetMainDisplay()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMSetMainDisplay(newMainDevice: GDHandle; displayState: Handle): OSErr; external name '_DMSetMainDisplay';
- {
- * DMSetDisplayMode()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMSetDisplayMode(theDevice: GDHandle; mode: UInt32; var depthMode: UInt32; reserved: UInt32; displayState: Handle): OSErr; external name '_DMSetDisplayMode';
- {
- * DMCheckDisplayMode()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMCheckDisplayMode(theDevice: GDHandle; mode: UInt32; depthMode: UInt32; var switchFlags: UInt32; reserved: UInt32; var modeOk: boolean): OSErr; external name '_DMCheckDisplayMode';
- {
- * DMGetDeskRegion()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetDeskRegion(var desktopRegion: RgnHandle): OSErr; external name '_DMGetDeskRegion';
- {
- * DMRegisterNotifyProc()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMRegisterNotifyProc(notificationProc: DMNotificationUPP; whichPSN: DMProcessInfoPtr): OSErr; external name '_DMRegisterNotifyProc';
- {
- * DMRemoveNotifyProc()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMRemoveNotifyProc(notificationProc: DMNotificationUPP; whichPSN: DMProcessInfoPtr): OSErr; external name '_DMRemoveNotifyProc';
- {
- * DMQDIsMirroringCapable()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMQDIsMirroringCapable(var qdIsMirroringCapable: boolean): OSErr; external name '_DMQDIsMirroringCapable';
- {
- * DMCanMirrorNow()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMCanMirrorNow(var canMirrorNow: boolean): OSErr; external name '_DMCanMirrorNow';
- {
- * DMIsMirroringOn()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMIsMirroringOn(var isMirroringOn: boolean): OSErr; external name '_DMIsMirroringOn';
- {
- * DMMirrorDevices()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMMirrorDevices(gD1: GDHandle; gD2: GDHandle; displayState: Handle): OSErr; external name '_DMMirrorDevices';
- {
- * DMUnmirrorDevice()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMUnmirrorDevice(gDevice: GDHandle; displayState: Handle): OSErr; external name '_DMUnmirrorDevice';
- {
- * DMGetNextMirroredDevice()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetNextMirroredDevice(gDevice: GDHandle; var mirroredDevice: GDHandle): OSErr; external name '_DMGetNextMirroredDevice';
- {
- * DMBlockMirroring()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMBlockMirroring: OSErr; external name '_DMBlockMirroring';
- {
- * DMUnblockMirroring()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMUnblockMirroring: OSErr; external name '_DMUnblockMirroring';
- {$ifc CALL_NOT_IN_CARBON}
- {
- * DMGetDisplayMgrA5World()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: not available
- * Mac OS X: not available
- }
- function DMGetDisplayMgrA5World(var dmA5: Ptr): OSErr; external name '_DMGetDisplayMgrA5World';
- {$endc} {CALL_NOT_IN_CARBON}
- {
- * DMGetDisplayIDByGDevice()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetDisplayIDByGDevice(displayDevice: GDHandle; var displayID: DisplayIDType; failToMain: boolean): OSErr; external name '_DMGetDisplayIDByGDevice';
- {
- * DMGetGDeviceByDisplayID()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetGDeviceByDisplayID(displayID: DisplayIDType; var displayDevice: GDHandle; failToMain: boolean): OSErr; external name '_DMGetGDeviceByDisplayID';
- {
- * DMSetDisplayComponent()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMSetDisplayComponent(theDevice: GDHandle; displayComponent: Component): OSErr; external name '_DMSetDisplayComponent';
- {
- * DMGetDisplayComponent()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetDisplayComponent(theDevice: GDHandle; var displayComponent: Component): OSErr; external name '_DMGetDisplayComponent';
- {
- * DMNewDisplay()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewDisplay(var newDevice: GDHandle; driverRefNum: SInt16; mode: UInt32; reserved: UInt32; displayID: DisplayIDType; displayComponent: Component; displayState: Handle): OSErr; external name '_DMNewDisplay';
- {
- * DMDisposeDisplay()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMDisposeDisplay(disposeDevice: GDHandle; displayState: Handle): OSErr; external name '_DMDisposeDisplay';
- {
- * DMResolveDisplayComponents()
- *
- * Availability:
- * Non-Carbon CFM: in InterfaceLib 7.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMResolveDisplayComponents: OSErr; external name '_DMResolveDisplayComponents';
- {
- * DMRegisterExtendedNotifyProc()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMRegisterExtendedNotifyProc(notifyProc: DMExtendedNotificationUPP; notifyUserData: UnivPtr; nofifyOnFlags: UInt16; whichPSN: DMProcessInfoPtr): OSErr; external name '_DMRegisterExtendedNotifyProc';
- {
- * DMRemoveExtendedNotifyProc()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMRemoveExtendedNotifyProc(notifyProc: DMExtendedNotificationUPP; notifyUserData: UnivPtr; whichPSN: DMProcessInfoPtr; removeFlags: UInt16): OSErr; external name '_DMRemoveExtendedNotifyProc';
- {
- * DMNewAVPanelList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewAVPanelList(displayID: DisplayIDType; panelType: ResType; minimumFidelity: DMFidelityType; panelListFlags: UInt32; reserved: UInt32; var thePanelCount: DMListIndexType; var thePanelList: DMListType): OSErr; external name '_DMNewAVPanelList';
- {
- * DMNewAVEngineList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewAVEngineList(displayID: DisplayIDType; engineType: ResType; minimumFidelity: DMFidelityType; engineListFlags: UInt32; reserved: UInt32; var engineCount: DMListIndexType; var engineList: DMListType): OSErr; external name '_DMNewAVEngineList';
- {
- * DMNewAVDeviceList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewAVDeviceList(deviceType: ResType; deviceListFlags: UInt32; reserved: UInt32; var deviceCount: DMListIndexType; var deviceList: DMListType): OSErr; external name '_DMNewAVDeviceList';
- {
- * DMNewAVPortListByPortType()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewAVPortListByPortType(subType: ResType; portListFlags: UInt32; reserved: UInt32; var devicePortCount: DMListIndexType; var theDevicePortList: DMListType): OSErr; external name '_DMNewAVPortListByPortType';
- {
- * DMGetIndexedComponentFromList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetIndexedComponentFromList(panelList: DMListType; itemIndex: DMListIndexType; reserved: UInt32; listIterator: DMComponentListIteratorUPP; userData: UnivPtr): OSErr; external name '_DMGetIndexedComponentFromList';
- {
- * DMDisposeList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMDisposeList(panelList: DMListType): OSErr; external name '_DMDisposeList';
- {
- * DMGetNameByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetNameByAVID(theID: AVIDType; nameFlags: UInt32; var name: Str255): OSErr; external name '_DMGetNameByAVID';
- {
- * DMNewAVIDByPortComponent()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewAVIDByPortComponent(thePortComponent: Component; portKind: ResType; reserved: UInt32; var newID: AVIDType): OSErr; external name '_DMNewAVIDByPortComponent';
- {
- * DMGetPortComponentByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetPortComponentByAVID(thePortID: DisplayIDType; var thePortComponent: Component; var theDesciption: ComponentDescription; var thePortKind: ResType): OSErr; external name '_DMGetPortComponentByAVID';
- {
- * DMSendDependentNotification()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMSendDependentNotification(notifyType: ResType; notifyClass: ResType; displayID: AVIDType; notifyComponent: ComponentInstance): OSErr; external name '_DMSendDependentNotification';
- {
- * DMDisposeAVComponent()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMDisposeAVComponent(theAVComponent: Component): OSErr; external name '_DMDisposeAVComponent';
- {
- * DMSaveScreenPrefs()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMSaveScreenPrefs(reserved1: UInt32; saveFlags: UInt32; reserved2: UInt32): OSErr; external name '_DMSaveScreenPrefs';
- {
- * DMNewAVIDByDeviceComponent()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewAVIDByDeviceComponent(theDeviceComponent: Component; portKind: ResType; reserved: UInt32; var newID: DisplayIDType): OSErr; external name '_DMNewAVIDByDeviceComponent';
- {
- * DMNewAVPortListByDeviceAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewAVPortListByDeviceAVID(theID: AVIDType; minimumFidelity: DMFidelityType; portListFlags: UInt32; reserved: UInt32; var devicePortCount: DMListIndexType; var theDevicePortList: DMListType): OSErr; external name '_DMNewAVPortListByDeviceAVID';
- {
- * DMGetDeviceComponentByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetDeviceComponentByAVID(theDeviceID: AVIDType; var theDeviceComponent: Component; var theDesciption: ComponentDescription; var theDeviceKind: ResType): OSErr; external name '_DMGetDeviceComponentByAVID';
- {
- * DMNewDisplayModeList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMNewDisplayModeList(displayID: DisplayIDType; modeListFlags: UInt32; reserved: UInt32; var thePanelCount: DMListIndexType; var thePanelList: DMListType): OSErr; external name '_DMNewDisplayModeList';
- {
- * DMGetIndexedDisplayModeFromList()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetIndexedDisplayModeFromList(panelList: DMListType; itemIndex: DMListIndexType; reserved: UInt32; listIterator: DMDisplayModeListIteratorUPP; userData: UnivPtr): OSErr; external name '_DMGetIndexedDisplayModeFromList';
- {
- * DMGetGraphicInfoByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetGraphicInfoByAVID(theID: AVIDType; var theAVPcit: PicHandle; var theAVIconSuite: Handle; var theAVLocation: AVLocationRec): OSErr; external name '_DMGetGraphicInfoByAVID';
- {
- * DMGetAVPowerState()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetAVPowerState(theID: AVIDType; getPowerState: AVPowerStatePtr; reserved1: UInt32): OSErr; external name '_DMGetAVPowerState';
- {
- * DMSetAVPowerState()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMSetAVPowerState(theID: AVIDType; setPowerState: AVPowerStatePtr; powerFlags: UInt32; displayState: Handle): OSErr; external name '_DMSetAVPowerState';
- {
- * DMGetDeviceAVIDByPortAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetDeviceAVIDByPortAVID(portAVID: AVIDType; var deviceAVID: AVIDType): OSErr; external name '_DMGetDeviceAVIDByPortAVID';
- {
- * DMGetEnableByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetEnableByAVID(theAVID: AVIDType; var isAVIDEnabledNow: boolean; var canChangeEnableNow: boolean): OSErr; external name '_DMGetEnableByAVID';
- {
- * DMSetEnableByAVID()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMSetEnableByAVID(theAVID: AVIDType; doEnable: boolean; displayState: Handle): OSErr; external name '_DMSetEnableByAVID';
- {
- * DMGetDisplayMode()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib68k 2.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMGetDisplayMode(theDevice: GDHandle; switchInfo: VDSwitchInfoPtr): OSErr; external name '_DMGetDisplayMode';
- {
- * DMConfirmConfiguration()
- *
- * Availability:
- * Non-Carbon CFM: in DisplayLib 2.1 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function DMConfirmConfiguration(filterProc: DMModalFilterUPP; confirmFlags: UInt32; reserved: UInt32; displayState: Handle): OSErr; external name '_DMConfirmConfiguration';
- {$ALIGN MAC68K}
- end.
|