qd

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for darwin/amd64

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

View Source
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 AsscEntry

type AsscEntry struct {
	FontSize  int16
	FontStyle int16
	FontID    int16
}

type BitMap

type BitMap struct {
	BaseAddr unsafe.Pointer
	RowBytes int16
	Bounds   carboncore.Rect
}

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 CMAdaptationMatrixType struct {
	TypeDescriptor   uint32
	Reserved         uint32
	AdaptationMatrix [9]int32
}

type CMAppleProfileHeader added in v0.18.0

type CMAppleProfileHeader struct {
	Cm2 CM2Header
	Cm4 CM4Header
}

type CMBitmap

type CMBitmap struct {
	Image     unsafe.Pointer
	Width     uint
	Height    uint
	RowBytes  uint
	PixelSize uint
	Space     uint32
	User1     uint32
	User2     uint32
}

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 CMCMYColor struct {
	Cyan    uint16
	Magenta uint16
	Yellow  uint16
}

type CMCMYKColor

type CMCMYKColor struct {
	Cyan    uint16
	Magenta uint16
	Yellow  uint16
	Black   uint16
}

type CMConcatProfileSet

type CMConcatProfileSet struct {
	KeyIndex   uint16
	Count      uint16
	ProfileSet unsafe.Pointer
}

type CMCurveType

type CMCurveType struct {
	TypeDescriptor uint32
	Reserved       uint32
	CountValue     uint32
	Data           [1]uint16
}

type CMDataType

type CMDataType struct {
	TypeDescriptor uint32
	Reserved       uint32
	DataFlag       uint32
	Data           [1]int8
}

type CMDateTime

type CMDateTime struct {
	Year          uint16
	Month         uint16
	DayOfTheMonth uint16
	Hours         uint16
	Minutes       uint16
	Seconds       uint16
}

type CMDateTimeType

type CMDateTimeType struct {
	TypeDescriptor uint32
	Reserved       uint32
	DateTime       CMDateTime
}

type CMDeviceInfo

type CMDeviceInfo struct {
	DataVersion      uint32
	DeviceClass      uint32
	DeviceID         uint32
	DeviceScope      CMDeviceScope
	DeviceState      uint32
	DefaultProfileID uint32
	DeviceName       unsafe.Pointer
	ProfileCount     uint32
	Reserved         uint32
}

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 CMDeviceScope struct {
	DeviceUser unsafe.Pointer
	DeviceHost unsafe.Pointer
}

type CMFixedXYColor

type CMFixedXYColor struct {
	X int32
	Y int32
}

type CMFixedXYZColor

type CMFixedXYZColor struct {
	X int32
	Y int32
	Z int32
}

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 CMHLSColor struct {
	Hue        uint16
	Lightness  uint16
	Saturation uint16
}

type CMHSVColor

type CMHSVColor struct {
	Hue        uint16
	Saturation uint16
	Value      uint16
}

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 CMIntentCRDVMSize struct {
	RenderingIntent uint32
	VMSize          uint32
}

type CMLabColor

type CMLabColor struct {
	L uint16
	A uint16
	B uint16
}

type CMLut8Type

type CMLut8Type struct {
	TypeDescriptor uint32
	Reserved       uint32
	InputChannels  uint8
	OutputChannels uint8
	GridPoints     uint8
	Reserved2      uint8
	Matrix         [3][3]int32
	InputTable     [1]uint8
}

type CMLut16Type

type CMLut16Type struct {
	TypeDescriptor     uint32
	Reserved           uint32
	InputChannels      uint8
	OutputChannels     uint8
	GridPoints         uint8
	Reserved2          uint8
	Matrix             [3][3]int32
	InputTableEntries  uint16
	OutputTableEntries uint16
	InputTable         [1]uint16
}

type CMLuvColor

type CMLuvColor struct {
	L uint16
	U uint16
	V uint16
}

type CMMInfo

type CMMInfo struct {
	DataSize         uint
	CMMType          uint32
	CMMMfr           uint32
	CMMVersion       uint32
	ASCIIName        [32]uint8
	ASCIIDesc        [256]uint8
	UniCodeNameCount uint
	UniCodeName      [32]uint16
	UniCodeDescCount uint
	UniCodeDesc      [256]uint16
}

type CMMakeAndModel

type CMMakeAndModel struct {
	Manufacturer    uint32
	Model           uint32
	SerialNumber    uint32
	ManufactureDate uint32
	Reserved1       uint32
	Reserved2       uint32
	Reserved3       uint32
	Reserved4       uint32
}

type CMMakeAndModelType

type CMMakeAndModelType struct {
	TypeDescriptor uint32
	Reserved       uint32
	MakeAndModel   CMMakeAndModel
}

type CMMeasurementType

type CMMeasurementType struct {
	TypeDescriptor   uint32
	Reserved         uint32
	StandardObserver uint32
	BackingXYZ       CMFixedXYZColor
	Geometry         uint32
	Flare            uint32
	Illuminant       uint32
}

type CMMultiFunctCLUTType

