Documentation
¶
Overview ¶
Package qd provides a fluent Go API over the macOS QD framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- Constants
- type AsscEntry
- type BitMap
- type CM2Header
- type CM2Profile
- type CM2ProfilePtr
- type CM4Header
- type CMAdaptationMatrixType
- type CMAppleProfileHeader
- type CMBitmap
- type CMBufferLocation
- type CMCMYColor
- type CMCMYKColor
- type CMColor
- type CMConcatProfileSet
- type CMCurveType
- type CMDataType
- type CMDateTime
- type CMDateTimeType
- type CMDeviceInfo
- type CMDeviceInfoPtr
- type CMDeviceProfileArray
- type CMDeviceProfileArrayPtr
- type CMDeviceProfileInfo
- type CMDeviceProfileScope
- type CMDeviceScope
- type CMFixedXYColor
- type CMFixedXYZColor
- type CMFloatBitmap
- type CMFloatBitmapFlags
- type CMGrayColor
- type CMHLSColor
- type CMHSVColor
- type CMHandleLocation
- type CMIntentCRDVMSize
- type CMLabColor
- type CMLut8Type
- type CMLut16Type
- type CMLuvColor
- type CMMInfo
- type CMMakeAndModel
- type CMMakeAndModelType
- type CMMeasurementType
- type CMMultiFunctCLUTType
- type CMMultiFunctLutA2BType
- type CMMultiFunctLutB2AType
- type CMMultiFunctLutType
- type CMMultiLocalizedUniCodeEntryRec
- type CMMultiLocalizedUniCodeType
- type CMMultichannel5Color
- type CMMultichannel6Color
- type CMMultichannel7Color
- type CMMultichannel8Color
- type CMNamedColor
- type CMNamedColor2EntryType
- type CMNamedColor2Type
- type CMNamedColorType
- type CMNativeDisplayInfo
- type CMNativeDisplayInfoType
- type CMPS2CRDVMSizeType
- type CMParametricCurveType
- type CMPathLocation
- type CMProfLoc
- type CMProfileIterateData
- type CMProfileLocation
- type CMProfileRef
- type CMProfileSequenceDescType
- type CMRGBColor
- type CMS15Fixed16ArrayType
- type CMScreeningChannelRec
- type CMScreeningType
- type CMSignatureType
- type CMTagElemTable
- type CMTagRecord
- type CMTextDescriptionType
- type CMTextType
- type CMU16Fixed16ArrayType
- type CMUInt8ArrayType
- type CMUInt16ArrayType
- type CMUInt32ArrayType
- type CMUInt64ArrayType
- type CMUcrBgType
- type CMUnicodeTextType
- type CMVideoCardGamma
- type CMVideoCardGammaFormula
- type CMVideoCardGammaTable
- type CMVideoCardGammaType
- type CMViewingConditionsType
- type CMWorldRef
- type CMXYZColor
- type CMXYZType
- type CMYxyColor
- type CQDProcs
- type Clockid
- type ColorSpec
- type ColorTable
- type DialogPtr
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type EvCmd
- type FMInput
- type FamRec
- type FilesecProperty
- type Flag
- type FontAssoc
- type FontInfo
- type FontRec
- type GDevice
- type GrafPort
- type GrafPtr
- type Idtype
- type IpcInfoObjectType
- type KernEntry
- type KernPair
- type KernTable
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MacPolygon
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NCMConcatProfileSet
- type NCMConcatProfileSpec
- type NCMDeviceProfileInfo
- type NXMouseButton
- type NameTable
- type OSClockid
- type OpaqueCMProfileRef
- type OpaqueCMWorldRef
- type OpaqueDialogPtr
- type OpaqueGrafPtr
- type OpaqueRgnHandle
- type OpaqueWindowPtr
- type OpenCPicParams
- type Pattern
- type Perm
- type Picture
- type PixMap
- type PixPat
- type Point
- type PtrauthKey
- type QosClass
- type RGBColor
- type Rect
- type RgnHandle
- type StyleTable
- type Tag
- type Type
- type VDGammaRecord
- type VirtualMemoryGuardExceptionCode
- type WindowPtr
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
const ( CS_MAX_PATH = 1024 Cm10CLRData = 1094929490 Cm11CLRData = 1111706706 Cm12CLRData = 1128483922 Cm13CLRData = 1145261138 Cm14CLRData = 1162038354 Cm15CLRData = 1178815570 Cm16_8ColorPacking = 8192 Cm24_8ColorPacking = 8448 Cm32_16ColorPacking = 9728 Cm32_32ColorPacking = 9984 Cm32_8ColorPacking = 2048 Cm3CLRData = 860048466 Cm40_8ColorPacking = 8704 Cm48_16ColorPacking = 10496 Cm48_8ColorPacking = 8960 Cm4CLRData = 876825682 Cm56_8ColorPacking = 9216 Cm5CLRData = 893602898 Cm64_16ColorPacking = 10752 Cm64_8ColorPacking = 9472 Cm6CLRData = 910380114 Cm7CLRData = 927157330 Cm8CLRData = 943934546 Cm8_8ColorPacking = 10240 Cm9CLRData = 960711762 CmARGB32PmulSpace = 6337 CmARGB32Space = 6273 CmARGB64LPmulSpace = 31425 CmARGB64LSpace = 31361 CmARGB64PmulSpace = 15041 CmARGB64Space = 14977 CmAToB0Tag = 1093812784 CmAToB1Tag = 1093812785 CmAToB2Tag = 1093812786 CmAbortWriteAccess = 7 CmAbsoluteColorimetric = 3 CmAbstractClass = 1633842036 CmAlphaFirstPacking = 4096 CmAlphaLastPacking = 0 CmAlphaPmulSpace = 64 CmAlphaSpace = 128 CmAsciiData = 0 CmBToA0Tag = 1110589744 CmBToA1Tag = 1110589745 CmBToA2Tag = 1110589746 CmBeginAccess = 8 CmBestMode = 2 CmBinaryData = 1 CmBlackPointCompensation = 1 CmBlackPointCompensationMask = 4 CmBlueColorantTag = 1649957210 CmBlueTRCTag = 1649693251 CmBradfordChromaticAdaptation = 3 CmBufferBasedProfile = 6 CmCMSReservedFlagsMask = -65536 CmCMYData = 1129142560 CmCMYK32Space = 2050 CmCMYK64LSpace = 27138 CmCMYK64Space = 10754 CmCMYKData = 1129142603 CmCMYKSpace = 2 CmCS1ChromTag = 1667789421 CmCS1CustTag = 1668641652 CmCS1NameTag = 1851878757 CmCS1ProfileVersion = 256 CmCS1TRCTag = 1953653536 CmCS2ProfileVersion = 33554432 CmCalibrationDateTimeTag = 1667329140 CmCameraDeviceClass = 1668117089 CmCharTargetTag = 1952543335 CmChromaticAdaptationTag = 1667785060 CmCloseAccess = 5 CmCloseSpool = 5 CmColorSpaceAlphaMask = 128 CmColorSpaceClass = 1936744803 CmColorSpaceEncodingMask = 983040 CmColorSpacePackingMask = 65280 CmColorSpacePremulAlphaMask = 64 CmColorSpaceReservedMask = -1048576 CmColorSpaceSpaceAndAlphaMask = 255 CmColorSpaceSpaceMask = 63 CmCopyrightTag = 1668313716 CmCreateNewAccess = 6 CmCurrentDeviceInfoVersion = 65536 CmCurrentProfileInfoVersion = 65536 CmCurrentProfileLocationSize = 1032 CmCurrentProfileMajorVersion = 33554432 CmDefaultDeviceID = 0 CmDefaultProfileID = 0 CmDeviceAlreadyRegistered = -4228 CmDeviceDBNotFoundErr = -4227 CmDeviceInfoVersion1 = 65536 CmDeviceMfgDescTag = 1684893284 CmDeviceModelDescTag = 1684890724 CmDeviceNotRegistered = -4229 CmDeviceProfileInfoVersion1 = 65536 CmDeviceProfileInfoVersion2 = 131072 CmDeviceProfilesNotFound = -4230 CmDeviceStateAppleRsvdBits = -16711681 CmDeviceStateBusy = 2 CmDeviceStateDefault = 0 CmDeviceStateDeviceRsvdBits = 16711680 CmDeviceStateForceNotify = -2147483648 CmDeviceStateOffline = 1 CmDisplayClass = 1835955314 CmDisplayDeviceClass = 1835955314 CmDisplayUse = 1685089401 CmDraftMode = 1 CmEmbeddedMask = 1 CmEmbeddedProfile = 0 CmEmbeddedUse = 1 CmEmbeddedUseMask = 2 CmEndAccess = 9 CmFlare0 = 0 CmFlare100 = 1 CmGamutCheckingMask = 524288 CmGamutResult1Space = 2828 CmGamutResultSpace = 12 CmGamutTag = 1734438260 CmGeometry045or450 = 1 CmGeometry0dord0 = 2 CmGeometryUnknown = 0 CmGlossy = 1 CmGlossyMatteMask = 2 CmGray16LSpace = 16394 CmGray16Space = 10 CmGray8Space = 10250 CmGrayA16PmulSpace = 8394 CmGrayA16Space = 8330 CmGrayA32LPmulSpace = 16586 CmGrayA32LSpace = 16522 CmGrayA32PmulSpace = 202 CmGrayA32Space = 138 CmGrayAPmulSpace = 202 CmGrayASpace = 138 CmGrayData = 1196573017 CmGraySpace = 10 CmGrayTRCTag = 1800688195 CmGreenColorantTag = 1733843290 CmGreenTRCTag = 1733579331 CmHLS32Space = 2564 CmHLSData = 1212961568 CmHLSSpace = 4 CmHSV32Space = 2563 CmHSVData = 1213421088 CmHSVSpace = 3 CmICCProfileVersion2 = 33554432 CmICCProfileVersion21 = 34603008 CmICCProfileVersion4 = 67108864 CmICCReservedFlagsMask = 65535 CmIlluminantA = 6 CmIlluminantD50 = 1 CmIlluminantD55 = 5 CmIlluminantD65 = 2 CmIlluminantD93 = 3 CmIlluminantEquiPower = 7 CmIlluminantF2 = 4 CmIlluminantF8 = 8 CmIlluminantUnknown = 0 CmInputClass = 1935896178 CmInputUse = 1768845428 CmInternalCFErr = -4231 CmInterpolationMask = 262144 CmIterateAllDeviceProfiles = 4 CmIterateCurrentDeviceProfiles = 3 CmIterateCustomDeviceProfiles = 2 CmIterateDeviceProfilesMask = 15 CmIterateFactoryDeviceProfiles = 1 CmLAB24Space = 8456 CmLAB32Space = 2568 CmLAB48LSpace = 26888 CmLAB48Space = 10504 CmLABSpace = 8 CmLUV32Space = 2567 CmLUVSpace = 7 CmLabData = 1281450528 CmLinearChromaticAdaptation = 1 CmLinesPer = 1 CmLinkClass = 1818848875 CmLittleEndianPacking = 16384 CmLong10ColorPacking = 2560 CmLong8ColorPacking = 2048 CmLuminanceTag = 1819635049 CmLuvData = 1282766368 CmMCEight8Space = 9492 CmMCEightSpace = 20 CmMCFive8Space = 8721 CmMCFiveSpace = 17 CmMCH5Data = 1296255029 CmMCH6Data = 1296255030 CmMCH7Data = 1296255031 CmMCH8Data = 1296255032 CmMCSeven8Space = 9235 CmMCSevenSpace = 19 CmMCSix8Space = 8978 CmMCSixSpace = 18 CmMacintosh = 1095782476 CmMagicNumber = 1633907568 CmMakeAndModelTag = 1835888484 CmMeasurementTag = 1835360627 CmMediaBlackPointTag = 1651208308 CmMediaWhitePointTag = 2004119668 CmMicrosoft = 1297303124 CmNamedColor2Tag = 1852009522 CmNamedColorClass = 1852662636 CmNamedColorTag = 1852010348 CmNamedData = 1312902469 CmNamedIndexed32LSpace = 26384 CmNamedIndexed32Space = 10000 CmNamedIndexedSpace = 16 CmNativeDisplayInfoTag = 1852074350 CmNoColorPacking = 0 CmNoProfileBase = 0 CmNoSpace = 0 CmNormalMode = 0 CmNumHeaderElements = 10 CmOneBitDirectPacking = 2816 CmOpenReadAccess = 1 CmOpenReadSpool = 1 CmOpenWriteAccess = 2 CmOpenWriteSpool = 2 CmOriginalProfileLocationSize = 72 CmOutputClass = 1886549106 CmOutputUse = 1869968496 CmPS2CRD0Tag = 1886610480 CmPS2CRD1Tag = 1886610481 CmPS2CRD2Tag = 1886610482 CmPS2CRD3Tag = 1886610483 CmPS2CRDVMSizeTag = 1886615149 CmPS2CSATag = 1886597747 CmPS2RenderingIntentTag = 1886597737 CmPS7bit = 1 CmPS8bit = 2 CmParametricType0 = 0 CmParametricType1 = 1 CmParametricType2 = 2 CmParametricType3 = 3 CmParametricType4 = 4 CmPathBasedProfile = 5 CmPerceptual = 0 CmPrefsSynchError = -4232 CmPreview0Tag = 1886545200 CmPreview1Tag = 1886545201 CmPreview2Tag = 1886545202 CmPrinterDeviceClass = 1886549106 CmProfileDescriptionMLTag = 1685283693 CmProfileDescriptionTag = 1684370275 CmProfileIterateDataVersion1 = 65536 CmProfileIterateDataVersion2 = 131072 CmProfileIterateDataVersion3 = 196608 CmProfileIterateDataVersion4 = 262144 CmProfileMajorVersionMask = -16777216 CmProfileSequenceDescTag = 1886610801 CmProofDeviceClass = 1886549350 CmProofUse = 1886549350 CmPrtrDefaultScreens = 0 CmQualityMask = 196608 CmRGB16LSpace = 17665 CmRGB16Space = 1281 CmRGB24Space = 8449 CmRGB32Space = 2049 CmRGB48LSpace = 26881 CmRGB48Space = 10497 CmRGB565LSpace = 17921 CmRGB565Space = 1537 CmRGBA32PmulSpace = 2241 CmRGBA32Space = 2177 CmRGBA64LPmulSpace = 27329 CmRGBA64LSpace = 27265 CmRGBA64PmulSpace = 10945 CmRGBA64Space = 10881 CmRGBAPmulSpace = 193 CmRGBASpace = 129 CmRGBData = 1380401696 CmRGBSpace = 1 CmReadAccess = 3 CmReadSpool = 3 CmRedColorantTag = 1918392666 CmRedTRCTag = 1918128707 CmReflective = 0 CmReflectiveTransparentMask = 1 CmRelativeColorimetric = 1 CmReservedSpace1 = 9 CmReservedSpace2 = 11 CmReverseChannelPacking = 32768 CmSRGB16ChannelEncoding = 65536 CmSRGBData = 1934772034 CmSaturation = 2 CmScannerDeviceClass = 1935896178 CmScreeningDescTag = 1935897188 CmScreeningTag = 1935897198 CmSigCrdInfoType = 1668441193 CmSigCurveType = 1668641398 CmSigDataType = 1684108385 CmSigDateTimeType = 1685350765 CmSigLut16Type = 1835430962 CmSigLut8Type = 1835430961 CmSigMakeAndModelType = 1835888484 CmSigMeasurementType = 1835360627 CmSigMultiFunctA2BType = 1832993312 CmSigMultiFunctB2AType = 1833058592 CmSigMultiLocalizedUniCodeType = 1835824483 CmSigNamedColor2Type = 1852009522 CmSigNamedColorType = 1852010348 CmSigNativeDisplayInfoType = 1852074350 CmSigPS2CRDVMSizeType = 1886615149 CmSigParametricCurveType = 1885434465 CmSigProfileDescriptionType = 1684370275 CmSigProfileSequenceDescType = 1886610801 CmSigS15Fixed16Type = 1936077618 CmSigScreeningType = 1935897198 CmSigSignatureType = 1936287520 CmSigTextType = 1952807028 CmSigU16Fixed16Type = 1969632050 CmSigU1Fixed15Type = 1969631542 CmSigUInt16Type = 1969828150 CmSigUInt32Type = 1969828658 CmSigUInt64Type = 1969829428 CmSigUInt8Type = 1969827896 CmSigUcrBgType = 1650877472 CmSigUnicodeTextType = 1970567284 CmSigVideoCardGammaType = 1986226036 CmSigViewingConditionsType = 1986618743 CmSigXYZType = 1482250784 CmSiliconGraphics = 1397180704 CmSolaris = 1398099543 CmSpotFunctionCross = 7 CmSpotFunctionDefault = 1 CmSpotFunctionDiamond = 3 CmSpotFunctionEllipse = 4 CmSpotFunctionLine = 5 CmSpotFunctionRound = 2 CmSpotFunctionSquare = 6 CmSpotFunctionUnknown = 0 CmStdobs1931TwoDegrees = 1 CmStdobs1964TenDegrees = 2 CmStdobsUnknown = 0 CmTaligent = 1413959252 CmTechnologyAMDisplay = 1095582752 CmTechnologyCRTDisplay = 1129468960 CmTechnologyDigitalCamera = 1684234605 CmTechnologyDyeSublimationPrinter = 1685288290 CmTechnologyElectrophotographicPrinter = 1701865583 CmTechnologyElectrostaticPrinter = 1702065249 CmTechnologyFilmScanner = 1718838126 CmTechnologyFilmWriter = 1718645358 CmTechnologyFlexography = 1718379896 CmTechnologyGravure = 1735549302 CmTechnologyInkJetPrinter = 1768580468 CmTechnologyOffsetLithography = 1868981875 CmTechnologyPMDisplay = 1347240992 CmTechnologyPhotoCD = 1263551300 CmTechnologyPhotoImageSetter = 1768777587 CmTechnologyPhotographicPaperPrinter = 1919969391 CmTechnologyProjectionTelevision = 1886024822 CmTechnologyReflectiveScanner = 1920164718 CmTechnologySilkscreen = 1936288875 CmTechnologyTag = 1952801640 CmTechnologyThermalWaxPrinter = 1953980792 CmTechnologyVideoCamera = 1986618467 CmTechnologyVideoMonitor = 1986618477 CmUcrBgTag = 1650877472 CmUseDefaultChromaticAdaptation = 0 CmVideoCardGammaFormulaType = 1 CmVideoCardGammaTableType = 0 CmVideoCardGammaTag = 1986226036 CmViewingConditionsDescTag = 1987405156 CmViewingConditionsTag = 1986618743 CmVonKriesChromaticAdaptation = 2 CmWord565ColorPacking = 1536 CmWord5ColorPacking = 1280 CmWriteAccess = 4 CmWriteSpool = 4 CmXYZ24Space = 8454 CmXYZ32Space = 2566 CmXYZ48LSpace = 26886 CmXYZ48Space = 10502 CmXYZData = 1482250784 CmXYZSpace = 6 CmYCbCrData = 1497588338 CmYXY32Space = 2565 CmYXYSpace = 5 CmYxyData = 1501067552 K16BE555PixelFormat = 16 K16BE565PixelFormat = 1110783541 K16LE5551PixelFormat = 892679473 K16LE555PixelFormat = 1278555445 K16LE565PixelFormat = 1278555701 K1IndexedGrayPixelFormat = 33 K1MonochromePixelFormat = 1 K24BGRPixelFormat = 842285639 K24RGBPixelFormat = 24 K2IndexedGrayPixelFormat = 34 K2IndexedPixelFormat = 2 K2vuyPixelFormat = 846624121 K32ABGRPixelFormat = 1094862674 K32ARGBPixelFormat = 32 K32BGRAPixelFormat = 1111970369 K32RGBAPixelFormat = 1380401729 K4IndexedGrayPixelFormat = 36 K4IndexedPixelFormat = 4 K8IndexedGrayPixelFormat = 40 K8IndexedPixelFormat = 8 KDefaultCMMSignature = 1634758764 KDeviceToPCS = 1 KHorizontalConstraint = 2 KNoConstraint = 0 KNoTransform = 0 KPCSToDevice = 2 KPCSToPCS = 3 KUYVY422PixelFormat = 1431918169 KUseAtoB = 1 KUseBtoA = 2 KUseBtoB = 3 KUseProfileIntent = -1 KVerticalConstraint = 1 KYUV211PixelFormat = 1496461617 KYUV411PixelFormat = 1496592689 KYUVSPixelFormat = 2037741171 KYUVUPixelFormat = 2037741173 KYVU9PixelFormat = 1498830137 KYVYU422PixelFormat = 1498831189 SrcCopy = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CM2Header ¶
type CM2Header struct {
Size uint32
CMMType uint32
ProfileVersion uint32
ProfileClass uint32
DataColorSpace uint32
ProfileConnectionSpace uint32
DateTime CMDateTime
CS2profileSignature uint32
Platform uint32
Flags uint32
DeviceManufacturer uint32
DeviceModel uint32
DeviceAttributes [2]uint32
RenderingIntent uint32
White CMFixedXYZColor
Creator uint32
Reserved [44]int8
}
type CM2Profile ¶
type CM2Profile struct {
Header CM2Header
TagTable CMTagElemTable
ElemData [1]int8
}
type CM2ProfilePtr ¶
type CM2ProfilePtr = *CM2Profile
CM2ProfilePtr is an alias for the CM2Profile value type.
type CM4Header ¶
type CM4Header struct {
Size uint32
CMMType uint32
ProfileVersion uint32
ProfileClass uint32
DataColorSpace uint32
ProfileConnectionSpace uint32
DateTime CMDateTime
CS2profileSignature uint32
Platform uint32
Flags uint32
DeviceManufacturer uint32
DeviceModel uint32
DeviceAttributes [2]uint32
RenderingIntent uint32
White CMFixedXYZColor
Creator uint32
Digest [16]uint8
Reserved [28]int8
}
type CMAdaptationMatrixType ¶
type CMAppleProfileHeader ¶ added in v0.18.0
type CMBufferLocation ¶
type CMBufferLocation struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
func (*CMBufferLocation) AsBuffer ¶ added in v0.18.0
func (u *CMBufferLocation) AsBuffer() unsafe.Pointer
AsBuffer returns the buffer field, read from the backing bytes at offset 0.
func (*CMBufferLocation) AsSize ¶ added in v0.18.0
func (u *CMBufferLocation) AsSize() uint32
AsSize returns the size field, read from the backing bytes at offset 8.
type CMCMYColor ¶
type CMCMYKColor ¶
type CMColor ¶ added in v0.18.0
type CMColor struct {
Rgb CMRGBColor
Hsv CMHSVColor
Hls CMHLSColor
XYZ CMXYZColor
Lab CMLabColor
Luv CMLuvColor
Yxy CMYxyColor
Cmyk CMCMYKColor
Cmy CMCMYColor
Gray CMGrayColor
Mc5 CMMultichannel5Color
Mc6 CMMultichannel6Color
Mc7 CMMultichannel7Color
Mc8 CMMultichannel8Color
NamedColor CMNamedColor
}
type CMConcatProfileSet ¶
type CMCurveType ¶
type CMDataType ¶
type CMDateTime ¶
type CMDateTimeType ¶
type CMDateTimeType struct {
TypeDescriptor uint32
Reserved uint32
DateTime CMDateTime
}
type CMDeviceInfo ¶
type CMDeviceInfoPtr ¶
type CMDeviceInfoPtr = *CMDeviceInfo
CMDeviceInfoPtr is an alias for the CMDeviceInfo value type.
type CMDeviceProfileArray ¶
type CMDeviceProfileArray struct {
ProfileCount uint32
Profiles [1]CMDeviceProfileInfo
}
type CMDeviceProfileArrayPtr ¶
type CMDeviceProfileArrayPtr = *CMDeviceProfileArray
CMDeviceProfileArrayPtr is an alias for the CMDeviceProfileArray value type.
type CMDeviceProfileInfo ¶
type CMDeviceProfileInfo struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
func (*CMDeviceProfileInfo) AsDataVersion ¶ added in v0.18.0
func (u *CMDeviceProfileInfo) AsDataVersion() uint32
AsDataVersion returns the dataVersion field, read from the backing bytes at offset 0.
func (*CMDeviceProfileInfo) AsProfileID ¶ added in v0.18.0
func (u *CMDeviceProfileInfo) AsProfileID() uint32
AsProfileID returns the profileID field, read from the backing bytes at offset 4.
func (*CMDeviceProfileInfo) AsReserved ¶ added in v0.18.0
func (u *CMDeviceProfileInfo) AsReserved() uint32
AsReserved returns the reserved field, read from the backing bytes at offset 1048.
type CMDeviceProfileScope ¶
type CMDeviceProfileScope = CMDeviceScope
CMDeviceProfileScope is an alias for the CMDeviceScope value type.
type CMDeviceScope ¶
type CMFixedXYColor ¶
type CMFixedXYZColor ¶
type CMFloatBitmap ¶
type CMFloatBitmap struct {
Version uint
Buffers unsafe.Pointer
Height uint
Width uint
RowStride int
ColStride int
Space uint32
Flags CMFloatBitmapFlags
}
A new struture that defines and arbritrary map of float color values. The struture defines a pixel array of dimensions [height][width][chans] where 'chans' is the number of channels in the colorspace plus an optional one for alpha. The actual memory pointed to by the structure can contain a variety of possible arrangements. The actual data values can be chuncky or planar. The channels can by in any order. <PRE> Examples: a) float* p contains a 640w by 480h bitmap of chunky RGB data CMFloatBitmap map = { 0, // version {p, p+1, p+2}, // base addrs of R,G,B 480, 640, // height, width 640*3, // rowStride 3, // colStride cmRGBData, kCMFloatBitmapFlagsNone}; b) float* p contains a 640w by 480h bitmap of chunky BGRA data CMFloatBitmap map = { 0, // version {p+2, p+1, p, p+3}, // base addrs of R,G,B,A 480, 640, // height, width 640*4, // rowStride 3, // colStride cmRGBData, kCMFloatBitmapFlagsAlpha}; c) float* p contains a 640w by 480h bitmap of planar CMYK data CMFloatBitmap map = { 0, // version {p, p+640*480 , p+2*640*480 , p+3*640*480}, 480, 640, // height, width 640, // rowStride 1, // colStride cmCMYKData, kCMFloatBitmapFlagsNone}; </PRE>
type CMFloatBitmapFlags ¶
type CMFloatBitmapFlags int32
const ( KCMFloatBitmapFlagsNone CMFloatBitmapFlags = 0 KCMFloatBitmapFlagsAlpha CMFloatBitmapFlags = 1 KCMFloatBitmapFlagsAlphaPremul CMFloatBitmapFlags = 2 KCMFloatBitmapFlagsRangeClipped CMFloatBitmapFlags = 4 )
func (CMFloatBitmapFlags) String ¶
func (e CMFloatBitmapFlags) String() string
String returns the CMFloatBitmapFlags constant's name, or its numeric form when the value is not a known constant.
type CMGrayColor ¶
type CMGrayColor struct {
Gray uint16
}
type CMHLSColor ¶
type CMHSVColor ¶
type CMHandleLocation ¶
type CMHandleLocation struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
type CMIntentCRDVMSize ¶
type CMLabColor ¶
type CMLut8Type ¶
type CMLut16Type ¶
type CMLuvColor ¶
type CMMakeAndModel ¶
type CMMakeAndModelType ¶
type CMMakeAndModelType struct {
TypeDescriptor uint32
Reserved uint32
MakeAndModel CMMakeAndModel
}
type CMMeasurementType ¶
type CMMultiFunctCLUTType ¶
type CMMultiFunctLutA2BType ¶
type CMMultiFunctLutA2BType = CMMultiFunctLutType
CMMultiFunctLutA2BType is an alias for the CMMultiFunctLutType value type.
type CMMultiFunctLutB2AType ¶
type CMMultiFunctLutB2AType = CMMultiFunctLutType
CMMultiFunctLutB2AType is an alias for the CMMultiFunctLutType value type.
type CMMultiFunctLutType ¶
type CMMultichannel5Color ¶
type CMMultichannel5Color struct {
Components [5]uint8
}
type CMMultichannel6Color ¶
type CMMultichannel6Color struct {
Components [6]uint8
}
type CMMultichannel7Color ¶
type CMMultichannel7Color struct {
Components [7]uint8
}
type CMMultichannel8Color ¶
type CMMultichannel8Color struct {
Components [8]uint8
}
type CMNamedColor ¶
type CMNamedColor struct {
NamedColorIndex uint32
}
type CMNamedColor2EntryType ¶
type CMNamedColor2Type ¶
type CMNamedColorType ¶
type CMNativeDisplayInfo ¶
type CMNativeDisplayInfo struct {
DataSize uint32
RedPhosphor CMFixedXYColor
GreenPhosphor CMFixedXYColor
BluePhosphor CMFixedXYColor
WhitePoint CMFixedXYColor
RedGammaValue int32
GreenGammaValue int32
BlueGammaValue int32
GammaChannels uint16
GammaEntryCount uint16
GammaEntrySize uint16
GammaData [1]int8
}
type CMNativeDisplayInfoType ¶
type CMNativeDisplayInfoType struct {
TypeDescriptor uint32
Reserved uint32
NativeDisplayInfo CMNativeDisplayInfo
}
type CMPS2CRDVMSizeType ¶
type CMPS2CRDVMSizeType struct {
TypeDescriptor uint32
Reserved uint32
Count uint32
IntentCRD [1]CMIntentCRDVMSize
}
type CMParametricCurveType ¶
type CMPathLocation ¶
type CMPathLocation struct {
Path [1024]int8
}
type CMProfLoc ¶ added in v0.18.0
type CMProfLoc struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
type CMProfileIterateData ¶
type CMProfileLocation ¶
type CMProfileLocation struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
func (*CMProfileLocation) AsLocType ¶ added in v0.18.0
func (u *CMProfileLocation) AsLocType() int16
AsLocType returns the locType field, read from the backing bytes at offset 0.
type CMProfileRef ¶ added in v0.18.0
CMProfileRef is a handle for the opaque CMProfileRef type.
func (CMProfileRef) IsNil ¶ added in v0.18.0
func (h CMProfileRef) IsNil() bool
IsNil reports whether CMProfileRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CMRGBColor ¶
type CMS15Fixed16ArrayType ¶
type CMScreeningChannelRec ¶
type CMScreeningType ¶
type CMScreeningType struct {
TypeDescriptor uint32
Reserved uint32
ScreeningFlag uint32
ChannelCount uint32
ChannelInfo [1]CMScreeningChannelRec
}
type CMSignatureType ¶
type CMTagElemTable ¶
type CMTagElemTable struct {
Count uint32
TagList [1]CMTagRecord
}
type CMTagRecord ¶
type CMTextDescriptionType ¶
type CMTextType ¶
type CMU16Fixed16ArrayType ¶
type CMUInt8ArrayType ¶
type CMUInt16ArrayType ¶
type CMUInt32ArrayType ¶
type CMUInt64ArrayType ¶
type CMUcrBgType ¶
type CMUnicodeTextType ¶
type CMVideoCardGamma ¶
type CMVideoCardGammaFormula ¶
type CMVideoCardGammaTable ¶
type CMVideoCardGammaType ¶
type CMVideoCardGammaType struct {
TypeDescriptor uint32
Reserved uint32
Gamma CMVideoCardGamma
}
type CMViewingConditionsType ¶
type CMViewingConditionsType struct {
TypeDescriptor uint32
Reserved uint32
Illuminant CMFixedXYZColor
Surround CMFixedXYZColor
StdIlluminant uint32
}
type CMWorldRef ¶ added in v0.18.0
CMWorldRef is a handle for the opaque CMWorldRef type.
func (CMWorldRef) IsNil ¶ added in v0.18.0
func (h CMWorldRef) IsNil() bool
IsNil reports whether CMWorldRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CMXYZColor ¶
type CMXYZType ¶
type CMXYZType struct {
TypeDescriptor uint32
Reserved uint32
XYZ [1]CMFixedXYZColor
}
type CMYxyColor ¶
type CQDProcs ¶
type CQDProcs struct {
TextProc unsafe.Pointer
LineProc unsafe.Pointer
RectProc unsafe.Pointer
RRectProc unsafe.Pointer
OvalProc unsafe.Pointer
ArcProc unsafe.Pointer
PolyProc unsafe.Pointer
RgnProc unsafe.Pointer
BitsProc unsafe.Pointer
CommentProc unsafe.Pointer
TxMeasProc unsafe.Pointer
GetPicProc unsafe.Pointer
PutPicProc unsafe.Pointer
OpcodeProc unsafe.Pointer
NewProc1 unsafe.Pointer
GlyphsProc unsafe.Pointer
PrinterStatusProc unsafe.Pointer
NewProc4 unsafe.Pointer
NewProc5 unsafe.Pointer
NewProc6 unsafe.Pointer
}
type ColorSpec ¶
type ColorSpec struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
type ColorTable ¶
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FMInput ¶
type FMInput struct {
Family int16
Size int16
Face uint8
NeedBits uint8
Device int16
Numer carboncore.Point
Denom carboncore.Point
}
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type GDevice ¶
type GDevice struct {
GdRefNum int16
GdID int16
GdType int16
GdITable unsafe.Pointer
GdResPref int16
GdSearchProc unsafe.Pointer
GdCompProc unsafe.Pointer
GdFlags int16
GdPMap unsafe.Pointer
GdRefCon int32
GdNextGD unsafe.Pointer
GdRect carboncore.Rect
GdMode int32
GdCCBytes int16
GdCCDepth int16
GdCCXData unsafe.Pointer
GdCCXMask unsafe.Pointer
GdExt unsafe.Pointer
}
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MacPolygon ¶
type MacPolygon struct {
PolySize int16
PolyBBox carboncore.Rect
PolyPoints unsafe.Pointer
}
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NCMConcatProfileSet ¶
type NCMConcatProfileSet struct {
Cmm uint32
Flags uint32
FlagsMask uint32
ProfileCount uint32
ProfileSpecs [1]NCMConcatProfileSpec
}
type NCMConcatProfileSpec ¶
type NCMConcatProfileSpec struct {
// contains filtered or unexported fields
}
The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.
func (*NCMConcatProfileSpec) AsRenderingIntent ¶ added in v0.18.0
func (u *NCMConcatProfileSpec) AsRenderingIntent() uint32
AsRenderingIntent returns the renderingIntent field, read from the backing bytes at offset 0.
func (*NCMConcatProfileSpec) AsTransformTag ¶ added in v0.18.0
func (u *NCMConcatProfileSpec) AsTransformTag() uint32
AsTransformTag returns the transformTag field, read from the backing bytes at offset 4.
type NCMDeviceProfileInfo ¶
type NCMDeviceProfileInfo struct {
DataVersion uint32
ProfileID uint32
ProfileLoc CMProfileLocation
ProfileName unsafe.Pointer
ProfileScope CMDeviceScope
Reserved uint32
}
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type OpaqueCMProfileRef ¶
type OpaqueCMProfileRef struct{}
type OpaqueCMWorldRef ¶
type OpaqueCMWorldRef struct{}
type OpaqueDialogPtr ¶
type OpaqueDialogPtr struct{}
type OpaqueGrafPtr ¶
type OpaqueGrafPtr struct{}
type OpaqueRgnHandle ¶
type OpaqueRgnHandle struct{}
type OpaqueWindowPtr ¶
type OpaqueWindowPtr struct{}
type OpenCPicParams ¶
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type Picture ¶
type Picture struct {
PicSize int16
PicFrame carboncore.Rect
}
type Point ¶ added in v0.18.0
****************************************************************************** Quickdraw Types Point 2D Quickdraw coordinate, range: -32K to +32K Rect Rectangular Quickdraw area Style Quickdraw font rendering styles StyleParameter Style when used as a parameter (historical 68K convention) StyleField Style when used as a field (historical 68K convention) CharParameter Char when used as a parameter (historical 68K convention) Note: The original Macintosh toolbox in 68K Pascal defined Style as a SET. Both Style and CHAR occupy 8-bits in packed records or 16-bits when used as fields in non-packed records or as parameters. *******************************************************************************
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type StyleTable ¶
type VDGammaRecord ¶
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.