diff options
Diffstat (limited to 'packages/univint/src/Quickdraw.pas')
-rw-r--r-- | packages/univint/src/Quickdraw.pas | 7901 |
1 files changed, 7901 insertions, 0 deletions
diff --git a/packages/univint/src/Quickdraw.pas b/packages/univint/src/Quickdraw.pas new file mode 100644 index 0000000000..d450020796 --- /dev/null +++ b/packages/univint/src/Quickdraw.pas @@ -0,0 +1,7901 @@ +{ + File: QD/Quickdraw.h + + Contains: Interface to Quickdraw Graphics + + Version: Quickdraw-192.20~75 + + Copyright: © 1985-2006 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 + +} +{ Pascal Translation Updated: Gale R Paeper, <gpaeper@empirenet.com>, 2007 } + +{ + Modified for use with Free Pascal + Version 200 + Please report any bugs to <gpc@microbizz.nl> +} + +{$mode macpas} +{$packenum 1} +{$macro on} +{$inline on} +{$CALLING MWPASCAL} + +unit Quickdraw; +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,CMTypes,CGDirectDisplay,Components,MixedMode,QuickdrawText,CGContext; + + +{$ALIGN MAC68K} + +{********************************************************************************* +// NOTE: Quickdraw has been deprecated for deployment targets 10.4 and later. +// The replacement API is Quartz (CoreGraphics). +// Because of the fundamental differences in the imaging models and design +// goals between Quickdraw and Quartz, there is no direct correspondence +// possible (or even desirable) between Quickdraw and Quartz APIs and concepts. +// For certain purposes, some Quickdraw functions may even still be needed during +// a transition period; nevertheless, they have all been tagged as deprecated +// to express the overriding goal of eliminating all Quickdraw usage in the future. + |********************************************************************************} + + +const + invalColReq = -1; { invalid color table request } + + { transfer modes } + srcCopy = 0; { the 16 transfer modes } + srcOr = 1; + srcXor = 2; + srcBic = 3; + notSrcCopy = 4; + notSrcOr = 5; + notSrcXor = 6; + notSrcBic = 7; + patCopy = 8; + patOr = 9; + patXor = 10; + patBic = 11; + notPatCopy = 12; + notPatOr = 13; + notPatXor = 14; + notPatBic = 15; { Special Text Transfer Mode } + grayishTextOr = 49; + hilitetransfermode = 50; + hilite = 50; { Arithmetic transfer modes } + blend = 32; + addPin = 33; + addOver = 34; + subPin = 35; + addMax = 37; + adMax = 37; + subOver = 38; + adMin = 39; + ditherCopy = 64; { Transparent mode constant } + transparent = 36; + + italicBit = 1; + ulineBit = 2; + outlineBit = 3; + shadowBit = 4; + condenseBit = 5; + extendBit = 6; + + { QuickDraw color separation constants } + normalBit = 0; { normal screen mapping } + inverseBit = 1; { inverse screen mapping } + redBit = 4; { RGB additive mapping } + greenBit = 3; + blueBit = 2; + cyanBit = 8; { CMYBk subtractive mapping } + magentaBit = 7; + yellowBit = 6; + blackBit = 5; + + blackColor = 33; { colors expressed in these mappings } + whiteColor = 30; + redColor = 205; + greenColor = 341; + blueColor = 409; + cyanColor = 273; + magentaColor = 137; + yellowColor = 69; + + picLParen = 0; { standard picture comments } + picRParen = 1; + clutType = 0; { 0 if lookup table } + fixedType = 1; { 1 if fixed table } + directType = 2; { 2 if direct values } + + { gdFlags bits. Bits 1..10 are legacy, and currently unused } + gdDevType = 0; { 0 = monochrome 1 = color } + + interlacedDevice = 2; { 1 if single pixel lines look bad } + hwMirroredDevice = 4; { 1 if device is HW mirrored } + roundedDevice = 5; { 1 if device has been ÒroundedÓ into the GrayRgn } + hasAuxMenuBar = 6; { 1 if device has an aux menu bar on it } + burstDevice = 7; + ext32Device = 8; + ramInit = 10; { 1 if initialized from 'scrn' resource } + mainScreen = 11; { 1 if main screen } + allInit = 12; { 1 if all devices initialized } + screenDevice = 13; { 1 if screen device [not used] } + noDriver = 14; { 1 if no driver for this GDevice } + screenActive = 15; { 1 if in use } + hiliteBit = 7; { flag bit in LMGet/SetHiliteMode } + pHiliteBit = 0; { flag bit in LMGet/SetHiliteMode when used with BitClr } + + { miscellaneous constants } + defQDColors = 127; { resource ID of clut for default QDColors } { (legacy - now unused) } + { pixel type } + RGBDirect = 16; { 16 & 32 bits/pixel pixelType value } + { pmVersion values } + baseAddr32 = 4; { pixmap base address is 32-bit address } + + + sysPatListID = 0; + iBeamCursor = 1; + crossCursor = 2; + plusCursor = 3; + watchCursor = 4; + + kQDGrafVerbFrame = 0; + kQDGrafVerbPaint = 1; + kQDGrafVerbErase = 2; + kQDGrafVerbInvert = 3; + kQDGrafVerbFill = 4; + +{$ifc OLDROUTINENAMES} + frame = kQDGrafVerbFrame; + paint = kQDGrafVerbPaint; + erase = kQDGrafVerbErase; + invert = kQDGrafVerbInvert; + fill = kQDGrafVerbFill; + +{$endc} {OLDROUTINENAMES} + + +type + GrafVerb = SInt8; + +const + chunky = 0; + chunkyPlanar = 1; + planar = 2; + + +type + PixelType = SInt8; + Bits16 = array [0..15] of SInt16; + + { ************** IMPORTANT NOTE REGARDING Pattern ************************************** + Patterns were originally defined as: + + C: typedef unsigned char Pattern[8]; + Pascal: Pattern = packed array [0..7] of 0..255; + + The old array definition of Pattern would cause 68000 based CPU's to crash in certain circum- + stances. The new struct definition is safe, but may require source code changes to compile. + + ******************************************************************************************** } + PatternPtr = ^Pattern; + Pattern = record + pat: packed array [0..7] of UInt8; + end; + +{ + ConstPatternParam is no longer needed. It was first created when Pattern was an array. + Now that Pattern is a struct, it is more straight forward to just add the "const" qualifier + on the parameter type (e.g. "const Pattern * pat" instead of "ConstPatternParam pat"). + + ConstPatternParam = PatternPtr; +} + + PatPtr = ^Pattern; + PatHandle = ^PatPtr; + QDByte = SignedByte; + QDPtr = Ptr; + QDHandle = Handle; + QDErr = SInt16; + +const + singleDevicesBit = 0; + dontMatchSeedsBit = 1; + allDevicesBit = 2; + + singleDevices = $01; + dontMatchSeeds = $02; + allDevices = $04; + + +type + DeviceLoopFlags = UInt32; + { + PrinterStatusOpcode. For communication with downloading and printing services. + } + PrinterStatusOpcode = SInt32; + +const + kPrinterFontStatus = 0; + kPrinterScalingStatus = 1; + + +type + PrinterFontStatusPtr = ^PrinterFontStatus; + PrinterFontStatus = record + oResult: SInt32; + iFondID: SInt16; + iStyle: Style; + end; + + PrinterScalingStatusPtr = ^PrinterScalingStatus; + PrinterScalingStatus = record + oScalingFactors: Point; + end; + + BitMapPtr = ^BitMap; + BitMap = record + baseAddr: Ptr; + rowBytes: SInt16; + bounds: Rect; + end; + + BitMapHandle = ^BitMapPtr; + CursorPtr = ^Cursor; + Cursor = record + data: Bits16; + mask: Bits16; + hotSpot: Point; + end; + + CursPtr = ^Cursor; + CursHandle = ^CursPtr; + PenStatePtr = ^PenState; + PenState = record + pnLoc: Point; + pnSize: Point; + pnMode: SInt16; + pnPat: Pattern; + end; + +{$ifc NOT OPAQUE_TOOLBOX_STRUCTS} + MacRegionPtr = ^MacRegion; + MacRegion = record + rgnSize: UInt16; { size in bytes; don't rely on it } + rgnBBox: Rect; { enclosing rectangle; in Carbon use GetRegionBounds } + end; + + { + The type name "Region" has a name space collision on Win32. + Use MacRegion to be cross-platfrom safe. + } +{$ifc TARGET_OS_MAC} + Region = MacRegion; + RegionPtr = ^Region; +{$endc} {TARGET_OS_MAC} + RgnPtr = ^MacRegion; + RgnHandle = ^RgnPtr; +{$elsec} + RgnHandle = ^SInt32; { an opaque 32-bit type } + RgnHandlePtr = ^RgnHandle; { when a var xx:RgnHandle parameter can be nil, it is changed to xx: RgnHandlePtr } +{$endc} + + PicturePtr = ^Picture; + Picture = record + picSize: SInt16; + picFrame: Rect; + end; + + PicPtr = ^Picture; + PicHandle = ^PicPtr; + MacPolygonPtr = ^MacPolygon; + MacPolygon = record + polySize: SInt16; + polyBBox: Rect; + polyPoints: array [0..0] of Point; + end; + + { + The type name "Polygon" has a name space collision on Win32. + Use MacPolygon to be cross-platfrom safe. + } +{$ifc TARGET_OS_MAC} + Polygon = MacPolygon; + PolygonPtr = ^Polygon; +{$endc} {TARGET_OS_MAC} + + PolyPtr = ^MacPolygon; + PolyHandle = ^PolyPtr; +{$ifc TYPED_FUNCTION_POINTERS} + QDTextProcPtr = procedure(byteCount: SInt16; textBuf: UnivPtr; numer: Point; denom: Point); +{$elsec} + QDTextProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDLineProcPtr = procedure(newPt: Point); +{$elsec} + QDLineProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDRectProcPtr = procedure(verb: GrafVerb; const (*var*) r: Rect); +{$elsec} + QDRectProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDRRectProcPtr = procedure(verb: GrafVerb; const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16); +{$elsec} + QDRRectProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDOvalProcPtr = procedure(verb: GrafVerb; const (*var*) r: Rect); +{$elsec} + QDOvalProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDArcProcPtr = procedure(verb: GrafVerb; const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16); +{$elsec} + QDArcProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDPolyProcPtr = procedure(verb: GrafVerb; poly: PolyHandle); +{$elsec} + QDPolyProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDRgnProcPtr = procedure(verb: GrafVerb; rgn: RgnHandle); +{$elsec} + QDRgnProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDBitsProcPtr = procedure(const (*var*) srcBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; maskRgn: RgnHandle); +{$elsec} + QDBitsProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDCommentProcPtr = procedure(kind: SInt16; dataSize: SInt16; dataHandle: Handle); +{$elsec} + QDCommentProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDTxMeasProcPtr = function(byteCount: SInt16; textAddr: UnivPtr; var numer: Point; var denom: Point; var info: FontInfo): SInt16; +{$elsec} + QDTxMeasProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDGetPicProcPtr = procedure(dataPtr: UnivPtr; byteCount: SInt16); +{$elsec} + QDGetPicProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDPutPicProcPtr = procedure(dataPtr: UnivPtr; byteCount: SInt16); +{$elsec} + QDPutPicProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDOpcodeProcPtr = procedure(const (*var*) fromRect: Rect; const (*var*) toRect: Rect; opcode: UInt16; version: SInt16); +{$elsec} + QDOpcodeProcPtr = ProcPtr; +{$endc} + +{ The following is unused on Mac OS X - ignore it! } +{$ifc TYPED_FUNCTION_POINTERS} + QDStdGlyphsProcPtr = function(dataStream: UnivPtr; size: ByteCount): OSStatus; +{$elsec} + QDStdGlyphsProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + QDJShieldCursorProcPtr = procedure(left: SInt16; top: SInt16; right: SInt16; bottom: SInt16); +{$elsec} + QDJShieldCursorProcPtr = ProcPtr; +{$endc} + +{$ifc OPAQUE_UPP_TYPES} + QDTextUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDTextUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDLineUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDLineUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDRectUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDRectUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDRRectUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDRRectUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDOvalUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDOvalUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDArcUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDArcUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDPolyUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDPolyUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDRgnUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDRgnUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDBitsUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDBitsUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDCommentUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDCommentUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDTxMeasUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDTxMeasUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDGetPicUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDGetPicUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDPutPicUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDPutPicUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDOpcodeUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDOpcodeUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDStdGlyphsUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDStdGlyphsUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + QDJShieldCursorUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDJShieldCursorUPP = UniversalProcPtr; +{$endc} + QDProcsPtr = ^QDProcs; + QDProcs = record + textProc: QDTextUPP; + lineProc: QDLineUPP; + rectProc: QDRectUPP; + rRectProc: QDRRectUPP; + ovalProc: QDOvalUPP; + arcProc: QDArcUPP; + polyProc: QDPolyUPP; + rgnProc: QDRgnUPP; + bitsProc: QDBitsUPP; + commentProc: QDCommentUPP; + txMeasProc: QDTxMeasUPP; + getPicProc: QDGetPicUPP; + putPicProc: QDPutPicUPP; + end; + + +const + uppQDTextProcInfo = $00003F80; + uppQDLineProcInfo = $000000C0; + uppQDRectProcInfo = $00000340; + uppQDRRectProcInfo = $00002B40; + uppQDOvalProcInfo = $00000340; + uppQDArcProcInfo = $00002B40; + uppQDPolyProcInfo = $00000340; + uppQDRgnProcInfo = $00000340; + uppQDBitsProcInfo = $0000EFC0; + uppQDCommentProcInfo = $00000E80; + uppQDTxMeasProcInfo = $0000FFA0; + uppQDGetPicProcInfo = $000002C0; + uppQDPutPicProcInfo = $000002C0; + uppQDOpcodeProcInfo = $00002BC0; + uppQDStdGlyphsProcInfo = $000003F1; + uppQDJShieldCursorProcInfo = $00002A80; + { + * NewQDTextUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDTextUPP(userRoutine: QDTextProcPtr): QDTextUPP; external name '_NewQDTextUPP'; { old name was NewQDTextProc } + +{ + * NewQDLineUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 +function NewQDLineUPP(userRoutine: QDLineProcPtr): QDLineUPP; external name '_NewQDLineUPP'; { old name was NewQDLineProc } + +{ + * NewQDRectUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDRectUPP(userRoutine: QDRectProcPtr): QDRectUPP; external name '_NewQDRectUPP'; { old name was NewQDRectProc } + +{ + * NewQDRRectUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDRRectUPP(userRoutine: QDRRectProcPtr): QDRRectUPP; external name '_NewQDRRectUPP'; { old name was NewQDRRectProc } + +{ + * NewQDOvalUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDOvalUPP(userRoutine: QDOvalProcPtr): QDOvalUPP; external name '_NewQDOvalUPP'; { old name was NewQDOvalProc } + +{ + * NewQDArcUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDArcUPP(userRoutine: QDArcProcPtr): QDArcUPP; external name '_NewQDArcUPP'; { old name was NewQDArcProc } + +{ + * NewQDPolyUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDPolyUPP(userRoutine: QDPolyProcPtr): QDPolyUPP; external name '_NewQDPolyUPP'; { old name was NewQDPolyProc } + +{ + * NewQDRgnUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDRgnUPP(userRoutine: QDRgnProcPtr): QDRgnUPP; external name '_NewQDRgnUPP'; { old name was NewQDRgnProc } + +{ + * NewQDBitsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDBitsUPP(userRoutine: QDBitsProcPtr): QDBitsUPP; external name '_NewQDBitsUPP'; { old name was NewQDBitsProc } + +{ + * NewQDCommentUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDCommentUPP(userRoutine: QDCommentProcPtr): QDCommentUPP; external name '_NewQDCommentUPP'; { old name was NewQDCommentProc } + +{ + * NewQDTxMeasUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDTxMeasUPP(userRoutine: QDTxMeasProcPtr): QDTxMeasUPP; external name '_NewQDTxMeasUPP'; { old name was NewQDTxMeasProc } + +{ + * NewQDGetPicUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDGetPicUPP(userRoutine: QDGetPicProcPtr): QDGetPicUPP; external name '_NewQDGetPicUPP'; { old name was NewQDGetPicProc } + +{ + * NewQDPutPicUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDPutPicUPP(userRoutine: QDPutPicProcPtr): QDPutPicUPP; external name '_NewQDPutPicUPP'; { old name was NewQDPutPicProc } + +{ + * NewQDOpcodeUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDOpcodeUPP(userRoutine: QDOpcodeProcPtr): QDOpcodeUPP; external name '_NewQDOpcodeUPP'; { old name was NewQDOpcodeProc } + +{ + * NewQDStdGlyphsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDStdGlyphsUPP(userRoutine: QDStdGlyphsProcPtr): QDStdGlyphsUPP; external name '_NewQDStdGlyphsUPP'; { old name was NewQDStdGlyphsProc } + +{ + * NewQDJShieldCursorUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewQDJShieldCursorUPP(userRoutine: QDJShieldCursorProcPtr): QDJShieldCursorUPP; external name '_NewQDJShieldCursorUPP'; { old name was NewQDJShieldCursorProc } + +{ + * DisposeQDTextUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDTextUPP(userUPP: QDTextUPP); external name '_DisposeQDTextUPP'; + +{ + * DisposeQDLineUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDLineUPP(userUPP: QDLineUPP); external name '_DisposeQDLineUPP'; + +{ + * DisposeQDRectUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDRectUPP(userUPP: QDRectUPP); external name '_DisposeQDRectUPP'; + +{ + * DisposeQDRRectUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDRRectUPP(userUPP: QDRRectUPP); external name '_DisposeQDRRectUPP'; + +{ + * DisposeQDOvalUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDOvalUPP(userUPP: QDOvalUPP); external name '_DisposeQDOvalUPP'; + +{ + * DisposeQDArcUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDArcUPP(userUPP: QDArcUPP); external name '_DisposeQDArcUPP'; + +{ + * DisposeQDPolyUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDPolyUPP(userUPP: QDPolyUPP); external name '_DisposeQDPolyUPP'; + +{ + * DisposeQDRgnUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDRgnUPP(userUPP: QDRgnUPP); external name '_DisposeQDRgnUPP'; + +{ + * DisposeQDBitsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDBitsUPP(userUPP: QDBitsUPP); external name '_DisposeQDBitsUPP'; + +{ + * DisposeQDCommentUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDCommentUPP(userUPP: QDCommentUPP); external name '_DisposeQDCommentUPP'; + +{ + * DisposeQDTxMeasUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDTxMeasUPP(userUPP: QDTxMeasUPP); external name '_DisposeQDTxMeasUPP'; + +{ + * DisposeQDGetPicUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDGetPicUPP(userUPP: QDGetPicUPP); external name '_DisposeQDGetPicUPP'; + +{ + * DisposeQDPutPicUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDPutPicUPP(userUPP: QDPutPicUPP); external name '_DisposeQDPutPicUPP'; + +{ + * DisposeQDOpcodeUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDOpcodeUPP(userUPP: QDOpcodeUPP); external name '_DisposeQDOpcodeUPP'; + +{ + * DisposeQDStdGlyphsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDStdGlyphsUPP(userUPP: QDStdGlyphsUPP); external name '_DisposeQDStdGlyphsUPP'; + +{ + * DisposeQDJShieldCursorUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeQDJShieldCursorUPP(userUPP: QDJShieldCursorUPP); external name '_DisposeQDJShieldCursorUPP'; + +{ + * InvokeQDTextUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDTextUPP(byteCount: SInt16; textBuf: UnivPtr; numer: Point; denom: Point; userRoutine: QDTextUPP); external name '_InvokeQDTextUPP'; { old name was CallQDTextProc } + +{ + * InvokeQDLineUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDLineUPP(newPt: Point; userRoutine: QDLineUPP); external name '_InvokeQDLineUPP'; { old name was CallQDLineProc } + +{ + * InvokeQDRectUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDRectUPP(verb: GrafVerb; const (*var*) r: Rect; userRoutine: QDRectUPP); external name '_InvokeQDRectUPP'; { old name was CallQDRectProc } + +{ + * InvokeQDRRectUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDRRectUPP(verb: GrafVerb; const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16; userRoutine: QDRRectUPP); external name '_InvokeQDRRectUPP'; { old name was CallQDRRectProc } +{ + * InvokeQDOvalUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDOvalUPP(verb: GrafVerb; const (*var*) r: Rect; userRoutine: QDOvalUPP); external name '_InvokeQDOvalUPP'; { old name was CallQDOvalProc } + +{ + * InvokeQDArcUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDArcUPP(verb: GrafVerb; const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16; userRoutine: QDArcUPP); external name '_InvokeQDArcUPP'; { old name was CallQDArcProc } + +{ + * InvokeQDPolyUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDPolyUPP(verb: GrafVerb; poly: PolyHandle; userRoutine: QDPolyUPP); external name '_InvokeQDPolyUPP'; { old name was CallQDPolyProc } + +{ + * InvokeQDRgnUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDRgnUPP(verb: GrafVerb; rgn: RgnHandle; userRoutine: QDRgnUPP); external name '_InvokeQDRgnUPP'; { old name was CallQDRgnProc } + +{ + * InvokeQDBitsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDBitsUPP(const (*var*) srcBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; maskRgn: RgnHandle; userRoutine: QDBitsUPP); external name '_InvokeQDBitsUPP'; { old name was CallQDBitsProc } + +{ + * InvokeQDCommentUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDCommentUPP(kind: SInt16; dataSize: SInt16; dataHandle: Handle; userRoutine: QDCommentUPP); external name '_InvokeQDCommentUPP'; { old name was CallQDCommentProc } + +{ + * InvokeQDTxMeasUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function InvokeQDTxMeasUPP(byteCount: SInt16; textAddr: UnivPtr; var numer: Point; var denom: Point; var info: FontInfo; userRoutine: QDTxMeasUPP): SInt16; external name '_InvokeQDTxMeasUPP'; { old name was CallQDTxMeasProc } + +{ + * InvokeQDGetPicUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDGetPicUPP(dataPtr: UnivPtr; byteCount: SInt16; userRoutine: QDGetPicUPP); external name '_InvokeQDGetPicUPP'; { old name was CallQDGetPicProc } + +{ + * InvokeQDPutPicUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDPutPicUPP(dataPtr: UnivPtr; byteCount: SInt16; userRoutine: QDPutPicUPP); external name '_InvokeQDPutPicUPP'; { old name was CallQDPutPicProc } + +{ + * InvokeQDOpcodeUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDOpcodeUPP(const (*var*) fromRect: Rect; const (*var*) toRect: Rect; opcode: UInt16; version: SInt16; userRoutine: QDOpcodeUPP); external name '_InvokeQDOpcodeUPP'; { old name was CallQDOpcodeProc } + +{ + * InvokeQDStdGlyphsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function InvokeQDStdGlyphsUPP(dataStream: UnivPtr; size: ByteCount; userRoutine: QDStdGlyphsUPP): OSStatus; external name '_InvokeQDStdGlyphsUPP'; { old name was CallQDStdGlyphsProc } + +{ + * InvokeQDJShieldCursorUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeQDJShieldCursorUPP(left: SInt16; top: SInt16; right: SInt16; bottom: SInt16; userRoutine: QDJShieldCursorUPP); external name '_InvokeQDJShieldCursorUPP'; { old name was CallQDJShieldCursorProc } + +{$ifc NOT OPAQUE_TOOLBOX_STRUCTS} + +type + GrafPortPtr = ^GrafPort; + GrafPort = record + device: SInt16; { not available in Carbon } + portBits: BitMap; { in Carbon use GetPortBitMapForCopyBits or IsPortColor } + portRect: Rect; { in Carbon use Get/SetPortBounds } + visRgn: RgnHandle; { in Carbon use Get/SetPortVisibleRegion } + clipRgn: RgnHandle; { in Carbon use Get/SetPortClipRegion } + bkPat: Pattern; { not available in Carbon all GrafPorts are CGrafPorts } + fillPat: Pattern; { not available in Carbon all GrafPorts are CGrafPorts } + pnLoc: Point; { in Carbon use GetPortPenLocation or MoveTo } + pnSize: Point; { in Carbon use Get/SetPortPenSize } + pnMode: SInt16; { in Carbon use Get/SetPortPenMode } + pnPat: Pattern; { not available in Carbon all GrafPorts are CGrafPorts } + pnVis: SInt16; { in Carbon use GetPortPenVisibility or Show/HidePen } + txFont: SInt16; { in Carbon use GetPortTextFont or TextFont } + txFace: StyleField; { in Carbon use GetPortTextFace or TextFace } + { StyleField occupies 16-bits, but only first 8-bits are used } + txMode: SInt16; { in Carbon use GetPortTextMode or TextMode } + txSize: SInt16; { in Carbon use GetPortTextSize or TextSize } + spExtra: Fixed; { in Carbon use GetPortSpExtra or SpaceExtra } + fgColor: SInt32; { not available in Carbon } + bkColor: SInt32; { not available in Carbon } + colrBit: SInt16; { not available in Carbon } + patStretch: SInt16; { not available in Carbon } + picSave: Handle; { in Carbon use IsPortPictureBeingDefined } + rgnSave: Handle; { not available in Carbon } + polySave: Handle; { not available in Carbon } + grafProcs: QDProcsPtr; { not available in Carbon all GrafPorts are CGrafPorts } + end; + + GrafPtr = ^GrafPort; + { + * This set of definitions "belongs" in Windows. + * But, there is a circularity in the headers where Windows includes Controls and + * Controls includes Windows. To break the circle, the information + * needed by Controls is moved from Windows to Quickdraw. + } + WindowPtr = GrafPtr; + DialogPtr = WindowPtr; +{$elsec} + +type + WindowPtr = ^SInt32; { an opaque 32-bit type } + WindowPtrPtr = ^WindowPtr; { when a var xx:WindowPtr parameter can be nil, it is changed to xx: WindowPtrPtr } + DialogPtr = ^SInt32; { an opaque 32-bit type } + DialogPtrPtr = ^DialogPtr; { when a var xx:DialogPtr parameter can be nil, it is changed to xx: DialogPtrPtr } + GrafPtr = ^SInt32; { an opaque 32-bit type } + GrafPtrPtr = ^GrafPtr; { when a var xx:GrafPtr parameter can be nil, it is changed to xx: GrafPtrPtr } +{$endc} + + WindowRef = WindowPtr; + WindowRefPtr = ^WindowRef; { when a var xx:WindowRef parameter can be nil, it is changed to xx: WindowRefPtr } + { DragConstraint constants to pass to DragGray,DragTheRgn, or ConstrainedDragRgn } + DragConstraint = UInt16; + +const + kNoConstraint = 0; + kVerticalConstraint = 1; + kHorizontalConstraint = 2; + + +type +{$ifc TYPED_FUNCTION_POINTERS} + DragGrayRgnProcPtr = procedure; +{$elsec} + DragGrayRgnProcPtr = ProcPtr; +{$endc} + + { + * Here ends the list of things that "belong" in Windows. + } + + + RGBColorPtr = ^RGBColor; + RGBColor = record + red: UInt16; { magnitude of red component } + green: UInt16; { magnitude of green component } + blue: UInt16; { magnitude of blue component } + end; + + RGBColorHdl = ^RGBColorPtr; +{$ifc TYPED_FUNCTION_POINTERS} + ColorSearchProcPtr = function(var rgb: RGBColor; var position: SInt32): boolean; +{$elsec} + ColorSearchProcPtr = ProcPtr; +{$endc} + +{$ifc TYPED_FUNCTION_POINTERS} + ColorComplementProcPtr = function(var rgb: RGBColor): boolean; +{$elsec} + ColorComplementProcPtr = ProcPtr; +{$endc} + +{$ifc OPAQUE_UPP_TYPES} + DragGrayRgnUPP = ^SInt32; { an opaque UPP } +{$elsec} + DragGrayRgnUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + ColorSearchUPP = ^SInt32; { an opaque UPP } +{$elsec} + ColorSearchUPP = UniversalProcPtr; +{$endc} +{$ifc OPAQUE_UPP_TYPES} + ColorComplementUPP = ^SInt32; { an opaque UPP } +{$elsec} + ColorComplementUPP = UniversalProcPtr; +{$endc} + +const + uppDragGrayRgnProcInfo = $00000000; + uppColorSearchProcInfo = $000003D0; + uppColorComplementProcInfo = $000000D0; + { + * NewDragGrayRgnUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewDragGrayRgnUPP(userRoutine: DragGrayRgnProcPtr): DragGrayRgnUPP; external name '_NewDragGrayRgnUPP'; { old name was NewDragGrayRgnProc } + +{ + * NewColorSearchUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewColorSearchUPP(userRoutine: ColorSearchProcPtr): ColorSearchUPP; external name '_NewColorSearchUPP'; { old name was NewColorSearchProc } + +{ + * NewColorComplementUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewColorComplementUPP(userRoutine: ColorComplementProcPtr): ColorComplementUPP; external name '_NewColorComplementUPP'; { old name was NewColorComplementProc } + +{ + * DisposeDragGrayRgnUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; + +procedure DisposeDragGrayRgnUPP(userUPP: DragGrayRgnUPP); external name '_DisposeDragGrayRgnUPP'; +{ + * DisposeColorSearchUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeColorSearchUPP(userUPP: ColorSearchUPP); external name '_DisposeColorSearchUPP'; + +{ + * DisposeColorComplementUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeColorComplementUPP(userUPP: ColorComplementUPP); external name '_DisposeColorComplementUPP'; + +{ + * InvokeDragGrayRgnUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; + +procedure InvokeDragGrayRgnUPP(userRoutine: DragGrayRgnUPP); external name '_InvokeDragGrayRgnUPP'; { old name was CallDragGrayRgnProc } +{ + * InvokeColorSearchUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function InvokeColorSearchUPP(var rgb: RGBColor; var position: SInt32; userRoutine: ColorSearchUPP): boolean; external name '_InvokeColorSearchUPP'; { old name was CallColorSearchProc } + +{ + * InvokeColorComplementUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function InvokeColorComplementUPP(var rgb: RGBColor; userRoutine: ColorComplementUPP): boolean; external name '_InvokeColorComplementUPP'; { old name was CallColorComplementProc } + +type + ColorSpecPtr = ^ColorSpec; + ColorSpec = record + value: SInt16; { index or other value } + rgb: RGBColor; { true color } + end; + + CSpecArray = array [0..0] of ColorSpec; + ColorTablePtr = ^ColorTable; + ColorTable = record + ctSeed: SInt32; { unique identifier for table } + ctFlags: SInt16; { high bit: 0 = PixMap; 1 = device } + ctSize: SInt16; { number of entries in CTTable } + ctTable: CSpecArray; { array [0..0] of ColorSpec } + end; + + CTabPtr = ^ColorTable; + CTabHandle = ^CTabPtr; + xColorSpecPtr = ^xColorSpec; + xColorSpec = record + value: SInt16; { index or other value } + rgb: RGBColor; { true color } + xalpha: SInt16; + end; + + xCSpecArray = array [0..0] of xColorSpec; + MatchRecPtr = ^MatchRec; + MatchRec = record + red: UInt16; + green: UInt16; + blue: UInt16; + matchData: SInt32; + end; + + { + QuickTime 3.0 makes PixMap data structure available on non-Mac OS's. + In order to implement PixMap in these alternate environments, the PixMap + had to be extended. The pmReserved field was changed to pmExt which is + a Handle to extra info. The planeBytes field was changed to pixelFormat. + + In OS X, Quickdraw also uses the new PixMap data structure. + } +{$ifc undefined OLDPIXMAPSTRUCT} +{$ifc TARGET_OS_MAC AND TARGET_API_MAC_OS8} +{$setc OLDPIXMAPSTRUCT := 1} +{$elsec} +{$setc OLDPIXMAPSTRUCT := 0} +{$endc} +{$endc} + + { pixel formats } + +const + k1MonochromePixelFormat = $00000001; { 1 bit indexed } + k2IndexedPixelFormat = $00000002; { 2 bit indexed } + k4IndexedPixelFormat = $00000004; { 4 bit indexed } + k8IndexedPixelFormat = $00000008; { 8 bit indexed } + k16BE555PixelFormat = $00000010; { 16 bit BE rgb 555 (Mac) } + k24RGBPixelFormat = $00000018; { 24 bit rgb } + k32ARGBPixelFormat = $00000020; { 32 bit argb (Mac) } + k1IndexedGrayPixelFormat = $00000021; { 1 bit indexed gray } + k2IndexedGrayPixelFormat = $00000022; { 2 bit indexed gray } + k4IndexedGrayPixelFormat = $00000024; { 4 bit indexed gray } + k8IndexedGrayPixelFormat = $00000028; { 8 bit indexed gray } + + + { values for PixMap.pixelFormat } + k16LE555PixelFormat = $4C353535 (* 'L555' *); { 16 bit LE rgb 555 (PC) } + k16LE5551PixelFormat = $35353531 (* '5551' *); { 16 bit LE rgb 5551 } + k16BE565PixelFormat = $42353635 (* 'B565' *); { 16 bit BE rgb 565 } + k16LE565PixelFormat = $4C353635 (* 'L565' *); { 16 bit LE rgb 565 } + k24BGRPixelFormat = $32344247 (* '24BG' *); { 24 bit bgr } + k32BGRAPixelFormat = $42475241 (* 'BGRA' *); { 32 bit bgra (Matrox) } + k32ABGRPixelFormat = $41424752 (* 'ABGR' *); { 32 bit abgr } + k32RGBAPixelFormat = $52474241 (* 'RGBA' *); { 32 bit rgba } + kYUVSPixelFormat = $79757673 (* 'yuvs' *); { YUV 4:2:2 byte ordering 16-unsigned = 'YUY2' } + kYUVUPixelFormat = $79757675 (* 'yuvu' *); { YUV 4:2:2 byte ordering 16-signed } + kYVU9PixelFormat = $59565539 (* 'YVU9' *); { YVU9 Planar 9 } + kYUV411PixelFormat = $59343131 (* 'Y411' *); { YUV 4:1:1 Interleaved 16 } + kYVYU422PixelFormat = $59565955 (* 'YVYU' *); { YVYU 4:2:2 byte ordering 16 } + kUYVY422PixelFormat = $55595659 (* 'UYVY' *); { UYVY 4:2:2 byte ordering 16 } + kYUV211PixelFormat = $59323131 (* 'Y211' *); { YUV 2:1:1 Packed 8 } + k2vuyPixelFormat = $32767579 (* '2vuy' *); { UYVY 4:2:2 byte ordering 16 } + + +type + PixMapPtr = ^PixMap; + PixMap = record + baseAddr: Ptr; { pointer to pixels } + rowBytes: SInt16; { offset to next line } { Carbon: uses extended rowbytes in pmExt field pixMap extension. Use ImageCompression's (QTGet|QTSet)PixMap(Handle|Ptr)RowBytes functions } + bounds: Rect; { encloses bitmap } + pmVersion: SInt16; { pixMap version number } + packType: SInt16; { defines packing format } + packSize: SInt32; { length of pixel data } + hRes: Fixed; { horiz. resolution (ppi) } + vRes: Fixed; { vert. resolution (ppi) } + pixelType: SInt16; { defines pixel type } + pixelSize: SInt16; { # bits in pixel } + cmpCount: SInt16; { # components in pixel } + cmpSize: SInt16; { # bits per component } +{$ifc OLDPIXMAPSTRUCT} + planeBytes: SInt32; { offset to next plane } + pmTable: CTabHandle; { color map for this pixMap } + pmReserved: SInt32; +{$elsec} + pixelFormat: OSType; {fourCharCode representation} + pmTable: CTabHandle; {color map for this pixMap} + pmExt: Handle; {Handle to pixMap extension} +{$endc} + end; + + PixMapHandle = ^PixMapPtr; + PixPatPtr = ^PixPat; + PixPat = record + patType: SInt16; { type of pattern } + patMap: PixMapHandle; { the pattern's pixMap } + patData: Handle; { pixmap's data } + patXData: Handle; { expanded Pattern data } + patXValid: SInt16; { flags whether expanded Pattern valid } + patXMap: Handle; { Handle to expanded Pattern data } + pat1Data: Pattern; { old-Style pattern/RGB color } + end; + + PixPatHandle = ^PixPatPtr; + CCrsrPtr = ^CCrsr; + CCrsr = record + crsrType: SInt16; { type of cursor } + crsrMap: PixMapHandle; { the cursor's pixmap } + crsrData: Handle; { cursor's data } + crsrXData: Handle; { expanded cursor data } + crsrXValid: SInt16; { depth of expanded data (0 if none) } + crsrXHandle: Handle; { future use } + crsr1Data: Bits16; { one-bit cursor } + crsrMask: Bits16; { cursor's mask } + crsrHotSpot: Point; { cursor's hotspot } + crsrXTable: SInt32; { private } + crsrID: SInt32; { private } + end; + + CCrsrHandle = ^CCrsrPtr; + GammaTblPtr = ^GammaTbl; + GammaTbl = record + gVersion: SInt16; { gamma version number } + gType: SInt16; { gamma data type } + gFormulaSize: SInt16; { Formula data size } + gChanCnt: SInt16; { number of channels of data } + gDataCnt: SInt16; { number of values/channel } + gDataWidth: SInt16; { bits/corrected value (data packed to next larger byte size) } + gFormulaData: array [0..0] of SInt16; { data for formulas followed by gamma values } + end; + + GammaTblHandle = ^GammaTblPtr; + ITabPtr = ^ITab; + ITab = record + iTabSeed: SInt32; { copy of CTSeed from source CTable } + iTabRes: SInt16; { bits/channel resolution of iTable } + iTTable: SInt8; { byte colortable index values } + end; + + ITabHandle = ^ITabPtr; + SProcRecPtr = ^SProcRec; + SProcRec = record + nxtSrch: Handle; { SProcHndl Handle to next SProcRec } + srchProc: ColorSearchUPP; { search procedure proc ptr } + end; + + SProcPtr = ^SProcRec; + SProcHndl = ^SProcPtr; + CProcRecPtr = ^CProcRec; + CProcRec = record + nxtComp: Handle; { CProcHndl Handle to next CProcRec } + compProc: ColorComplementUPP; { complement procedure proc ptr } + end; + + CProcPtr = ^CProcRec; + CProcHndl = ^CProcPtr; + { + QuickTime 3.0 makes GDevice data structure available on non-Mac OS's. + In order to implement GDevice in these alternate environments, the GDevice + had to be extended. The gdReserved field was changed to gdExt which is + a Handle to extra info. + } +{$ifc undefined OLDGDEVICESTRUCT} +{$ifc TARGET_OS_MAC AND TARGET_API_MAC_OS8} +{$setc OLDGDEVICESTRUCT := 1} +{$elsec} +{$setc OLDGDEVICESTRUCT := 0} +{$endc} +{$endc} + + GDevicePtr = ^GDevice; + GDPtr = ^GDevice; + GDHandle = ^GDPtr; + GDHandle_fix = GDHandle; { used as field type when a record declaration contains a GDHandle field identifier } + GDHandlePtr = ^GDHandle; { when a VAR xx: GDHandle parameter can be nil, it is changed to xx: GDHandlePtr } + GDevice = record + gdRefNum: SInt16; { driver's unit number } + gdID: SInt16; { client ID for search procs } + gdType: SInt16; { fixed/CLUT/direct } + gdITable: ITabHandle; { Handle to inverse lookup table } + gdResPref: SInt16; { preferred resolution of GDITable } + gdSearchProc: SProcHndl; { search proc list head } + gdCompProc: CProcHndl; { complement proc list } + gdFlags: SInt16; { grafDevice flags word } + gdPMap: PixMapHandle; { describing pixMap } + gdRefCon: SInt32; { reference value } + gdNextGD: GDHandle; { GDHandle Handle of next gDevice } + gdRect: Rect; { device's bounds in global coordinates } + gdMode: SInt32; { device's current mode } + gdCCBytes: SInt16; { depth of expanded cursor data } + gdCCDepth: SInt16; { depth of expanded cursor data } + gdCCXData: Handle; { Handle to cursor's expanded data } + gdCCXMask: Handle; { Handle to cursor's expanded mask } +{$ifc OLDGDEVICESTRUCT} + gdReserved: SInt32; { future use. MUST BE 0 } +{$elsec} + gdExt: Handle; {QuickTime 3.0 private info} +{$endc} + end; + + GrafVars = record + rgbOpColor: RGBColor; { color for addPin subPin and average } + rgbHiliteColor: RGBColor; { color for hiliting } + pmFgColor: Handle; { palette Handle for foreground color } + pmFgIndex: SInt16; { index value for foreground } + pmBkColor: Handle; { palette Handle for background color } + pmBkIndex: SInt16; { index value for background } + pmFlags: SInt16; { flags for Palette Manager } + end; + GVarPtr = ^GrafVars; + GVarHandle = ^GVarPtr; + +{$ifc NOT OPAQUE_TOOLBOX_STRUCTS} + CGrafPortPtr = ^CGrafPort; + CGrafPtr = ^CGrafPort; +{$elsec} + CGrafPtr = GrafPtr; +{$endc} + CGrafPtrPtr = ^CGrafPtr; + +{$ifc TYPED_FUNCTION_POINTERS} + QDPrinterStatusProcPtr = function(opcode: PrinterStatusOpcode; currentPort: CGrafPtr; printerStatus: UnivPtr): OSStatus; +{$elsec} + QDPrinterStatusProcPtr = ProcPtr; +{$endc} + +{$ifc OPAQUE_UPP_TYPES} + QDPrinterStatusUPP = ^SInt32; { an opaque UPP } +{$elsec} + QDPrinterStatusUPP = UniversalProcPtr; +{$endc} + + CQDProcsPtr = ^CQDProcs; + CQDProcs = record + textProc: QDTextUPP; + lineProc: QDLineUPP; + rectProc: QDRectUPP; + rRectProc: QDRRectUPP; + ovalProc: QDOvalUPP; + arcProc: QDArcUPP; + polyProc: QDPolyUPP; + rgnProc: QDRgnUPP; + bitsProc: QDBitsUPP; + commentProc: QDCommentUPP; + txMeasProc: QDTxMeasUPP; + getPicProc: QDGetPicUPP; + putPicProc: QDPutPicUPP; + opcodeProc: QDOpcodeUPP; + newProc1: UniversalProcPtr; { this is the StdPix bottleneck -- see ImageCompression.h } + glyphsProc: QDStdGlyphsUPP; { unused on Mac OS X. was newProc2; now used in Unicode text drawing } + printerStatusProc: QDPrinterStatusUPP; { was newProc3; now used to communicate status between Printing code and System imaging code } + newProc4: UniversalProcPtr; + newProc5: UniversalProcPtr; + newProc6: UniversalProcPtr; + end; + +{$ifc NOT OPAQUE_TOOLBOX_STRUCTS} + CGrafPort = record + device: SInt16; { not available in Carbon } + portPixMap: PixMapHandle; { in Carbon use GetPortPixMap } + portVersion: SInt16; { in Carbon use IsPortColor } + grafVars: Handle; { not available in Carbon } + chExtra: SInt16; { in Carbon use GetPortChExtra } + pnLocHFrac: SInt16; { in Carbon use Get/SetPortFracHPenLocation } + portRect: Rect; { in Carbon use Get/SetPortBounds } + visRgn: RgnHandle; { in Carbon use Get/SetPortVisibleRegion } + clipRgn: RgnHandle; { in Carbon use Get/SetPortClipRegion } + bkPixPat: PixPatHandle; { in Carbon use GetPortBackPixPat or BackPixPat } + rgbFgColor: RGBColor; { in Carbon use GetPortForeColor or RGBForeColor } + rgbBkColor: RGBColor; { in Carbon use GetPortBackColor or RGBBackColor } + pnLoc: Point; { in Carbon use GetPortPenLocation or MoveTo } + pnSize: Point; { in Carbon use Get/SetPortPenSize } + pnMode: SInt16; { in Carbon use Get/SetPortPenMode } + pnPixPat: PixPatHandle; { in Carbon use Get/SetPortPenPixPat } + fillPixPat: PixPatHandle; { in Carbon use GetPortFillPixPat } + pnVis: SInt16; { in Carbon use GetPortPenVisibility or Show/HidePen } + txFont: SInt16; { in Carbon use GetPortTextFont or TextFont } + txFace: StyleField; { in Carbon use GetPortTextFace or TextFace } + { StyleField occupies 16-bits, but only first 8-bits are used } + txMode: SInt16; { in Carbon use GetPortTextMode or TextMode } + txSize: SInt16; { in Carbon use GetPortTextSize or TextSize } + spExtra: Fixed; { in Carbon use GetPortSpExtra or SpaceExtra } + fgColor: SInt32; { not available in Carbon } + bkColor: SInt32; { not available in Carbon } + colrBit: SInt16; { not available in Carbon } + patStretch: SInt16; { not available in Carbon } + picSave: Handle; { in Carbon use IsPortPictureBeingDefined } + rgnSave: Handle; { in Carbon use IsPortRegionBeingDefined } + polySave: Handle; { in Carbon use IsPortPolyBeingDefined } + grafProcs: CQDProcsPtr; { in Carbon use Get/SetPortGrafProcs } + end; + +{$endc} + +{$ifc OPAQUE_TOOLBOX_STRUCTS} + CWindowPtr = WindowPtr; +{$elsec} + CWindowPtr = CGrafPtr; +{$endc} {OPAQUE_TOOLBOX_STRUCTS} + + ReqListRecPtr = ^ReqListRec; + ReqListRec = record + reqLSize: SInt16; { request list size } + reqLData: array [0..0] of SInt16; { request list data } + end; + + OpenCPicParamsPtr = ^OpenCPicParams; + OpenCPicParams = record + srcRect: Rect; + hRes: Fixed; + vRes: Fixed; + version: SInt16; + reserved1: SInt16; + reserved2: SInt32; + end; + + +const + kCursorImageMajorVersion = $0001; + kCursorImageMinorVersion = $0000; + + +type + CursorImageRecPtr = ^CursorImageRec; + CursorImageRec = record + majorVersion: UInt16; + minorVersion: UInt16; + cursorPixMap: PixMapHandle; + cursorBitMask: BitMapHandle; + end; + + CursorImagePtr = ^CursorImageRec; +{$ifc TYPED_FUNCTION_POINTERS} + DeviceLoopDrawingProcPtr = procedure(depth: SInt16; deviceFlags: SInt16; targetDevice: GDHandle; userData: SInt32); +{$elsec} + DeviceLoopDrawingProcPtr = ProcPtr; +{$endc} + +{$ifc OPAQUE_UPP_TYPES} + DeviceLoopDrawingUPP = ^SInt32; { an opaque UPP } +{$elsec} + DeviceLoopDrawingUPP = UniversalProcPtr; +{$endc} + +const + uppQDPrinterStatusProcInfo = $00000FF1; + uppDeviceLoopDrawingProcInfo = $00003E80; +{$ifc CALL_NOT_IN_CARBON} + { + * NewQDPrinterStatusUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: not available + * Mac OS X: not available + } +function NewQDPrinterStatusUPP(userRoutine: QDPrinterStatusProcPtr): QDPrinterStatusUPP; external name '_NewQDPrinterStatusUPP'; { old name was NewQDPrinterStatusProc } +{$endc} {CALL_NOT_IN_CARBON} + +{ + * NewDeviceLoopDrawingUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewDeviceLoopDrawingUPP(userRoutine: DeviceLoopDrawingProcPtr): DeviceLoopDrawingUPP; external name '_NewDeviceLoopDrawingUPP'; { old name was NewDeviceLoopDrawingProc } + +{$ifc CALL_NOT_IN_CARBON} +{ + * DisposeQDPrinterStatusUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: not available + * Mac OS X: not available + } +procedure DisposeQDPrinterStatusUPP(userUPP: QDPrinterStatusUPP); external name '_DisposeQDPrinterStatusUPP'; +{$endc} {CALL_NOT_IN_CARBON} + +{ + * DisposeDeviceLoopDrawingUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeDeviceLoopDrawingUPP(userUPP: DeviceLoopDrawingUPP); external name '_DisposeDeviceLoopDrawingUPP'; + +{$ifc CALL_NOT_IN_CARBON} +{ + * InvokeQDPrinterStatusUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: not available + * Mac OS X: not available + } +function InvokeQDPrinterStatusUPP(opcode: PrinterStatusOpcode; currentPort: CGrafPtr; printerStatus: UnivPtr; userRoutine: QDPrinterStatusUPP): OSStatus; external name '_InvokeQDPrinterStatusUPP'; { old name was CallQDPrinterStatusProc } +{$endc} {CALL_NOT_IN_CARBON} + +{ + * InvokeDeviceLoopDrawingUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvokeDeviceLoopDrawingUPP(depth: SInt16; deviceFlags: SInt16; targetDevice: GDHandle; userData: SInt32; userRoutine: DeviceLoopDrawingUPP); external name '_InvokeDeviceLoopDrawingUPP'; { old name was CallDeviceLoopDrawingProc } + +{$ifc NOT OPAQUE_TOOLBOX_STRUCTS OR NOT TARGET_API_MAC_CARBON} + +type + QDGlobalsPtr = ^QDGlobals; + QDGlobals = record + privates: packed array [0..75] of char; + randSeed: SInt32; { in Carbon use GetQDGlobalsRandomSeed } + screenBits: BitMap; { in Carbon use GetQDGlobalsScreenBits } + arrow: Cursor; { in Carbon use GetQDGlobalsArrow } + dkGray: Pattern; { in Carbon use GetQDGlobalsDarkGray } + ltGray: Pattern; { in Carbon use GetQDGlobalsLightGray } + gray: Pattern; { in Carbon use GetQDGlobalsGray } + black: Pattern; { in Carbon use GetQDGlobalsBlack } + white: Pattern; { in Carbon use GetQDGlobalsWhite } + thePort: GrafPtr; { in Carbon use GetQDGlobalsThePort } + end; + + QDGlobalsHdl = ^QDGlobalsPtr; + +{ To be in sync with the C interface to QuickDraw globals, pascal code must now } +{ qualify the QuickDraw globals with Òqd.Ó (e.g. InitGraf(@qd.thePort); ) } +var qd: QDGlobals; external name '_qd'; (* attribute const *) +{$endc} + +{$ifc CALL_NOT_IN_CARBON} +{ + * InitGraf() + * + * Availability: + * Non-Carbon CFM: in InterfaceLib 7.1 and later + * CarbonLib: not available + * Mac OS X: not available + } +procedure InitGraf(globalPtr: UnivPtr); external name '_InitGraf'; +{ + * OpenPort() + * + * Availability: + * Non-Carbon CFM: in InterfaceLib 7.1 and later + * CarbonLib: not available + * Mac OS X: not available + } +procedure OpenPort(port: GrafPtr); external name '_OpenPort'; +{ + * InitPort() + * + * Availability: + * Non-Carbon CFM: in InterfaceLib 7.1 and later + * CarbonLib: not available + * Mac OS X: not available + } +procedure InitPort(port: GrafPtr); external name '_InitPort'; +{ + * ClosePort() + * + * Availability: + * Non-Carbon CFM: in InterfaceLib 7.1 and later + * CarbonLib: not available + * Mac OS X: not available + } +procedure ClosePort(port: GrafPtr); external name '_ClosePort'; +{$endc} {CALL_NOT_IN_CARBON} + +{ + General comments about thread-safety of Quickdraw + ------------------------------------------------- + + The original design and implementation principles of Quickdraw seriously + conflict with the goal of making Quickdraw thread-safe. Many Quickdraw + functions rely on globals instead of explicit parameters. Even though the + current port (and the current GDevice) are being maintained per-thread, + a simple call like "MoveTo(x, y)" just doesn't make sense with preemptive threads, + if two different threads use the same port. Also, as soon as a client replaces + bottleneck procedures (SetStdCProcs), thread-safety is compromised. + That's why we maintain by default the "Not thread safe" attribute in Quickdraw APIs, + even though they may appear to be thread-safe. +} +{ + These are Carbon only routines. They do nothing at all on + Mac OS 8, but work flawlessly on Mac OS X. +} + +{ + * LockPortBits() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 +function LockPortBits(port: GrafPtr): OSErr; external name '_LockPortBits'; + +{ + * UnlockPortBits() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 +function UnlockPortBits(port: GrafPtr): OSErr; external name '_UnlockPortBits'; + +{ Break a region up into rectangles. } + + +const + kQDParseRegionFromTop = $01; + kQDParseRegionFromBottom = $02; + kQDParseRegionFromLeft = $04; + kQDParseRegionFromRight = $08; + kQDParseRegionFromTopLeft = $05; + kQDParseRegionFromBottomRight = $0A; + + +type + QDRegionParseDirection = SInt32; + +const + kQDRegionToRectsMsgInit = 1; + kQDRegionToRectsMsgParse = 2; + kQDRegionToRectsMsgTerminate = 3; + + +type +{$ifc TYPED_FUNCTION_POINTERS} + RegionToRectsProcPtr = function(message: UInt16; rgn: RgnHandle; const (*var*) rect_: Rect; refCon: UnivPtr): OSStatus; +{$elsec} + RegionToRectsProcPtr = ProcPtr; +{$endc} + +{$ifc OPAQUE_UPP_TYPES} + RegionToRectsUPP = ^SInt32; { an opaque UPP } +{$elsec} + RegionToRectsUPP = UniversalProcPtr; +{$endc} + +const + uppRegionToRectsProcInfo = $00003FB1; + { + * NewRegionToRectsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewRegionToRectsUPP(userRoutine: RegionToRectsProcPtr): RegionToRectsUPP; external name '_NewRegionToRectsUPP'; { old name was NewRegionToRectsProc } + +{ + * DisposeRegionToRectsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeRegionToRectsUPP(userUPP: RegionToRectsUPP); external name '_DisposeRegionToRectsUPP'; + +{ + * InvokeRegionToRectsUPP() + * + * Availability: + * Non-Carbon CFM: available as macro/inline + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function InvokeRegionToRectsUPP(message: UInt16; rgn: RgnHandle; const (*var*) rect_: Rect; refCon: UnivPtr; userRoutine: RegionToRectsUPP): OSStatus; external name '_InvokeRegionToRectsUPP'; { old name was CallRegionToRectsProc } + +{ + * QDRegionToRects() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: in CarbonLib 1.0 and later + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function QDRegionToRects(rgn: RgnHandle; dir: QDRegionParseDirection; proc: RegionToRectsUPP; userData: UnivPtr): OSStatus; external name '_QDRegionToRects'; + +{$ifc NOT TARGET_OS_MAC} +{$ifc CALL_NOT_IN_CARBON} +{ + * UpdatePort() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function UpdatePort(port: GrafPtr): OSErr; external name '_UpdatePort'; + +{ + * GetPortNativeWindow() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetPortNativeWindow(macPort: GrafPtr): Ptr; external name '_GetPortNativeWindow'; + +{ + * GetNativeWindowPort() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetNativeWindowPort(nativeWindow: UnivPtr): GrafPtr; external name '_GetNativeWindowPort'; + +{ + * MacRegionToNativeRegion() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function MacRegionToNativeRegion(macRegion: RgnHandle): Ptr; external name '_MacRegionToNativeRegion'; + +{ + * NativeRegionToMacRegion() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function NativeRegionToMacRegion(nativeRegion: UnivPtr): RgnHandle; external name '_NativeRegionToMacRegion'; + +{$endc} {CALL_NOT_IN_CARBON} +{$endc} + +{$ifc TARGET_OS_WIN32} +{$ifc CALL_NOT_IN_CARBON} +{ + * GetPortHWND() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetPortHWND(port: GrafPtr): Ptr; external name '_GetPortHWND'; + +{ + * GetHWNDPort() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetHWNDPort(theHWND: UnivPtr): GrafPtr; external name '_GetHWNDPort'; + +{ + * GetPortHDC() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetPortHDC(port: GrafPtr): Ptr; external name '_GetPortHDC'; + +{ + * GetPortHBITMAP() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetPortHBITMAP(port: GrafPtr): Ptr; external name '_GetPortHBITMAP'; + +{ + * GetPortHPALETTE() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetPortHPALETTE(port: GrafPtr): Ptr; external name '_GetPortHPALETTE'; + +{ + * GetPortHFONT() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetPortHFONT(port: GrafPtr): Ptr; external name '_GetPortHFONT'; + +{ + * GetDIBFromPICT() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetDIBFromPICT(hPict: PicHandle): Ptr; external name '_GetDIBFromPICT'; + +{ + * GetPICTFromDIB() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +function GetPICTFromDIB(h: UnivPtr): PicHandle; external name '_GetPICTFromDIB'; + +{$endc} {CALL_NOT_IN_CARBON} +{$endc} {TARGET_OS_WIN32} + +{ + * [Mac]SetPort() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetPort(port: GrafPtr); external name '_SetPort'; + +{ + * GetPort() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetPort(var port: GrafPtr); external name '_GetPort'; + +{ + * QDSwapPort() + * + * Summary: + * Combines a GetPort(&savePort); SetPort(newPort) sequence. + * + * Discussion: + * On X, the GetPort/SetPort calls act on per-thread globals, and + * cost more processor cycles than in the past, where they were + * simple memory accessors. To optimize, use the QDSwapPort call + * which combines both, and returns a Boolean indicating if the port + * actually did change. Typical usage: portChanged = + * QDSwapPort(newPort, &savePort); // some drawing into newPort if + * (portChanged) QDSwapPort(savePort, NULL); + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * inNewPort: + * The new port to be set. + * + * outOldPort: + * Receives the previous port. Can be NULL. + * + * Result: + * A Boolean indicating whether the port was changed, i.e. + * (inNewPort != *outOldPort) + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.5 and later + * Non-Carbon CFM: not available + } +//AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER; +function QDSwapPort(inNewPort: CGrafPtr; outOldPort: CGrafPtrPtr): boolean; external name '_QDSwapPort'; + +{ + * GrafDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GrafDevice(device: SInt16); external name '_GrafDevice'; + +{ + * SetPortBits() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetPortBits(const (*var*) bm: BitMap); external name '_SetPortBits'; + +{ + * PortSize() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PortSize(width: SInt16; height: SInt16); external name '_PortSize'; + +{ + * MovePortTo() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure MovePortTo(leftGlobal: SInt16; topGlobal: SInt16); external name '_MovePortTo'; + +{ + * SetOrigin() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetOrigin(h: SInt16; v: SInt16); external name '_SetOrigin'; + +{ + * SetClip() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetClip(rgn: RgnHandle); external name '_SetClip'; + +{ + * GetClip() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetClip(rgn: RgnHandle); external name '_GetClip'; + +{ + * ClipRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ClipRect(const (*var*) r: Rect); external name '_ClipRect'; + +{ + * BackPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure BackPat(const (*var*) pat: Pattern); external name '_BackPat'; + +{ + * InitCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InitCursor; external name '_InitCursor'; + +{ + * [Mac]SetCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetCursor(const (*var*) crsr: Cursor); external name '_SetCursor'; + +{ + * HideCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure HideCursor; external name '_HideCursor'; + +{ + * [Mac]ShowCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ShowCursor; external name '_ShowCursor'; + +{ + * ObscureCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ObscureCursor; external name '_ObscureCursor'; + +{ + * HidePen() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure HidePen; external name '_HidePen'; + +{ + * ShowPen() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ShowPen; external name '_ShowPen'; + +{ + * GetPen() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetPen(var pt: Point); external name '_GetPen'; + +{ + * GetPenState() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetPenState(var pnState: PenState); external name '_GetPenState'; + +{ + * SetPenState() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetPenState(const (*var*) pnState: PenState); external name '_SetPenState'; + +{ + * PenSize() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PenSize(width: SInt16; height: SInt16); external name '_PenSize'; + +{ + * PenMode() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PenMode(mode: SInt16); external name '_PenMode'; + +{ + * PenPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PenPat(const (*var*) pat: Pattern); external name '_PenPat'; + +{ + * PenNormal() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PenNormal; external name '_PenNormal'; + +{ + * MoveTo() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure MoveTo(h: SInt16; v: SInt16); external name '_MoveTo'; + +{ + * Move() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure Move(dh: SInt16; dv: SInt16); external name '_Move'; + +{ + * [Mac]LineTo() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure LineTo(h: SInt16; v: SInt16); external name '_LineTo'; + +{ + * Line() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure Line(dh: SInt16; dv: SInt16); external name '_Line'; + +{ + * ForeColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ForeColor(color: SInt32); external name '_ForeColor'; + +{ + * BackColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure BackColor(color: SInt32); external name '_BackColor'; + +{ + * ColorBit() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ColorBit(whichBit: SInt16); external name '_ColorBit'; + +{ + * [Mac]SetRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetRect(var r: Rect; left: SInt16; top: SInt16; right: SInt16; bottom: SInt16); external name '_SetRect'; + +{ + * [Mac]OffsetRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure OffsetRect(var r: Rect; dh: SInt16; dv: SInt16); external name '_OffsetRect'; + +{ + * [Mac]InsetRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InsetRect(var r: Rect; dh: SInt16; dv: SInt16); external name '_InsetRect'; + +{ + * SectRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function SectRect(const (*var*) src1: Rect; const (*var*) src2: Rect; var dstRect: Rect): boolean; external name '_SectRect'; + +{ + * [Mac]UnionRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure UnionRect(const (*var*) src1: Rect; const (*var*) src2: Rect; var dstRect: Rect); external name '_UnionRect'; + +{ + * [Mac]EqualRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function EqualRect(const (*var*) rect1: Rect; const (*var*) rect2: Rect): boolean; external name '_EqualRect'; + +{ + * EmptyRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function EmptyRect(const (*var*) r: Rect): boolean; external name '_EmptyRect'; + +{ + * [Mac]FrameRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FrameRect(const (*var*) r: Rect); external name '_FrameRect'; + +{ + * PaintRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PaintRect(const (*var*) r: Rect); external name '_PaintRect'; + +{ + * EraseRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure EraseRect(const (*var*) r: Rect); external name '_EraseRect'; + +{ + * [Mac]InvertRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvertRect(const (*var*) r: Rect); external name '_InvertRect'; + +{ + * [Mac]FillRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillRect(const (*var*) r: Rect; const (*var*) pat: Pattern); external name '_FillRect'; + +{ + * FrameOval() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FrameOval(const (*var*) r: Rect); external name '_FrameOval'; + +{ + * PaintOval() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PaintOval(const (*var*) r: Rect); external name '_PaintOval'; + +{ + * EraseOval() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure EraseOval(const (*var*) r: Rect); external name '_EraseOval'; + +{ + * InvertOval() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvertOval(const (*var*) r: Rect); external name '_InvertOval'; + +{ + * FillOval() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillOval(const (*var*) r: Rect; const (*var*) pat: Pattern); external name '_FillOval'; + +{ + * FrameRoundRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FrameRoundRect(const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16); external name '_FrameRoundRect'; + +{ + * PaintRoundRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PaintRoundRect(const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16); external name '_PaintRoundRect'; + +{ + * EraseRoundRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure EraseRoundRect(const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16); external name '_EraseRoundRect'; + +{ + * InvertRoundRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvertRoundRect(const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16); external name '_InvertRoundRect'; + +{ + * FillRoundRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillRoundRect(const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16; const (*var*) pat: Pattern); external name '_FillRoundRect'; + +{ + * FrameArc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FrameArc(const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16); external name '_FrameArc'; + +{ + * PaintArc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PaintArc(const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16); external name '_PaintArc'; + +{ + * EraseArc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure EraseArc(const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16); external name '_EraseArc'; + +{ + * InvertArc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvertArc(const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16); external name '_InvertArc'; + +{ + * FillArc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillArc(const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16; const (*var*) pat: Pattern); external name '_FillArc'; + +{ + * NewRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewRgn: RgnHandle; external name '_NewRgn'; + +{ + * OpenRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure OpenRgn; external name '_OpenRgn'; + +{ + * CloseRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CloseRgn(dstRgn: RgnHandle); external name '_CloseRgn'; + +{ + * BitMapToRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function BitMapToRegion(region: RgnHandle; const (*var*) bMap: BitMap): OSErr; external name '_BitMapToRegion'; + +{ + * RgnToHandle() + * + * Summary: + * Allows to "flatten" the opaque region data, for persistent + * storage. HandleToRgn is the reciprocal call. + * + * Discussion: + * These calls were introduced to facilitate Carbonization of + * applications, that relied on the undocumented format of region + * data. Since the internal (opaque) region format changed in 10.3, + * the purpose of these functions became questionable at best. They + * should be considered deprecated. Applications that need to + * preserve region data within their documents should convert the + * regions to a sequence of rectangles, using QDRegionToRects. The + * original region can then be rebuilt using RectRgn() and + * UnionRgn() calls. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * region: + * The input RgnHandle + * + * flattenedRgnDataHdl: + * A valid Handle that gets resized and filled with the region + * data. + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.3 and later + * Non-Carbon CFM: not available + } +//AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER; +procedure RgnToHandle(region: RgnHandle; flattenedRgnDataHdl: Handle); external name '_RgnToHandle'; + +{ + * HandleToRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.1 and later + * Non-Carbon CFM: not available + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure HandleToRgn(oldRegion: Handle; region: RgnHandle); external name '_HandleToRgn'; + +{ + * DisposeRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeRgn(rgn: RgnHandle); external name '_DisposeRgn'; + +{ + * [Mac]CopyRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CopyRgn(srcRgn: RgnHandle; dstRgn: RgnHandle); external name '_CopyRgn'; + +{ + * SetEmptyRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetEmptyRgn(rgn: RgnHandle); external name '_SetEmptyRgn'; + +{ + * [Mac]SetRectRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetRectRgn(rgn: RgnHandle; left: SInt16; top: SInt16; right: SInt16; bottom: SInt16); external name '_SetRectRgn'; + +{ + * RectRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure RectRgn(rgn: RgnHandle; const (*var*) r: Rect); external name '_RectRgn'; + +{ + * [Mac]OffsetRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure OffsetRgn(rgn: RgnHandle; dh: SInt16; dv: SInt16); external name '_OffsetRgn'; + +{ + * InsetRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InsetRgn(rgn: RgnHandle; dh: SInt16; dv: SInt16); external name '_InsetRgn'; + +{ + * SectRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SectRgn(srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle); external name '_SectRgn'; + +{ + * [Mac]UnionRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure UnionRgn(srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle); external name '_UnionRgn'; + +{ + * DiffRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DiffRgn(srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle); external name '_DiffRgn'; + +{ + * [Mac]XorRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure XorRgn(srcRgnA: RgnHandle; srcRgnB: RgnHandle; dstRgn: RgnHandle); external name '_XorRgn'; + +{ + * RectInRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function RectInRgn(const (*var*) r: Rect; rgn: RgnHandle): boolean; external name '_RectInRgn'; + +{ + * [Mac]EqualRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function EqualRgn(rgnA: RgnHandle; rgnB: RgnHandle): boolean; external name '_EqualRgn'; + +{ + * EmptyRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function EmptyRgn(rgn: RgnHandle): boolean; external name '_EmptyRgn'; + +{ + * [Mac]FrameRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FrameRgn(rgn: RgnHandle); external name '_FrameRgn'; + +{ + * [Mac]PaintRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PaintRgn(rgn: RgnHandle); external name '_PaintRgn'; + +{ + * EraseRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure EraseRgn(rgn: RgnHandle); external name '_EraseRgn'; + +{ + * [Mac]InvertRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvertRgn(rgn: RgnHandle); external name '_InvertRgn'; + +{ + * [Mac]FillRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillRgn(rgn: RgnHandle; const (*var*) pat: Pattern); external name '_FillRgn'; + +{ + * ScrollRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ScrollRect(const (*var*) r: Rect; dh: SInt16; dv: SInt16; updateRgn: RgnHandle); external name '_ScrollRect'; + +{ + * CopyBits() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CopyBits(const (*var*) srcBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; maskRgn: RgnHandle); external name '_CopyBits'; + +{ + * SeedFill() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SeedFill(srcPtr: UnivPtr; dstPtr: UnivPtr; srcRow: SInt16; dstRow: SInt16; height: SInt16; words: SInt16; seedH: SInt16; seedV: SInt16); external name '_SeedFill'; + +{ + * CalcMask() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CalcMask(srcPtr: UnivPtr; dstPtr: UnivPtr; srcRow: SInt16; dstRow: SInt16; height: SInt16; words: SInt16); external name '_CalcMask'; + +{ + * CopyMask() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CopyMask(const (*var*) srcBits: BitMap; const (*var*) maskBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) maskRect: Rect; const (*var*) dstRect: Rect); external name '_CopyMask'; + +{ + * OpenPicture() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function OpenPicture(const (*var*) picFrame: Rect): PicHandle; external name '_OpenPicture'; + +{ + * PicComment() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PicComment(kind: SInt16; dataSize: SInt16; dataHandle: Handle); external name '_PicComment'; + +{ + * ClosePicture() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ClosePicture; external name '_ClosePicture'; + +{ + * QDGetPictureBounds() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.3 and later in ApplicationServices.framework + * CarbonLib: not available + * Non-Carbon CFM: not available + } +//AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER; +function QDGetPictureBounds( picH: PicHandle; var outRect: Rect ): RectPtr; external name '_QDGetPictureBounds'; (* attribute ignoreable *) + +{ + * DrawPicture() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DrawPicture(myPicture: PicHandle; const (*var*) dstRect: Rect); external name '_DrawPicture'; + +{ + * KillPicture() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure KillPicture(myPicture: PicHandle); external name '_KillPicture'; + +{ + * OpenPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function OpenPoly: PolyHandle; external name '_OpenPoly'; + +{ + * ClosePoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ClosePoly; external name '_ClosePoly'; + +{ + * KillPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure KillPoly(poly: PolyHandle); external name '_KillPoly'; + +{ + * OffsetPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure OffsetPoly(poly: PolyHandle; dh: SInt16; dv: SInt16); external name '_OffsetPoly'; + +{ + * FramePoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FramePoly(poly: PolyHandle); external name '_FramePoly'; + +{ + * PaintPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PaintPoly(poly: PolyHandle); external name '_PaintPoly'; + +{ + * ErasePoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ErasePoly(poly: PolyHandle); external name '_ErasePoly'; + +{ + * InvertPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvertPoly(poly: PolyHandle); external name '_InvertPoly'; + +{ + * FillPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillPoly(poly: PolyHandle; const (*var*) pat: Pattern); external name '_FillPoly'; + +{ + * SetPt() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetPt(var pt: Point; h: SInt16; v: SInt16); external name '_SetPt'; + +{ + * LocalToGlobal() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure LocalToGlobal(var pt: Point); external name '_LocalToGlobal'; + +{ + * GlobalToLocal() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GlobalToLocal(var pt: Point); external name '_GlobalToLocal'; + +{ + * Random() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function Random: SInt16; external name '_Random'; + +{ + * StuffHex() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StuffHex(thingPtr: UnivPtr; const (*var*) s: Str255); external name '_StuffHex'; + +{ + * [Mac]GetPixel() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetPixel(h: SInt16; v: SInt16): boolean; external name '_GetPixel'; + +{ + * ScalePt() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ScalePt(var pt: Point; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect); external name '_ScalePt'; + +{ + * MapPt() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure MapPt(var pt: Point; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect); external name '_MapPt'; + +{ + * MapRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure MapRect(var r: Rect; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect); external name '_MapRect'; + +{ + * MapRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure MapRgn(rgn: RgnHandle; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect); external name '_MapRgn'; + +{ + * MapPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure MapPoly(poly: PolyHandle; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect); external name '_MapPoly'; + +{ + * SetStdProcs() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetStdProcs(var procs: QDProcs); external name '_SetStdProcs'; + +{ + * StdRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdRect(verb: GrafVerb; const (*var*) r: Rect); external name '_StdRect'; + +{ + * StdRRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdRRect(verb: GrafVerb; const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16); external name '_StdRRect'; + +{ + * StdOval() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdOval(verb: GrafVerb; const (*var*) r: Rect); external name '_StdOval'; + +{ + * StdArc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdArc(verb: GrafVerb; const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16); external name '_StdArc'; + +{ + * StdPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdPoly(verb: GrafVerb; poly: PolyHandle); external name '_StdPoly'; + +{ + * StdRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdRgn(verb: GrafVerb; rgn: RgnHandle); external name '_StdRgn'; + +{ + * StdBits() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdBits(const (*var*) srcBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; maskRgn: RgnHandle); external name '_StdBits'; + +{ + * StdComment() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdComment(kind: SInt16; dataSize: SInt16; dataHandle: Handle); external name '_StdComment'; + +{ + * StdGetPic() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdGetPic(dataPtr: UnivPtr; byteCount: SInt16); external name '_StdGetPic'; + +{ + * StdPutPic() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdPutPic(dataPtr: UnivPtr; byteCount: SInt16); external name '_StdPutPic'; + +{ + * StdOpcode() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdOpcode(const (*var*) fromRect: Rect; const (*var*) toRect: Rect; opcode: UInt16; version: SInt16); external name '_StdOpcode'; + +{ + * AddPt() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure AddPt(src: Point; var dst: Point); external name '_AddPt'; + +{ + * EqualPt() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function EqualPt(pt1: Point; pt2: Point): boolean; external name '_EqualPt'; + +{ + * [Mac]PtInRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function PtInRect(pt: Point; const (*var*) r: Rect): boolean; external name '_PtInRect'; + +{ + * Pt2Rect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure Pt2Rect(pt1: Point; pt2: Point; var dstRect: Rect); external name '_Pt2Rect'; + +{ + * PtToAngle() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PtToAngle(const (*var*) r: Rect; pt: Point; var angle: SInt16); external name '_PtToAngle'; + +{ + * SubPt() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SubPt(src: Point; var dst: Point); external name '_SubPt'; + +{ + * PtInRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function PtInRgn(pt: Point; rgn: RgnHandle): boolean; external name '_PtInRgn'; + +{ + * StdLine() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure StdLine(newPt: Point); external name '_StdLine'; + +{$ifc CALL_NOT_IN_CARBON} +{ + * OpenCPort() + * + * Availability: + * Non-Carbon CFM: in InterfaceLib 7.1 and later + * CarbonLib: not available + * Mac OS X: not available + } +procedure OpenCPort(port: CGrafPtr); external name '_OpenCPort'; +{ + * InitCPort() + * + * Availability: + * Non-Carbon CFM: in InterfaceLib 7.1 and later + * CarbonLib: not available + * Mac OS X: not available + } +procedure InitCPort(port: CGrafPtr); external name '_InitCPort'; +{ + * CloseCPort() + * + * Availability: + * Non-Carbon CFM: in InterfaceLib 7.1 and later + * CarbonLib: not available + * Mac OS X: not available + } +procedure CloseCPort(port: CGrafPtr); external name '_CloseCPort'; +{$endc} {CALL_NOT_IN_CARBON} + +{ + * NewPixMap() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewPixMap: PixMapHandle; external name '_NewPixMap'; + +{ + * DisposePixMap() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposePixMap(pm: PixMapHandle); external name '_DisposePixMap'; + +{ + * CopyPixMap() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CopyPixMap(srcPM: PixMapHandle; dstPM: PixMapHandle); external name '_CopyPixMap'; + +{ + * NewPixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewPixPat: PixPatHandle; external name '_NewPixPat'; + +{ + * DisposePixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposePixPat(pp: PixPatHandle); external name '_DisposePixPat'; + +{ + * CopyPixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CopyPixPat(srcPP: PixPatHandle; dstPP: PixPatHandle); external name '_CopyPixPat'; + +{ + * PenPixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PenPixPat(pp: PixPatHandle); external name '_PenPixPat'; + +{ + * BackPixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure BackPixPat(pp: PixPatHandle); external name '_BackPixPat'; + +{ + * GetPixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetPixPat(patID: SInt16): PixPatHandle; external name '_GetPixPat'; + +{ + * MakeRGBPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure MakeRGBPat(pp: PixPatHandle; const (*var*) myColor: RGBColor); external name '_MakeRGBPat'; + +{ + * FillCRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillCRect(const (*var*) r: Rect; pp: PixPatHandle); external name '_FillCRect'; + +{ + * FillCOval() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillCOval(const (*var*) r: Rect; pp: PixPatHandle); external name '_FillCOval'; + +{ + * FillCRoundRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillCRoundRect(const (*var*) r: Rect; ovalWidth: SInt16; ovalHeight: SInt16; pp: PixPatHandle); external name '_FillCRoundRect'; + +{ + * FillCArc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillCArc(const (*var*) r: Rect; startAngle: SInt16; arcAngle: SInt16; pp: PixPatHandle); external name '_FillCArc'; + +{ + * FillCRgn() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillCRgn(rgn: RgnHandle; pp: PixPatHandle); external name '_FillCRgn'; + +{ + * FillCPoly() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure FillCPoly(poly: PolyHandle; pp: PixPatHandle); external name '_FillCPoly'; + +{ + * RGBForeColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure RGBForeColor(const (*var*) color: RGBColor); external name '_RGBForeColor'; + +{ + * RGBBackColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure RGBBackColor(const (*var*) color: RGBColor); external name '_RGBBackColor'; + +{ + * SetCPixel() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetCPixel(h: SInt16; v: SInt16; const (*var*) cPix: RGBColor); external name '_SetCPixel'; + +{ + * SetPortPix() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetPortPix(pm: PixMapHandle); external name '_SetPortPix'; + +{ + * GetCPixel() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetCPixel(h: SInt16; v: SInt16; var cPix: RGBColor); external name '_GetCPixel'; + +{ + * GetForeColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetForeColor(var color: RGBColor); external name '_GetForeColor'; + +{ + * GetBackColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetBackColor(var color: RGBColor); external name '_GetBackColor'; + +{ + * SeedCFill() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SeedCFill(const (*var*) srcBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; seedH: SInt16; seedV: SInt16; matchProc: ColorSearchUPP; matchData: SInt32); external name '_SeedCFill'; + +{ + * CalcCMask() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CalcCMask(const (*var*) srcBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; const (*var*) seedRGB: RGBColor; matchProc: ColorSearchUPP; matchData: SInt32); external name '_CalcCMask'; + +{ + * OpenCPicture() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function OpenCPicture(const (*var*) newHeader: OpenCPicParams): PicHandle; external name '_OpenCPicture'; + +{ + * OpColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure OpColor(const (*var*) color: RGBColor); external name '_OpColor'; + +{ + * HiliteColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure HiliteColor(const (*var*) color: RGBColor); external name '_HiliteColor'; + +{ + * DisposeCTable() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeCTable(cTable: CTabHandle); external name '_DisposeCTable'; + +{ + * GetCTable() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetCTable(ctID: SInt16): CTabHandle; external name '_GetCTable'; + +{ + * GetCCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetCCursor(crsrID: SInt16): CCrsrHandle; external name '_GetCCursor'; + +{ + * SetCCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetCCursor(cCrsr: CCrsrHandle); external name '_SetCCursor'; + +{ + * AllocCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure AllocCursor; external name '_AllocCursor'; + +{ + * DisposeCCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeCCursor(cCrsr: CCrsrHandle); external name '_DisposeCCursor'; + +{ GetCIcon(), PlotCIcon(), and DisposeCIcon() moved to Icons.h } + +{ + * SetStdCProcs() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetStdCProcs(var procs: CQDProcs); external name '_SetStdCProcs'; + +{ + * GetMaxDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetMaxDevice(const (*var*) globalRect: Rect): GDHandle; external name '_GetMaxDevice'; + +{ + * GetCTSeed() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetCTSeed: SInt32; external name '_GetCTSeed'; + +{ + * GetDeviceList() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetDeviceList: GDHandle; external name '_GetDeviceList'; + +{ + * GetMainDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetMainDevice: GDHandle; external name '_GetMainDevice'; + +{ + * GetNextDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetNextDevice(curDevice: GDHandle): GDHandle; external name '_GetNextDevice'; + +{ + * TestDeviceAttribute() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function TestDeviceAttribute(gdh: GDHandle; attribute: SInt16): boolean; external name '_TestDeviceAttribute'; + +{ + * SetDeviceAttribute() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetDeviceAttribute(gdh: GDHandle; attribute: SInt16; value: boolean); external name '_SetDeviceAttribute'; + +{ + * InitGDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InitGDevice(qdRefNum: SInt16; mode: SInt32; gdh: GDHandle); external name '_InitGDevice'; + +{ + * NewGDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function NewGDevice(refNum: SInt16; mode: SInt32): GDHandle; external name '_NewGDevice'; + +{ + * DisposeGDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DisposeGDevice(gdh: GDHandle); external name '_DisposeGDevice'; + +{ + * SetGDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetGDevice(gd: GDHandle); external name '_SetGDevice'; + +{ + * GetGDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetGDevice: GDHandle; external name '_GetGDevice'; + +{ + * Color2Index() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function Color2Index(const (*var*) myColor: RGBColor): SInt32; external name '_Color2Index'; + +{ + * Index2Color() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure Index2Color(index: SInt32; var aColor: RGBColor); external name '_Index2Color'; + +{ + * InvertColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure InvertColor(var myColor: RGBColor); external name '_InvertColor'; + +{ + * RealColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function RealColor(const (*var*) color: RGBColor): boolean; external name '_RealColor'; + +{ + * GetSubTable() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetSubTable(myColors: CTabHandle; iTabRes: SInt16; targetTbl: CTabHandle); external name '_GetSubTable'; + +{ + * MakeITable() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure MakeITable(cTabH: CTabHandle; iTabH: ITabHandle; res: SInt16); external name '_MakeITable'; + +{ + * AddSearch() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure AddSearch(searchProc: ColorSearchUPP); external name '_AddSearch'; + +{ + * AddComp() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure AddComp(compProc: ColorComplementUPP); external name '_AddComp'; + +{ + * DelSearch() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DelSearch(searchProc: ColorSearchUPP); external name '_DelSearch'; + +{ + * DelComp() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DelComp(compProc: ColorComplementUPP); external name '_DelComp'; + +{ + * SetClientID() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetClientID(id: SInt16); external name '_SetClientID'; + +{ + * ProtectEntry() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ProtectEntry(index: SInt16; protect: boolean); external name '_ProtectEntry'; + +{ + * ReserveEntry() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ReserveEntry(index: SInt16; reserve: boolean); external name '_ReserveEntry'; + +{ + * SetEntries() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SetEntries(start: SInt16; count: SInt16; var aTable: CSpecArray); external name '_SetEntries'; + +{ + * SaveEntries() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure SaveEntries(srcTable: CTabHandle; resultTable: CTabHandle; var selection: ReqListRec); external name '_SaveEntries'; + +{ + * RestoreEntries() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure RestoreEntries(srcTable: CTabHandle; dstTable: CTabHandle; var selection: ReqListRec); external name '_RestoreEntries'; + +{ + * QDError() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function QDError: SInt16; external name '_QDError'; + +{ + * CopyDeepMask() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure CopyDeepMask(const (*var*) srcBits: BitMap; const (*var*) maskBits: BitMap; const (*var*) dstBits: BitMap; const (*var*) srcRect: Rect; const (*var*) maskRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; maskRgn: RgnHandle); external name '_CopyDeepMask'; + +{ + * DeviceLoop() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure DeviceLoop(drawingRgn: RgnHandle; drawingProc: DeviceLoopDrawingUPP; userData: SInt32; flags: DeviceLoopFlags); external name '_DeviceLoop'; + +{ + * GetMaskTable() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetMaskTable: Ptr; external name '_GetMaskTable'; + +{ + * GetPattern() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetPattern(patternID: SInt16): PatHandle; external name '_GetPattern'; + +{ + * [Mac]GetCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetCursor(cursorID: SInt16): CursHandle; external name '_GetCursor'; + +{ + * GetPicture() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetPicture(pictureID: SInt16): PicHandle; external name '_GetPicture'; + +{ + * DeltaPoint() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function DeltaPoint(ptA: Point; ptB: Point): SInt32; external name '_DeltaPoint'; + +{ + * ShieldCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ShieldCursor(const (*var*) shieldRect: Rect; offsetPt: Point); external name '_ShieldCursor'; + +{ + * ScreenRes() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure ScreenRes(var scrnHRes: SInt16; var scrnVRes: SInt16); external name '_ScreenRes'; + +{ + * GetIndPattern() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure GetIndPattern(var thePat: Pattern; patternListID: SInt16; index: SInt16); external name '_GetIndPattern'; + +{$ifc OLDROUTINENAMES} +{$ifc CALL_NOT_IN_CARBON} +{ + * DisposPixMap() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +procedure DisposPixMap(pm: PixMapHandle); external name '_DisposPixMap'; +{ + * DisposPixPat() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +procedure DisposPixPat(pp: PixPatHandle); external name '_DisposPixPat'; +{ + * DisposCTable() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +procedure DisposCTable(cTable: CTabHandle); external name '_DisposCTable'; +{ + * DisposCCursor() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +procedure DisposCCursor(cCrsr: CCrsrHandle); external name '_DisposCCursor'; +{ + * DisposGDevice() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + } +procedure DisposGDevice(gdh: GDHandle); external name '_DisposGDevice'; +{$endc} {CALL_NOT_IN_CARBON} +{$endc} {OLDROUTINENAMES} + +{ + From ToolUtils.i +} +{ + * PackBits() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure PackBits(var srcPtr: Ptr; var dstPtr: Ptr; srcBytes: SInt16); external name '_PackBits'; + +{ + * UnpackBits() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +procedure UnpackBits(var srcPtr: Ptr; var dstPtr: Ptr; dstBytes: SInt16); external name '_UnpackBits'; + +{ + * SlopeFromAngle() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function SlopeFromAngle(angle: SInt16): Fixed; external name '_SlopeFromAngle'; + +{ + * AngleFromSlope() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function AngleFromSlope(slope: Fixed): SInt16; external name '_AngleFromSlope'; + +{ New transfer modes } + +const + colorXorXFer = 52; + noiseXFer = 53; + customXFer = 54; + + { Custom XFer flags } + kXFer1PixelAtATime = $00000001; { 1 pixel passed to custom XFer proc } + kXFerConvertPixelToRGB32 = $00000002; { All color depths converted to 32 bit RGB } + + +type + CustomXFerRecPtr = ^CustomXFerRec; + CustomXFerRec = record + version: UInt32; + srcPixels: Ptr; + destPixels: Ptr; + resultPixels: Ptr; + refCon: UInt32; + pixelSize: UInt32; + pixelCount: UInt32; + firstPixelHV: Point; + destBounds: Rect; + end; + +{$ifc TYPED_FUNCTION_POINTERS} + CustomXFerProcPtr = procedure(info: CustomXFerRecPtr); +{$elsec} + CustomXFerProcPtr = ProcPtr; +{$endc} + +{ + * GetPortCustomXFerProc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 9.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetPortCustomXFerProc(port: CGrafPtr; var proc: CustomXFerProcPtr; var flags: UInt32; var refCon: UInt32): OSErr; external name '_GetPortCustomXFerProc'; + +{ + * SetPortCustomXFerProc() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 9.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function SetPortCustomXFerProc(port: CGrafPtr; proc: CustomXFerProcPtr; flags: UInt32; refCon: UInt32): OSErr; external name '_SetPortCustomXFerProc'; + +const + kCursorComponentsVersion = $00010001; + + kCursorComponentType = $63757273 (* 'curs' *); + + { Cursor Component capabilities flags } + cursorDoesAnimate = $00000001; + cursorDoesHardware = $00000002; + cursorDoesUnreadableScreenBits = $00000004; + + { Cursor Component output mode flags } + kRenderCursorInHardware = $00000001; + kRenderCursorInSoftware = $00000002; + + { Cursor Component Info } + +type + CursorInfoPtr = ^CursorInfo; + CursorInfo = record + version: SInt32; { use kCursorComponentsVersion } + capabilities: SInt32; + animateDuration: SInt32; { approximate time between animate tickles } + bounds: Rect; + hotspot: Point; + reserved: SInt32; { must set to zero } + end; + + { Cursor Component Selectors } + +const + kCursorComponentInit = $0001; + kCursorComponentGetInfo = $0002; + kCursorComponentSetOutputMode = $0003; + kCursorComponentSetData = $0004; + kCursorComponentReconfigure = $0005; + kCursorComponentDraw = $0006; + kCursorComponentErase = $0007; + kCursorComponentMove = $0008; + kCursorComponentAnimate = $0009; + kCursorComponentLastReserved = $0050; + +{ + * OpenCursorComponent() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 9.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function OpenCursorComponent(c: Component; var ci: ComponentInstance): OSErr; external name '_OpenCursorComponent'; + +{ + * CloseCursorComponent() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 9.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function CloseCursorComponent(ci: ComponentInstance): OSErr; external name '_CloseCursorComponent'; + +{ + * SetCursorComponent() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 9.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function SetCursorComponent(ci: ComponentInstance): OSErr; external name '_SetCursorComponent'; + +{ + * CursorComponentChanged() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 9.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function CursorComponentChanged(ci: ComponentInstance): OSErr; external name '_CursorComponentChanged'; + +{ + * CursorComponentSetData() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 9.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function CursorComponentSetData(ci: ComponentInstance; data: SInt32): OSErr; external name '_CursorComponentSetData'; + +{ Quickdraw-specific ColorSync matching } +{ Mac OS X active declarations location. CMApplication.p[.pas] text copy not compiled for Mac OS X. } + +{ + * CWMatchPixMap() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available [in CarbonLib 1.0 and later] + * Non-Carbon CFM: not available [in ColorSyncLib 1.0 and later] + } +function CWMatchPixMap( cw: CMWorldRef; var myPixMap: PixMap; progressProc: CMBitmapCallBackUPP { can be NULL }; refCon: UnivPtr ): CMError; external name '_CWMatchPixMap'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * CWCheckPixMap() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available [in CarbonLib 1.0 and later] + * Non-Carbon CFM: not available [in ColorSyncLib 1.0 and later] + } +function CWCheckPixMap( cw: CMWorldRef; var myPixMap: PixMap; progressProc: CMBitmapCallBackUPP { can be NULL }; refCon: UnivPtr; var resultBitMap: BitMap ): CMError; external name '_CWCheckPixMap'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * NCMBeginMatching() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available [in CarbonLib 1.0 and later] + * Non-Carbon CFM: not available [in ColorSyncLib 2.0 and later] + } +function NCMBeginMatching( src: CMProfileRef; dst: CMProfileRef; var myRef: CMMatchRef ): CMError; external name '_NCMBeginMatching'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * CMEndMatching() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available [in CarbonLib 1.0 and later] + * Non-Carbon CFM: not available [in ColorSyncLib 2.0 and later] + } +procedure CMEndMatching( myRef: CMMatchRef ); external name '_CMEndMatching'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * NCMDrawMatchedPicture() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available [in CarbonLib 1.0 and later] + * Non-Carbon CFM: not available [in ColorSyncLib 2.0 and later] + } +procedure NCMDrawMatchedPicture( myPicture: PicHandle; dst: CMProfileRef; var myRect: Rect ); external name '_NCMDrawMatchedPicture'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * CMEnableMatchingComment() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available [in CarbonLib 1.0 and later] + * Non-Carbon CFM: not available [in ColorSyncLib 2.0 and later] + } +procedure CMEnableMatchingComment( enableIt: Boolean ); external name '_CMEnableMatchingComment'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * NCMUseProfileComment() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available [in CarbonLib 1.0 and later] + * Non-Carbon CFM: not available [in ColorSyncLib 2.0 and later] + } +function NCMUseProfileComment( prof: CMProfileRef; flags: UInt32 ): CMError; external name '_NCMUseProfileComment'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ Available in CarbonLib... } +{ + * IsValidPort() *** DEPRECATED *** + * + * Summary: + * Attempts to detect invalid ports + * + * Discussion: + * A grafPort structure contains many nested Handles. An attempt to + * guarantee that they are all valid is prohibitively costly. Since + * 10.1, IsValidPort only compares the CGrafPtr parameter against + * the list of grafPorts maintained internally by Quickdraw. The + * function returns true if it is found, false otherwise. This is + * enough to detect ports belonging to windows that have been + * closed, or GWorlds that have been deallocated. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * port: + * The CGrafPtr in question. + * + * Result: + * If false, port is definitely invalid. If true, port is probably + * valid (unless memory has been clobbered) + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.1 and later + * Non-Carbon CFM: not available + } +function IsValidPort(port: CGrafPtr): boolean; external name '_IsValidPort'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * IsValidRgnHandle() + * + * Summary: + * Tests a RgnHandle + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * rgn: + * The RgnHandle in question. + * + * Result: + * If false, either the RgnHandle parameter is NULL, or has been + * deallocated, or the region data are corrupt. The latter can + * happen when memory has been overwritten. If true, the RgnHandle + * is valid. NOTE: In 10.3, the internal (opaque) format of region + * data has changed, to overcome size and performance limitations. + * Do not attempt to access region data by dereferencing the + * RgnHandle. + * + * Availability: + * Mac OS X: in version 10.3 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later + * Non-Carbon CFM: not available + } +function IsValidRgnHandle( rgn: RgnHandle ): Boolean; external name '_IsValidRgnHandle'; +(* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) + +{$ifc ACCESSOR_CALLS_ARE_FUNCTIONS} +{ GrafPort } +{ Getters } +{ + * GetPortPixMap() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortPixMap(port: CGrafPtr): PixMapHandle; external name '_GetPortPixMap'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetPortBitMapForCopyBits() + * + * Discussion: + * GetPortBitMapForCopyBits is provided for the specific purpose of + * using the return value as a parameter to CopyBits. The return + * value can be used as the srcBits or dstBits parameter to CopyBits + * regardless of whether the port is color. If the port parameter is + * a color port, however, the returned BitMapPtr does not actually + * point to a BitMap; it points to the PixMapHandle and other fields + * in the CGrafPort structure. You should not dereference the + * BitMapPtr or otherwise depend on its contents unless you've + * confirmed that this port is a non-color port. + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0.2 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0.2 and later + } +function GetPortBitMapForCopyBits(port: CGrafPtr): BitMapPtr; external name '_GetPortBitMapForCopyBits'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortBounds() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortBounds(port: CGrafPtr; var rect_: Rect): RectPtr; external name '_GetPortBounds'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortForeColor() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortForeColor(port: CGrafPtr; var foreColor: RGBColor): RGBColorPtr; external name '_GetPortForeColor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortBackColor() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortBackColor(port: CGrafPtr; var backColor: RGBColor): RGBColorPtr; external name '_GetPortBackColor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortOpColor() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortOpColor(port: CGrafPtr; var opColor: RGBColor): RGBColorPtr; external name '_GetPortOpColor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortHiliteColor() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortHiliteColor(port: CGrafPtr; var hiliteColor: RGBColor): RGBColorPtr; external name '_GetPortHiliteColor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortGrafProcs() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortGrafProcs(port: CGrafPtr): CQDProcsPtr; external name '_GetPortGrafProcs'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortTextFont() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortTextFont(port: CGrafPtr): SInt16; external name '_GetPortTextFont'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortTextFace() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortTextFace(port: CGrafPtr): ByteParameter; external name '_GetPortTextFace'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortTextMode() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortTextMode(port: CGrafPtr): SInt16; external name '_GetPortTextMode'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortTextSize() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortTextSize(port: CGrafPtr): SInt16; external name '_GetPortTextSize'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortChExtra() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortChExtra(port: CGrafPtr): SInt16; external name '_GetPortChExtra'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortFracHPenLocation() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortFracHPenLocation(port: CGrafPtr): SInt16; external name '_GetPortFracHPenLocation'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortSpExtra() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortSpExtra(port: CGrafPtr): Fixed; external name '_GetPortSpExtra'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortPenVisibility() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortPenVisibility(port: CGrafPtr): SInt16; external name '_GetPortPenVisibility'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortVisibleRegion() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortVisibleRegion(port: CGrafPtr; visRgn: RgnHandle): RgnHandle; external name '_GetPortVisibleRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortClipRegion() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortClipRegion(port: CGrafPtr; clipRgn: RgnHandle): RgnHandle; external name '_GetPortClipRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortBackPixPat() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortBackPixPat(port: CGrafPtr; backPattern: PixPatHandle): PixPatHandle; external name '_GetPortBackPixPat'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortPenPixPat() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortPenPixPat(port: CGrafPtr; penPattern: PixPatHandle): PixPatHandle; external name '_GetPortPenPixPat'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortFillPixPat() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortFillPixPat(port: CGrafPtr; fillPattern: PixPatHandle): PixPatHandle; external name '_GetPortFillPixPat'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortPenSize() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortPenSize(port: CGrafPtr; var penSize: Point): PointPtr; external name '_GetPortPenSize'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortPenMode() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortPenMode(port: CGrafPtr): SInt32; external name '_GetPortPenMode'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * GetPortPenLocation() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPortPenLocation(port: CGrafPtr; var penLocation: Point): PointPtr; external name '_GetPortPenLocation'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * IsPortRegionBeingDefined() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function IsPortRegionBeingDefined(port: CGrafPtr): boolean; external name '_IsPortRegionBeingDefined'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * IsPortPictureBeingDefined() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function IsPortPictureBeingDefined(port: CGrafPtr): boolean; external name '_IsPortPictureBeingDefined'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * IsPortPolyBeingDefined() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.3 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.3 and later + } +function IsPortPolyBeingDefined(port: CGrafPtr): boolean; external name '_IsPortPolyBeingDefined'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * IsPortOffscreen() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function IsPortOffscreen(port: CGrafPtr): boolean; external name '_IsPortOffscreen'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * IsPortColor() + * + * Mac OS X threading: + * Thread safe since version 10.0 + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0.2 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0.2 and later + } +function IsPortColor(port: CGrafPtr): boolean; external name '_IsPortColor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *) + +{ + * IsPortVisibleRegionEmpty() + * + * Mac OS X threading: + * Thread safe since version 10.1 + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.3 and later + * Non-Carbon CFM: not available + } +function IsPortVisibleRegionEmpty(port: CGrafPtr): boolean; external name '_IsPortVisibleRegionEmpty'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * IsPortClipRegionEmpty() + * + * Mac OS X threading: + * Thread safe since version 10.1 + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.3 and later + * Non-Carbon CFM: not available + } +function IsPortClipRegionEmpty(port: CGrafPtr): boolean; external name '_IsPortClipRegionEmpty'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * SectRegionWithPortClipRegion() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.3 and later + * Non-Carbon CFM: not available + } +procedure SectRegionWithPortClipRegion(port: CGrafPtr; ioRegion: RgnHandle); external name '_SectRegionWithPortClipRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * SectRegionWithPortVisibleRegion() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.3 and later + * Non-Carbon CFM: not available + } +procedure SectRegionWithPortVisibleRegion(port: CGrafPtr; ioRegion: RgnHandle); external name '_SectRegionWithPortVisibleRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + + +{ Swappers } +{ + * SwapPortPicSaveHandle() + * + * Summary: + * Sets the port's picSave Handle, and returns the previous picSave + * + * Discussion: + * Historically, the picSave field in a GrafPort is != NULL if a + * Picture is being defined; and it has been documented that picture + * definition can be temporarily suspended by saving the current + * picSave Handle and setting picSave to NULL. Restoring the saved + * picSave Handle resumes picture definition. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * port: + * The port whose picSave field is being swapped. + * + * inPicSaveHdl: + * The picSave Handle to be set. + * + * Result: + * The previous picSave Handle in the port. + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.5 and later + * Non-Carbon CFM: not available + } +function SwapPortPicSaveHandle(port: CGrafPtr; inPicSaveHdl: Handle): Handle; external name '_SwapPortPicSaveHandle'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ Similarly: } +{ + * SwapPortPolySaveHandle() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.6 and later + * Non-Carbon CFM: not available + } +function SwapPortPolySaveHandle(port: CGrafPtr; inPolySaveHdl: Handle): Handle; external name '_SwapPortPolySaveHandle'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + +{ + * SwapPortRegionSaveHandle() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.6 and later + * Non-Carbon CFM: not available + } +function SwapPortRegionSaveHandle(port: CGrafPtr; inRegionSaveHdl: Handle): Handle; external name '_SwapPortRegionSaveHandle'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + + +{ Setters } +{ + * SetPortBounds() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortBounds(port: CGrafPtr; const (*var*) rect_: Rect); external name '_SetPortBounds'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortOpColor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortOpColor(port: CGrafPtr; const (*var*) opColor: RGBColor); external name '_SetPortOpColor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortGrafProcs() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortGrafProcs(port: CGrafPtr; procs: CQDProcsPtr); external name '_SetPortGrafProcs'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortTextFont() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.5 and later + * Non-Carbon CFM: not available + } +procedure SetPortTextFont(port: CGrafPtr; txFont: SInt16); external name '_SetPortTextFont'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * SetPortTextSize() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.5 and later + * Non-Carbon CFM: not available + } +procedure SetPortTextSize(port: CGrafPtr; txSize: SInt16); external name '_SetPortTextSize'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * SetPortTextFace() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.5 and later + * Non-Carbon CFM: not available + } +procedure SetPortTextFace(port: CGrafPtr; face: StyleParameter); external name '_SetPortTextFace'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * SetPortTextMode() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.5 and later + * Non-Carbon CFM: not available + } +procedure SetPortTextMode(port: CGrafPtr; mode: SInt16); external name '_SetPortTextMode'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * SetPortVisibleRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortVisibleRegion(port: CGrafPtr; visRgn: RgnHandle); external name '_SetPortVisibleRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortClipRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortClipRegion(port: CGrafPtr; clipRgn: RgnHandle); external name '_SetPortClipRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortPenPixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortPenPixPat(port: CGrafPtr; penPattern: PixPatHandle); external name '_SetPortPenPixPat'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortFillPixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.2 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.2 and later + } +procedure SetPortFillPixPat(port: CGrafPtr; penPattern: PixPatHandle); external name '_SetPortFillPixPat'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortBackPixPat() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortBackPixPat(port: CGrafPtr; backPattern: PixPatHandle); external name '_SetPortBackPixPat'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortPenSize() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortPenSize(port: CGrafPtr; penSize: Point); external name '_SetPortPenSize'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortPenMode() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortPenMode(port: CGrafPtr; penMode: SInt32); external name '_SetPortPenMode'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetPortFracHPenLocation() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetPortFracHPenLocation(port: CGrafPtr; pnLocHFrac: SInt16); external name '_SetPortFracHPenLocation'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ PixMap } +{ + * GetPixBounds() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPixBounds(pixMap: PixMapHandle; var bounds: Rect): RectPtr; external name '_GetPixBounds'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetPixDepth() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetPixDepth(pixMap: PixMapHandle): SInt16; external name '_GetPixDepth'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ QDGlobals } +{ Getters } +{ + * GetQDGlobalsRandomSeed() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsRandomSeed: SInt32; external name '_GetQDGlobalsRandomSeed'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetQDGlobalsScreenBits() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsScreenBits(var screenBits: BitMap): BitMapPtr; external name '_GetQDGlobalsScreenBits'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetQDGlobalsArrow() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsArrow(var arrow: Cursor): CursorPtr; external name '_GetQDGlobalsArrow'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetQDGlobalsDarkGray() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsDarkGray(var dkGray: Pattern): PatternPtr; external name '_GetQDGlobalsDarkGray'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetQDGlobalsLightGray() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsLightGray(var ltGray: Pattern): PatternPtr; external name '_GetQDGlobalsLightGray'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetQDGlobalsGray() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsGray(var gray: Pattern): PatternPtr; external name '_GetQDGlobalsGray'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetQDGlobalsBlack() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsBlack(var black: Pattern): PatternPtr; external name '_GetQDGlobalsBlack'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetQDGlobalsWhite() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsWhite(var white: Pattern): PatternPtr; external name '_GetQDGlobalsWhite'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * GetQDGlobalsThePort() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function GetQDGlobalsThePort: CGrafPtr; external name '_GetQDGlobalsThePort'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ Setters } +{ + * SetQDGlobalsRandomSeed() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetQDGlobalsRandomSeed(randomSeed: SInt32); external name '_SetQDGlobalsRandomSeed'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetQDGlobalsArrow() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure SetQDGlobalsArrow(const (*var*) arrow: Cursor); external name '_SetQDGlobalsArrow'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ Regions } +{ + * GetRegionBounds() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +//AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4; +function GetRegionBounds(region: RgnHandle; var bounds: Rect): RectPtr; external name '_GetRegionBounds'; (* attribute ignoreable *) + +{ + * IsRegionRectangular() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function IsRegionRectangular(region: RgnHandle): boolean; external name '_IsRegionRectangular'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ Utilities } +{ To prevent upward dependencies, GetWindowFromPort() is defined in Window Manager interface: } +{ pascal WindowRef GetWindowFromPort(CGrafPtr port); } +{ NewPtr/OpenCPort doesn't work with opaque structures } +{ + * CreateNewPort() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +function CreateNewPort: CGrafPtr; external name '_CreateNewPort'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * DisposePort() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0 and later + } +procedure DisposePort(port: CGrafPtr); external name '_DisposePort'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SetQDError() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0.2 and later + * Non-Carbon CFM: in CarbonAccessors.o 1.0.2 and later + } +procedure SetQDError(err: OSErr); external name '_SetQDError'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{$endc} {ACCESSOR_CALLS_ARE_FUNCTIONS} + +{ Helpful Carbon-only utilities (finally made public) } + +{ + * QDLocalToGlobalPoint() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDLocalToGlobalPoint(port: CGrafPtr; var point_: Point): PointPtr; external name '_QDLocalToGlobalPoint'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDGlobalToLocalPoint() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDGlobalToLocalPoint(port: CGrafPtr; var point_: Point): PointPtr; external name '_QDGlobalToLocalPoint'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDLocalToGlobalRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDLocalToGlobalRect(port: CGrafPtr; var bounds: Rect): RectPtr; external name '_QDLocalToGlobalRect'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDGlobalToLocalRect() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDGlobalToLocalRect(port: CGrafPtr; var bounds: Rect): RectPtr; external name '_QDGlobalToLocalRect'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDLocalToGlobalRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDLocalToGlobalRegion(port: CGrafPtr; region: RgnHandle): RgnHandle; external name '_QDLocalToGlobalRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDGlobalToLocalRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDGlobalToLocalRegion(port: CGrafPtr; region: RgnHandle): RgnHandle; external name '_QDGlobalToLocalRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + + +{ + Routines available on Mac OS X to flush buffered window ports... + These calls do nothing on Mac OS 8/9. QDIsPortBuffered will always return false there. +} + +{ + * QDIsPortBuffered() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0.2 and later + * Non-Carbon CFM: not available + } +function QDIsPortBuffered(port: CGrafPtr): boolean; external name '_QDIsPortBuffered'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDIsPortBufferDirty() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0.2 and later + * Non-Carbon CFM: not available + } +function QDIsPortBufferDirty(port: CGrafPtr): boolean; external name '_QDIsPortBufferDirty'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDFlushPortBuffer() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0.2 and later + * Non-Carbon CFM: not available + } +procedure QDFlushPortBuffer(port: CGrafPtr; region: RgnHandle); external name '_QDFlushPortBuffer'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDGetDirtyRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.1 and later + * Non-Carbon CFM: not available + } +function QDGetDirtyRegion(port: CGrafPtr; rgn: RgnHandle): OSStatus; external name '_QDGetDirtyRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDSetDirtyRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.1 and later + * Non-Carbon CFM: not available + } +function QDSetDirtyRegion(port: CGrafPtr; rgn: RgnHandle): OSStatus; external name '_QDSetDirtyRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDAddRectToDirtyRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.5 and later + * Non-Carbon CFM: not available + } +function QDAddRectToDirtyRegion(inPort: CGrafPtr; const (*var*) inBounds: Rect): OSStatus; external name '_QDAddRectToDirtyRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDAddRegionToDirtyRegion() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.5 and later + * Non-Carbon CFM: not available + } +function QDAddRegionToDirtyRegion(inPort: CGrafPtr; inRegion: RgnHandle): OSStatus; external name '_QDAddRegionToDirtyRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + + +{ + * CreateCGContextForPort() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later + * Non-Carbon CFM: not available + } +function CreateCGContextForPort(inPort: CGrafPtr; var outContext: CGContextRef): OSStatus; external name '_CreateCGContextForPort'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * ClipCGContextToRegion() *** DEPRECATED *** + * + * Summary: + * Set a CGContext's clip path to the equivalent of a RgnHandle + * + * Discussion: + * When Quickdraw and CoreGraphics drawing are being mixed, it is + * often necessary to convert a QD clipRgn to a clipPath in CG. In + * order to produce the expected outcome in ClipCGContextToRegion, + * this function needs to reset any CGContext clipPath before + * setting it to the converted region, in contrast to the usual + * behavior of CGContextClip which takes the intersection with the + * previous clip. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * gc: + * The CGContext + * + * portRect: + * A bounding box for the region (needed by conversion to + * clipPath). Can be the GrafPort bounds, or the region bounds + * + * region: + * The RgnHandle (usually a clipRgn) to be converted to the + * CGContextClip. + * + * Result: + * OSStatus noErr, or a memory error is some internal allocation + * failed. + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later + * Non-Carbon CFM: not available + } +function ClipCGContextToRegion(gc: CGContextRef; const (*var*) portRect: Rect; region: RgnHandle): OSStatus; external name '_ClipCGContextToRegion'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * SyncCGContextOriginWithPort() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later + * Non-Carbon CFM: not available + } +function SyncCGContextOriginWithPort(inContext: CGContextRef; port: CGrafPtr): OSStatus; external name '_SyncCGContextOriginWithPort'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDBeginCGContext() + * + * Summary: + * Allow CoreGraphics drawing in a CGrafPort + * + * Discussion: + * So far, CreateCGContextForPort() was used to create a CGContext + * for CG drawing from a CGrafPort. However, if the current port is + * a printing port, the CreateCGContextForPort fails; consequently, + * there was no way to mix Quickdraw and CoreGraphics drawing and + * still print it. If, instead, the CoreGraphics drawing is + * bracketed by QDBeginCGContext/QDEndCGContext calls, the drawing + * will also appear in print. There are some restrictions on the + * usage of QDBeginCGContext/QDEndCGContext: + * - Between QDBeginCGContext and QDEndCGContext, Quickdraw drawing + * is disabled; only CoreGraphics drawing is allowed + * - QDBeginCGContext/QDEndCGContext calls can not be nested + * - QDEndCGContext releases the CGContext returned from + * QDBeginCGContext and sets it to NULL. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * inPort: + * The current port + * + * outContext: + * The CGContextRef to be used for CG drawing + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.1 and later + * Non-Carbon CFM: not available + } +function QDBeginCGContext(inPort: CGrafPtr; var outContext: CGContextRef): OSStatus; external name '_QDBeginCGContext'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * QDEndCGContext() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.1 and later + * Non-Carbon CFM: not available + } +function QDEndCGContext(inPort: CGrafPtr; var inoutContext: CGContextRef): OSStatus; external name '_QDEndCGContext'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + The following routines are implemented in CarbonLib, and on Mac OS X in QD proper. + They save the pixel data of a region in a packed format for quick save/restore + without using a lot of memory to do a large, hollow region, such as the region + used when drag hiliting (which is where this is used). +} + + +type + QDRegionBitsRef = ^SInt32; { an opaque 32-bit type } + QDRegionBitsRefPtr = ^QDRegionBitsRef; { when a var xx:QDRegionBitsRef parameter can be nil, it is changed to xx: QDRegionBitsRefPtr } +{ + * QDSaveRegionBits() + * + * Summary: + * Saves the pixel data of a region in a packed format for quick + * restore + * + * Discussion: + * Implemented in CarbonLib, and on Mac OS X in QD proper. Used in + * particular for drag hiliting. The packed format doesn't use too + * much memory for large hollow regions. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * region: + * The RgnHandle corresponding to the pixel data to be saved. + * + * Result: + * The QDRegionBitsRef to be passed later into QDRestoreRegionBits. + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDSaveRegionBits(region: RgnHandle): QDRegionBitsRef; external name '_QDSaveRegionBits'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * QDRestoreRegionBits() + * + * Summary: + * Restores the pixel data of a region, as returned from + * QDSaveRegionBits + * + * Discussion: + * Implemented in CarbonLib, and on Mac OS X in QD proper. Used in + * particular for drag hiliting. NOTE: QDRestoreRegionBits also + * calls QDDisposeRegionBits on the regionBits passed in - don't + * call it again! + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * region: + * The RgnHandle corresponding to the regionBits. + * + * regionBits: + * The QDRegionBitsRef returned from a preceding QDSaveRegionBits + * call + * + * Result: + * OSStatus noErr, or paramErr if a NULL parameter is passed in + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDRestoreRegionBits(region: RgnHandle; regionBits: QDRegionBitsRef): OSStatus; external name '_QDRestoreRegionBits'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * QDDisposeRegionBits() + * + * Summary: + * Disposes of data allocated in QDSaveRegionBits, when the + * QDRegionBitsRef needs to be discarded without being passed to + * QDRestoreRegionBits. + * + * Discussion: + * Implemented in CarbonLib, and on Mac OS X in QD proper. NOTE: If + * the QDRegionBitsRef has been passed to QDRestoreRegionBits, it + * has been deallocated already - don't call QDDisposeRegionBits, + * then. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * regionBits: + * The QDRegionBitsRef returned from a preceding QDSaveRegionBits + * call + * + * Result: + * OSStatus noErr, or paramErr if a NULL parameter is passed in + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: not available + } +function QDDisposeRegionBits(regionBits: QDRegionBitsRef): OSStatus; external name '_QDDisposeRegionBits'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + Developers need a way to go from a CGDirectDisplay environment to Quickdraw. + The following is equivalent to CreateNewPort(), but instead of taking the + portPixMap from the current GDevice, it uses the GDevice corresponding to + the CGSDisplayID passed in. If the CGSDisplayID is invalid, the mainDevice + is used instead. +} +{ + * CreateNewPortForCGDisplayID() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later + * Non-Carbon CFM: not available + } +function CreateNewPortForCGDisplayID(inCGDisplayID: UInt32): CGrafPtr; external name '_CreateNewPortForCGDisplayID'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + In Mac OS X, developers should be able to turn the WaitCursor (spinning wheel) + on and off. QDDisplayWaitCursor() keeps track of nested calls. + Passing FALSE will resume automatic wait cursor operation. + Call this function only from an application in the foreground. +} +{ + * QDDisplayWaitCursor() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.0 and later + * Non-Carbon CFM: not available + } +procedure QDDisplayWaitCursor(forceWaitCursor: boolean); external name '_QDDisplayWaitCursor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * QDSetPatternOrigin() + * + * Summary: + * Sets the pattern origin for the current port. + * + * Discussion: + * When a QuickDraw drawing operation uses a pattern (either a + * black&white pattern or a PixPat), the pattern's image is aligned + * with port origin, modified by the pattern origin of the port. For + * example, if the background pattern is a 8x8 image, and a + * rectangle with coordinates (3, 3, 8, 8) is filled with that + * pattern, then only the bottom right 5x5 portion of the pattern + * image will be drawn into the rectangle. When drawing a pattern, + * QuickDraw always starts with the port origin and then adjusts it + * by the pattern origin to determine the actual origin point of + * pattern drawing. QDSetPatternOrigin can be used to set the + * pattern origin relative to the port origin. It is often used in + * conjuction with SetOrigin to maintain the pattern alignment at + * (0,0) in a window's content area, regardless of the port origin; + * for example, after changing the port's origin to (10,10), an + * application might change the port's pattern origin to (-10, -10) + * so that patterns are still aligned with the window's content area. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * origin: + * The new pattern origin of the port. + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.3 and later + * Non-Carbon CFM: in NQD 8.5 and later + } +procedure QDSetPatternOrigin(origin: Point); external name '_QDSetPatternOrigin'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * QDGetPatternOrigin() + * + * Summary: + * Returns the pattern origin of the current port. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * origin: + * On exit, contains the current port's pattern origin. + * + * Availability: + * Mac OS X: in version 10.1 and later in ApplicationServices.framework + * CarbonLib: in CarbonLib 1.3 and later + * Non-Carbon CFM: in NQD 8.5 and later + } +procedure QDGetPatternOrigin(var origin: Point); external name '_QDGetPatternOrigin'; +(* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *) + +{ + * QDIsNamedPixMapCursorRegistered() + * + * Summary: + * Returns whether a named cursor has already been registered. + * + * Discussion: + * The CoreGraphics Scalable Cursor Registry provides support for + * cursors based on PixMaps for crsrData and crsrMask, with sizes up + * to 64x64 pixels. Such cursors need to be registered via + * QDRegisterNamedPixMapCursor, and can then be set by + * QDSetNamedPixMapCursor. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * name: + * (see below at QDRegisterNamedPixMapCursor) + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later + * Non-Carbon CFM: not available + } +function QDIsNamedPixMapCursorRegistered( name: ConstCStringPtr ): Boolean; external name '_QDIsNamedPixMapCursorRegistered'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + + +{ + * QDRegisterNamedPixMapCursor() + * + * Summary: + * Register a new cursor by name + * + * Discussion: + * In order to set a PixMapCursor, it needs to be registered first + * by name. This only succeeds if the system supports Hardware + * Cursors (depending on video circuits). There is also the obvious + * companion function QDUnregisterNamedPixMapCursor. NOTE: The + * original implementation of QDUnregisterNamedPixMapCursor was + * misspelled "QDUnregisterNamedPixMapCursur". + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * crsrData: + * A PixMapHandle representing the cursor pixels. If the + * pixelDepth is 32, the crsrMask PixMapHandle can be NULL; in + * this case, the alpha channel in the ARGB PixMap is used as + * mask. If a crsrMask is provided, the alpha channel in crsrData + * is ignored. The pixelDepth can be any of 1, 2, 4, 8, 16 or 32. + * + * crsrMask: + * A PixMapHandle representing the mask. It is assumed to be in + * 8-bit deep grayScale format, although other depths are accepted + * and converted to 8-bit grayScale (using CopyBits). The + * (**crsrMask).bounds rectangle needs to match + * (**crsrData).bounds. If the crsrData are 32-bit deep, crsrMask + * can be NULL, and the alpha bytes in the crsrData ARGB pixels + * are used as mask. + * + * hotSpot: + * The usual cursor hotspot, in coordinates relativ to + * (**crsrData).bounds.topLeft. + * + * name: + * A naming convention involving the name of your application and + * descriptive cursor names or resource IDs is suggested. Cursor + * names are 0-terminated C-strings up to a length of 127. $result + * OSStatus: noErr = 0 for success, or (constants from + * MacErrors.h): kQDNoColorHWCursorSupport, + * kQDCursorAlreadyRegistered, paramErr, memFullErr, or a CGError + * as returned internally from CoreGraphics. + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later + * Non-Carbon CFM: not available + } +function QDRegisterNamedPixMapCursor( crsrData: PixMapHandle; crsrMask: PixMapHandle; hotSpot: Point; name: ConstCStringPtr ): OSStatus; external name '_QDRegisterNamedPixMapCursor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + + +{ + * QDUnregisterNamedPixMapCursur() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later + * Non-Carbon CFM: not available + } +function QDUnregisterNamedPixMapCursur( name: ConstCStringPtr ): OSStatus; external name '_QDUnregisterNamedPixMapCursur'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + + +{ + * QDUnregisterNamedPixMapCursor() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.3 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later + * Non-Carbon CFM: not available + } +function QDUnregisterNamedPixMapCursor( name: ConstCStringPtr ): OSStatus; external name '_QDUnregisterNamedPixMapCursor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) + + +{ + * QDSetNamedPixMapCursor() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later + * Non-Carbon CFM: not available + } +function QDSetNamedPixMapCursor( name: ConstCStringPtr ): OSStatus; external name '_QDSetNamedPixMapCursor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + + +type + QDXSystemCursorID = UInt32; +const + kQDXArrowCursor = 0; + kQDXIBeamCursor = 1; + kQDXIBeamXORCursor = 2; + kQDXAliasCursor = 3; + kQDXCopyCursor = 4; + kQDXMoveCursor = 5; + kQDXNumberOfSystemCursors = 6; { Must be last } + + +{ + * QDGetCursorNameForSystemCursor() + * + * Summary: + * Return the name of one of the predefined Mac OS X system cursors + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * cursorID: + * UInt32 in the range 0 ... kQDXNumberOfSystemCursors - 1 (see + * enum above) + * + * Result: + * const char* name, or NULL if 'cursorID' is out of range + * + * Availability: + * Mac OS X: in version 10.3 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later + * Non-Carbon CFM: not available + } +function QDGetCursorNameForSystemCursor( cursorID: QDXSystemCursorID ): ConstCStringPtr; external name '_QDGetCursorNameForSystemCursor'; +(* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) + + +{ + * QDSetCursorScale() + * + * Summary: + * Set a scaling factor for the cursor. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * scale: + * Must be at least 0.5, and integer values (1.0, 2.0, 3.0, 4.0) + * are recommended. The scaling factor is system-wide (applies to + * all apps), and is intended for use in such things as assisting + * the visually impaired. The scaling factor is treated as a hint + * to the system, and the exact scale applied may be limited by + * device driver capabilities and performance considerations. + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later + * Non-Carbon CFM: not available + } +function QDSetCursorScale( scale: Float32 ): OSStatus; external name '_QDSetCursorScale'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + + +{ + * QDGetCursorScale() + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.3 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later + * Non-Carbon CFM: not available + } +function QDGetCursorScale( outScale: Float32Ptr ): OSStatus; external name '_QDGetCursorScale'; +(* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) + + +{ + * QDGetCursorData() + * + * Summary: + * Allocate and return a PixMapHandle with the cursor data; also + * return the hotSpot. The caller is responsible for calling + * DisposePtr((**crsrData).baseAddr) and DisposePixMap(crsrData) + * when done with the crsrData returned. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * contextCursor: + * A Boolean; if true, return data for the current context cursor, + * if false, return data for the currently showing global cursor. + * + * crsrData: + * Allocates a PixMapHandle and pixelData in baseAddr, + * corresponding to the cursorData. The pixelData are in 32-bit + * ARGB format, with the mask contained in the alpha channel. This + * PixMapHandle can be passed as crsrData to + * QDRegisterNamedPixMapCursor, above (with crsrMask = NULL). If + * the return result indicates an error, NULL is returned. + * + * hotSpot: + * Contains the cursor hotSpot, if successful. + * + * Result: + * noErr if successful, or whatever error is returned from lower + * levels otherwise. + * + * Availability: + * Mac OS X: in version 10.3 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later + * Non-Carbon CFM: not available + } +function QDGetCursorData( contextCursor: Boolean; var crsrData: PixMapHandle; var hotSpot: Point ): OSStatus; external name '_QDGetCursorData'; +(* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) + +const + kQDUseDefaultTextRendering = 0; { Sets whatever is specified in system defaults. } + { Currently sets kQDUseTrueTypeScalerGlyphs if nothing is specified.} + kQDUseTrueTypeScalerGlyphs = (1 shl 0); { bit 0} + kQDUseCGTextRendering = (1 shl 1); { bit 1} + kQDUseCGTextMetrics = (1 shl 2); { bit 2} + kQDSupportedFlags = kQDUseTrueTypeScalerGlyphs or kQDUseCGTextRendering or kQDUseCGTextMetrics; + kQDDontChangeFlags = $FFFFFFFF; { to request the current state, without changing anything } + + +{ + * QDSwapTextFlags() + * + * Summary: + * Returns current flags and optionally sets new flags. + * + * Discussion: + * Currently, only the flag bits in the enum above are supported. + * The typical usage is UInt32 savedFlags = + * QDSwapTextFlags(newFlags); // ... draw text under the conditions + * of "newFlags" ... (void)QDSwapTextFlags(savedFlags); // restore + * previous setting + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * newFlags: + * Use the enums above; example "kQDUseCGTextRendering | + * kQDUseCGTextMetrics". + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later + * Non-Carbon CFM: not available + } +function QDSwapTextFlags( newFlags: UInt32 ): UInt32; external name '_QDSwapTextFlags'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + + +{ + * QDSwapPortTextFlags() + * + * Summary: + * Same as QDSwapTextFlags, but per GrafPort. + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * port: + * Settings per port override any global settings. If port == + * NULL, the current port is used. + * + * newFlags: + * As in QDSwapTextFlags, above. + * + * Availability: + * Mac OS X: in version 10.2 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later + * Non-Carbon CFM: not available + } +function QDSwapPortTextFlags( port: CGrafPtr; newFlags: UInt32 ): UInt32; external name '_QDSwapPortTextFlags'; +(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *) + + +{ + * QDGetCGDirectDisplayID() + * + * Summary: + * Return the CGDirectDisplayID corresponding to a GDHandle + * + * Mac OS X threading: + * Not thread safe + * + * Parameters: + * + * inGDevice: + * The GDevice handle corresponding to the device for which the + * CGDirectDisplayID is requested + * + * Result: + * The CGDirectDisplayID, or 0 if the GDHandle does not represent a + * display. + * + * Availability: + * Mac OS X: in version 10.3 and later in ApplicationServices.framework + * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later + * Non-Carbon CFM: not available + } +function QDGetCGDirectDisplayID( inGDevice: GDHandle ): CGDirectDisplayID; external name '_QDGetCGDirectDisplayID'; +(* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *) + +{ + LowMem accessor functions previously in LowMem.h +} +{ + * LMGetScrVRes() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetScrVRes: SInt16; external name '_LMGetScrVRes'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetScrVRes() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetScrVRes(value: SInt16); external name '_LMSetScrVRes'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetScrHRes() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetScrHRes: SInt16; external name '_LMGetScrHRes'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetScrHRes() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetScrHRes(value: SInt16); external name '_LMSetScrHRes'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetMainDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetMainDevice: GDHandle; external name '_LMGetMainDevice'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetMainDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetMainDevice(value: GDHandle); external name '_LMSetMainDevice'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetDeviceList() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetDeviceList: GDHandle; external name '_LMGetDeviceList'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetDeviceList() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetDeviceList(value: GDHandle); external name '_LMSetDeviceList'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetQDColors() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetQDColors: Handle; external name '_LMGetQDColors'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetQDColors() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetQDColors(value: Handle); external name '_LMSetQDColors'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetWidthListHand() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetWidthListHand: Handle; external name '_LMGetWidthListHand'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetWidthListHand() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetWidthListHand(value: Handle); external name '_LMSetWidthListHand'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetHiliteMode() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetHiliteMode: ByteParameter; external name '_LMGetHiliteMode'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetHiliteMode() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetHiliteMode(value: ByteParameter); external name '_LMSetHiliteMode'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetWidthPtr() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetWidthPtr: Ptr; external name '_LMGetWidthPtr'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetWidthPtr() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetWidthPtr(value: Ptr); external name '_LMSetWidthPtr'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetWidthTabHandle() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetWidthTabHandle: Handle; external name '_LMGetWidthTabHandle'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetWidthTabHandle() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetWidthTabHandle(value: Handle); external name '_LMSetWidthTabHandle'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetLastSPExtra() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetLastSPExtra: SInt32; external name '_LMGetLastSPExtra'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetLastSPExtra() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetLastSPExtra(value: SInt32); external name '_LMSetLastSPExtra'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetLastFOND() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetLastFOND: Handle; external name '_LMGetLastFOND'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetLastFOND() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetLastFOND(value: Handle); external name '_LMSetLastFOND'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetFractEnable() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetFractEnable: ByteParameter; external name '_LMGetFractEnable'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetFractEnable() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetFractEnable(value: ByteParameter); external name '_LMSetFractEnable'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetTheGDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +function LMGetTheGDevice: GDHandle; external name '_LMGetTheGDevice'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetTheGDevice() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetTheGDevice(value: GDHandle); external name '_LMSetTheGDevice'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetHiliteRGB() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMGetHiliteRGB(var hiliteRGBValue: RGBColor); external name '_LMGetHiliteRGB'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetHiliteRGB() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 7.1 and later + } +procedure LMSetHiliteRGB(const (*var*) hiliteRGBValue: RGBColor); external name '_LMSetHiliteRGB'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMGetCursorNew() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 8.5 and later + } +function LMGetCursorNew: boolean; external name '_LMGetCursorNew'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{ + * LMSetCursorNew() *** DEPRECATED *** + * + * Mac OS X threading: + * Not thread safe + * + * Availability: + * Mac OS X: in version 10.0 and later in ApplicationServices.framework but deprecated in 10.4 + * CarbonLib: in CarbonLib 1.0 and later + * Non-Carbon CFM: in InterfaceLib 8.5 and later + } +procedure LMSetCursorNew(value: boolean); external name '_LMSetCursorNew'; +(* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *) + +{$ALIGN MAC68K} + + +end. |