type CMMultiFunctCLUTType struct {
	GridPoints [16]uint8
	EntrySize  uint8
	Reserved   [3]uint8
	Data       [2]uint8
}

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 CMMultiFunctLutType struct {
	TypeDescriptor uint32
	Reserved       uint32
	InputChannels  uint8
	OutputChannels uint8
	Reserved2      uint16
	OffsetBcurves  uint32
	OffsetMatrix   uint32
	OffsetMcurves  uint32
	OffsetCLUT     uint32
	OffsetAcurves  uint32
	Data           [1]uint8
}

type CMMultiLocalizedUniCodeEntryRec

type CMMultiLocalizedUniCodeEntryRec struct {
	LanguageCode [2]int8
	RegionCode   [2]int8
	TextLength   uint32
	TextOffset   uint32
}

type CMMultiLocalizedUniCodeType

type CMMultiLocalizedUniCodeType struct {
	TypeDescriptor uint32
	Reserved       uint32
	EntryCount     uint32
	EntrySize      uint32
}

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 CMNamedColor2EntryType struct {
	RootName          [32]uint8
	PCSColorCoords    [3]uint16
	DeviceColorCoords [1]uint16
}

type CMNamedColor2Type

type CMNamedColor2Type struct {
	TypeDescriptor     uint32
	Reserved           uint32
	VendorFlag         uint32
	Count              uint32
	DeviceChannelCount uint32
	PrefixName         [32]uint8
	SuffixName         [32]uint8
	Data               [1]int8
}

type CMNamedColorType

type CMNamedColorType struct {
	TypeDescriptor uint32
	Reserved       uint32
	VendorFlag     uint32
	Count          uint32
	PrefixName     [1]uint8
}

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 CMParametricCurveType struct {
	TypeDescriptor uint32
	Reserved       uint32
	FunctionType   uint16
	Reserved2      uint16
	Value          [1]int32
}

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 CMProfileIterateData struct {
	DataVersion      uint32
	Header           CM2Header
	Code             int16
	Name             [256]uint8
	Location         CMProfileLocation
	UniCodeNameCount uint
	UniCodeName      unsafe.Pointer
	ASCIIName        unsafe.Pointer
	MakeAndModel     unsafe.Pointer
	Digest           unsafe.Pointer
}

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

type CMProfileRef struct{ obj.Object }

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 CMProfileSequenceDescType

type CMProfileSequenceDescType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Count          uint32
	Data           [1]int8
}

type CMRGBColor

type CMRGBColor struct {
	Red   uint16
	Green uint16
	Blue  uint16
}

type CMS15Fixed16ArrayType

type CMS15Fixed16ArrayType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Value          [1]int32
}

type CMScreeningChannelRec

type CMScreeningChannelRec struct {
	Frequency    int32
	Angle        int32
	SpotFunction uint32
}

type CMScreeningType

type CMScreeningType struct {
	TypeDescriptor uint32
	Reserved       uint32
	ScreeningFlag  uint32
	ChannelCount   uint32
	ChannelInfo    [1]CMScreeningChannelRec
}

type CMSignatureType

type CMSignatureType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Signature      uint32
}

type CMTagElemTable

type CMTagElemTable struct {
	Count   uint32
	TagList [1]CMTagRecord
}

type CMTagRecord

type CMTagRecord struct {
	Tag           uint32
	ElementOffset uint32
	ElementSize   uint32
}

type CMTextDescriptionType

type CMTextDescriptionType struct {
	TypeDescriptor uint32
	Reserved       uint32
	ASCIICount     uint32
	ASCIIName      [2]uint8
}

type CMTextType

type CMTextType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Text           [1]uint8
}

type CMU16Fixed16ArrayType

type CMU16Fixed16ArrayType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Value          [1]uint32
}

type CMUInt8ArrayType

type CMUInt8ArrayType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Value          [1]uint8
}

type CMUInt16ArrayType

type CMUInt16ArrayType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Value          [1]uint16
}

type CMUInt32ArrayType

type CMUInt32ArrayType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Value          [1]uint32
}

type CMUInt64ArrayType

type CMUInt64ArrayType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Value          [1]uint32
}

type CMUcrBgType

type CMUcrBgType struct {
	TypeDescriptor uint32
	Reserved       uint32
	UcrCount       uint32
	UcrValues      [1]uint16
}

type CMUnicodeTextType

type CMUnicodeTextType struct {
	TypeDescriptor uint32
	Reserved       uint32
	Text           [1]uint16
}

type CMVideoCardGamma

type CMVideoCardGamma struct {
	TagType uint32
	U       unsafe.Pointer
}

type CMVideoCardGammaFormula

type CMVideoCardGammaFormula struct {
	RedGamma   int32
	RedMin     int32
	RedMax     int32
	GreenGamma int32
	GreenMin   int32
	GreenMax   int32
	BlueGamma  int32
	BlueMin    int32
	BlueMax    int32
}

type CMVideoCardGammaTable

type CMVideoCardGammaTable struct {
	Channels   uint16
	EntryCount uint16
	EntrySize  uint16
	Data       [1]int8
}

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

type CMWorldRef struct{ obj.Object }

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 CMXYZColor struct {
	X uint16
	Y uint16
	Z uint16
}

type CMXYZType

type CMXYZType struct {
	TypeDescriptor uint32
	Reserved       uint32
	XYZ            [1]CMFixedXYZColor
}

type CMYxyColor

type CMYxyColor struct {
	CapY uint16
	X    uint16
	Y    uint16
}

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 Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

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.

func (*ColorSpec) AsValue added in v0.18.0

func (u *ColorSpec) AsValue() int16

AsValue returns the value field, read from the backing bytes at offset 0.

type ColorTable

type ColorTable struct {
	CtSeed  int32
	CtFlags int16
	CtSize  int16
	CtTable [1]ColorSpec
}

type DialogPtr added in v0.18.0

type DialogPtr struct{ obj.Object }

DialogPtr is a handle for the opaque DialogPtr type.

func (DialogPtr) IsNil added in v0.18.0

func (h DialogPtr) IsNil() bool

IsNil reports whether DialogPtr is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

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

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 EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type EvCmd

type EvCmd int32
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd 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 FamRec

type FamRec struct {
	FfFlags     int16
	FfFamID     int16
	FfFirstChar int16
	FfLastChar  int16
	FfAscent    int16
	FfDescent   int16
	FfLeading   int16
	FfWidMax    int16
	FfWTabOff   int32
	FfKernOff   int32
	FfStylOff   int32
	FfProperty  [9]int16
	FfIntl      [2]int16
	FfVersion   int16
}

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 Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type FontAssoc

type FontAssoc struct {
	NumAssoc int16
}

type FontInfo

type FontInfo struct {
	Ascent  int16
	Descent int16
	WidMax  int16
	Leading int16
}

type FontRec

type FontRec struct {
	FontType    int16
	FirstChar   int16
	LastChar    int16
	WidMax      int16
	KernMax     int16
	NDescent    int16
	FRectWidth  int16
	FRectHeight int16
	OwTLoc      uint16
	Ascent      int16
	Descent     int16
	Leading     int16
	RowWords    int16
}

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 GrafPort

type GrafPort struct {
	Whatever [87]int16
}

type GrafPtr added in v0.18.0

type GrafPtr struct{ obj.Object }

GrafPtr is a handle for the opaque GrafPtr type.

func (GrafPtr) IsNil added in v0.18.0

func (h GrafPtr) IsNil() bool

IsNil reports whether GrafPtr is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

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 KernEntry

type KernEntry struct {
	KernStyle  int16
	KernLength int16
}

type KernPair

type KernPair struct {
	KernFirst  int8
	KernSecond int8
	KernWidth  int16
}

type KernTable

type KernTable struct {
	NumKerns int16
}

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
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

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 NameTable

type NameTable struct {
	StringCount  int16
	BaseFontName [256]uint8
}

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid 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 OpenCPicParams struct {
	SrcRect   carboncore.Rect
	HRes      int32
	VRes      int32
	Version   int16
	Reserved1 int16
	Reserved2 int32
}

type Pattern

type Pattern struct {
	Pat [8]uint8
}

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
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type Picture

type Picture struct {
	PicSize  int16
	PicFrame carboncore.Rect
}

type PixMap

type PixMap struct {
	BaseAddr    unsafe.Pointer
	RowBytes    int16
	Bounds      carboncore.Rect
	PmVersion   int16
	PackType    int16
	PackSize    int32
	HRes        int32
	VRes        int32
	PixelType   int16
	PixelSize   int16
	CmpCount    int16
	CmpSize     int16
	PixelFormat uint32
	PmTable     unsafe.Pointer
	PmExt       unsafe.Pointer
}

type PixPat

type PixPat struct {
	PatType   int16
	PatMap    unsafe.Pointer
	PatData   unsafe.Pointer
	PatXData  unsafe.Pointer
	PatXValid int16
	PatXMap   unsafe.Pointer
	Pat1Data  Pattern
}

type Point added in v0.18.0

type Point struct {
	V int16
	H int16
}

****************************************************************************** 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 QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type RGBColor

type RGBColor struct {
	Red   uint16
	Green uint16
	Blue  uint16
}

type Rect added in v0.18.0

type Rect struct {
	Top    int16
	Left   int16
	Bottom int16
	Right  int16
}

type RgnHandle added in v0.18.0

type RgnHandle struct{ obj.Object }

RgnHandle is a handle for the opaque RgnHandle type.

func (RgnHandle) IsNil added in v0.18.0

func (h RgnHandle) IsNil() bool

IsNil reports whether RgnHandle is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type StyleTable

type StyleTable struct {
	FontClass int16
	Offset    int32
	Reserved  int32
	Indexes   [48]int8
}

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type VDGammaRecord

type VDGammaRecord struct {
	CsGTable unsafe.Pointer
}

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

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type WindowPtr added in v0.18.0

type WindowPtr struct{ obj.Object }

WindowPtr is a handle for the opaque WindowPtr type.

func (WindowPtr) IsNil added in v0.18.0

func (h WindowPtr) IsNil() bool

IsNil reports whether WindowPtr is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL