coregraphics

package
v0.6.21 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 9 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package coregraphics provides Go bindings for the CoreGraphics framework.

Harness the power of Quartz technology to perform lightweight 2D rendering with high-fidelity output. Handle path-based drawing, antialiased rendering, gradients, images, color management, PDF documents, and more.

The Core Graphics framework is based on the Quartz advanced drawing engine. It provides low-level, lightweight 2D rendering with unmatched output fidelity. You use this framework to handle path-based drawing, transformations, color management, offscreen rendering, patterns, gradients and shadings, image data management, image creation, and image masking, as well as PDF document creation, display, and parsing.

Opaque Types

Services

Variables

Functions

Type Aliases

Enumerations

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	// CGRectInfinite is a rectangle that has infinite extent.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGRectInfinite
	CGRectInfinite corefoundation.CGRect
	// CGRectNull is the null rectangle, representing an invalid value.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGRectNull
	CGRectNull corefoundation.CGRect
	// CGRectZero is a rectangle constant with location `(0,0)`, and width and height of 0. The zero rectangle is equivalent to `CGRectMake(0,0,0,0)`.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGRectZero
	CGRectZero corefoundation.CGRect
)
View Source
var (
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGAdaptiveMaximumBitDepth
	KCGAdaptiveMaximumBitDepth string
	// KCGColorBlack is the black color in the Generic gray color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGColorBlack
	KCGColorBlack string
	// KCGColorClear is the clear color in the Generic gray color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGColorClear
	KCGColorClear string
	// KCGColorConversionBlackPointCompensation is an option for whether to apply black point compensation when converting between color profiles.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColor/conversionBlackPointCompensation
	KCGColorConversionBlackPointCompensation string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColor/conversionTRCSize
	KCGColorConversionTRCSize string
	// KCGColorSpaceACESCGLinear is the ACEScg color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/acescgLinear
	KCGColorSpaceACESCGLinear string
	// KCGColorSpaceAdobeRGB1998 is the Adobe RGB (1998) color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/adobeRGB1998
	KCGColorSpaceAdobeRGB1998 string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/coreMedia709
	KCGColorSpaceCoreMedia709 string
	// KCGColorSpaceDCIP3 is the DCI P3 color space, which is the digital cinema standard.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/dcip3
	KCGColorSpaceDCIP3 string
	// KCGColorSpaceDisplayP3 is the Display P3 color space, created by Apple.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/displayP3
	KCGColorSpaceDisplayP3 string
	// KCGColorSpaceDisplayP3_HLG is the Display P3 color space, using the HLG transfer function.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/displayP3_HLG
	KCGColorSpaceDisplayP3_HLG string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/displayP3_PQ
	KCGColorSpaceDisplayP3_PQ string
	// KCGColorSpaceDisplayP3_PQ_EOTF is the Display P3 color space, using the PQ transfer function.
	//
	// Deprecated: Deprecated since macOS 10.15.4. No longer supported
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/displayP3_PQ_EOTF
	KCGColorSpaceDisplayP3_PQ_EOTF string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/extendedDisplayP3
	KCGColorSpaceExtendedDisplayP3 string
	// KCGColorSpaceExtendedGray is the extended gray color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/extendedGray
	KCGColorSpaceExtendedGray string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/extendedITUR_2020
	KCGColorSpaceExtendedITUR_2020 string
	// KCGColorSpaceExtendedLinearDisplayP3 is the Display P3 color space with a linear transfer function and extended-range values.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/extendedLinearDisplayP3
	KCGColorSpaceExtendedLinearDisplayP3 string
	// KCGColorSpaceExtendedLinearGray is the extended gray color space with a linear transfer function.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/extendedLinearGray
	KCGColorSpaceExtendedLinearGray string
	// KCGColorSpaceExtendedLinearITUR_2020 is the recommendation of the International Telecommunication Union (ITU) Radiocommunication sector for the BT.2020 color space, with a linear transfer function and extended range values.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/extendedLinearITUR_2020
	KCGColorSpaceExtendedLinearITUR_2020 string
	// KCGColorSpaceExtendedLinearSRGB is the sRGB color space with a linear transfer function and extended-range values.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/extendedLinearSRGB
	KCGColorSpaceExtendedLinearSRGB string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGColorSpaceExtendedRange
	KCGColorSpaceExtendedRange string
	// KCGColorSpaceExtendedSRGB is the extended sRGB color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/extendedSRGB
	KCGColorSpaceExtendedSRGB string
	// KCGColorSpaceGenericCMYK is the generic CMYK color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/genericCMYK
	KCGColorSpaceGenericCMYK string
	// KCGColorSpaceGenericGray is the name of the generic gray color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGColorSpaceGenericGray
	KCGColorSpaceGenericGray string
	// KCGColorSpaceGenericGrayGamma2_2 is the generic gray color space that has an exponential transfer function with a power of 2.2.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/genericGrayGamma2_2
	KCGColorSpaceGenericGrayGamma2_2 string
	// KCGColorSpaceGenericLab is the generic LAB color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/genericLab
	KCGColorSpaceGenericLab string
	// KCGColorSpaceGenericRGB is the name of the generic RGB color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGColorSpaceGenericRGB
	KCGColorSpaceGenericRGB string
	// KCGColorSpaceGenericRGBLinear is the generic RGB color space with a linear transfer function.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/genericRGBLinear
	KCGColorSpaceGenericRGBLinear string
	// KCGColorSpaceGenericXYZ is the XYZ color space, as defined by the CIE 1931 standard.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/genericXYZ
	KCGColorSpaceGenericXYZ string
	// KCGColorSpaceITUR_2020 is the recommendation of the International Telecommunication Union (ITU) Radiocommunication sector for the BT.2020 color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_2020
	KCGColorSpaceITUR_2020 string
	// KCGColorSpaceITUR_2020_HLG is the recommendation of the International Telecommunication Union (ITU) Radiocommunication sector for the BT.2020 color space, with the HLG transfer function.
	//
	// Deprecated: Deprecated since macOS 11.0. No longer supported
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_2020_HLG
	KCGColorSpaceITUR_2020_HLG string
	//
	// Deprecated: Deprecated since macOS 11.0. No longer supported
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_2020_PQ
	KCGColorSpaceITUR_2020_PQ string
	// KCGColorSpaceITUR_2020_PQ_EOTF is the recommendation of the International Telecommunication Union (ITU) Radiocommunication sector for the BT.2020 color space, with the PQ transfer function.
	//
	// Deprecated: Deprecated since macOS 10.15.4. No longer supported
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_2020_PQ_EOTF
	KCGColorSpaceITUR_2020_PQ_EOTF string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_2020_sRGBGamma
	KCGColorSpaceITUR_2020_sRGBGamma string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_2100_HLG
	KCGColorSpaceITUR_2100_HLG string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_2100_PQ
	KCGColorSpaceITUR_2100_PQ string
	// KCGColorSpaceITUR_709 is the recommendation of the International Telecommunication Union (ITU) Radiocommunication sector for the BT.709 color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_709
	KCGColorSpaceITUR_709 string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_709_HLG
	KCGColorSpaceITUR_709_HLG string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/itur_709_PQ
	KCGColorSpaceITUR_709_PQ string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/linearDisplayP3
	KCGColorSpaceLinearDisplayP3 string
	// KCGColorSpaceLinearGray is the gray color space using a linear transfer function.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/linearGray
	KCGColorSpaceLinearGray string
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/linearITUR_2020
	KCGColorSpaceLinearITUR_2020 string
	// KCGColorSpaceLinearSRGB is the sRGB color space with a linear transfer function.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/linearSRGB
	KCGColorSpaceLinearSRGB string
	// KCGColorSpaceROMMRGB is the Reference Output Medium Metric (ROMM) RGB color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/rommrgb
	KCGColorSpaceROMMRGB string
	// KCGColorSpaceSRGB is the standard Red Green Blue (sRGB) color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/sRGB
	KCGColorSpaceSRGB string
	// KCGColorWhite is the white color in the Generic gray color space.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGColorWhite
	KCGColorWhite string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGContentAverageLightLevel
	KCGContentAverageLightLevel string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGContentAverageLightLevelNits
	KCGContentAverageLightLevelNits string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGDisplayShowDuplicateLowResolutionModes
	KCGDisplayShowDuplicateLowResolutionModes string
	// KCGDisplayStreamColorSpace is this key specifies the color space of the output buffer. If this key is not included in the dictionary, the output buffer uses the same color space as the display. The value associated with this key must be a [CGColorSpace] for the desired color space.
	//
	// Deprecated: Please use ScreenCaptureKit instead.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/colorSpace
	KCGDisplayStreamColorSpace string
	// KCGDisplayStreamDestinationRect is this key specifies that the display stream outputs the frame data into a subset of the output [IOSurface] object.
	//
	// Deprecated: Please use ScreenCaptureKit instead.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/destinationRect
	KCGDisplayStreamDestinationRect string
	// KCGDisplayStreamMinimumFrameTime is this key specifies the desired minimum time between frame updates, allowing you to throttle the rate at which updates are received. If this key is not included in the dictionary, the default value is `0`, meaning that updates are not throttled. The value must be specified as a [CFNumber].
	//
	// Deprecated: Please use ScreenCaptureKit instead.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/minimumFrameTime
	KCGDisplayStreamMinimumFrameTime string
	// KCGDisplayStreamPreserveAspectRatio is this key specifies whether the display stream preserves the aspect ratio of the source pixel data. If this key is not included in the dictionary, then the aspect ratio is preserved. If the aspect ratio is preserved, then the display stream adds black bars to the output data. If the aspect ratio is not preserved, then the pixel data is stretched to fit the output buffer’s dimensions. The value associated with the key must be a [CFBoolean].
	//
	// Deprecated: Please use ScreenCaptureKit instead.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/preserveAspectRatio
	KCGDisplayStreamPreserveAspectRatio string
	// KCGDisplayStreamQueueDepth is this key specifies the number of frames to keep in the queue. If this key is not included in the dictionary, the default value is `3` frames. Specifying more frames uses more memory, but may allow you to process frame data without stalling the display stream. The value associated with this key should be specified as a [CFNumber], and should not exceed `8` frames.
	//
	// Deprecated: Please use ScreenCaptureKit instead.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/queueDepth
	KCGDisplayStreamQueueDepth string
	// KCGDisplayStreamShowCursor is this key specifies whether the cursor should appear in the stream. If this key is not included in the dictionary, the cursor is visible. The value must be specified as a [CFBoolean].
	//
	// Deprecated: Please use ScreenCaptureKit instead.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/showCursor
	KCGDisplayStreamShowCursor string
	// KCGDisplayStreamSourceRect is this key specifies that the display stream only samples a subset of the display’s framebuffer.
	//
	// Deprecated: Please use ScreenCaptureKit instead.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/sourceRect
	KCGDisplayStreamSourceRect string
	// KCGDisplayStreamYCbCrMatrix is this key should only be included if you the display stream is creating output frames in either the 420v or 420f formats. It is used to specify the YCbCr matrix applied to the output surface.
	//
	// Deprecated: Please use ScreenCaptureKit instead.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/yCbCrMatrix
	KCGDisplayStreamYCbCrMatrix string
	// KCGDisplayStreamYCbCrMatrix_ITU_R_601_4 is specifies the YCbCr to RGB conversion matrix for standard digital television (ITU R 601) images.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/yCbCrMatrix_ITU_R_601_4
	KCGDisplayStreamYCbCrMatrix_ITU_R_601_4 string
	// KCGDisplayStreamYCbCrMatrix_ITU_R_709_2 is specifies the YCbCr to RGB conversion matrix for HDTV digital television (ITU R 709) images.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/yCbCrMatrix_ITU_R_709_2
	KCGDisplayStreamYCbCrMatrix_ITU_R_709_2 string
	// KCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995 is specifies the YCbCR to RGB conversion matrix for 1920 x 1135 HDTV (SMPTE 240M 1995).
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/yCbCrMatrix_SMPTE_240M_1995
	KCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995 string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGDynamicRangeConstrained
	KCGDynamicRangeConstrained string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGDynamicRangeHigh
	KCGDynamicRangeHigh string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGDynamicRangeStandard
	KCGDynamicRangeStandard string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGEXRToneMappingGammaDefog
	KCGEXRToneMappingGammaDefog string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGEXRToneMappingGammaExposure
	KCGEXRToneMappingGammaExposure string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGEXRToneMappingGammaKneeHigh
	KCGEXRToneMappingGammaKneeHigh string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGEXRToneMappingGammaKneeLow
	KCGEXRToneMappingGammaKneeLow string
	// KCGFontVariationAxisDefaultValue is the key used to obtain the default variation axis value from a variation axis dictionary.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGFont/variationAxisDefaultValue
	KCGFontVariationAxisDefaultValue string
	// KCGFontVariationAxisMaxValue is the key used to obtain the maximum variation axis value from a variation axis dictionary.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGFont/variationAxisMaxValue
	KCGFontVariationAxisMaxValue string
	// KCGFontVariationAxisMinValue is the key used to obtain the minimum variation axis value from a variation axis dictionary.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGFont/variationAxisMinValue
	KCGFontVariationAxisMinValue string
	// KCGFontVariationAxisName is the key used to obtain the variation axis name from a variation axis dictionary.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGFont/variationAxisName
	KCGFontVariationAxisName string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextAccessPermissions
	KCGPDFContextAccessPermissions string
	// KCGPDFContextAllowsCopying is whether the document allows copying when unlocked with the user password.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextAllowsCopying
	KCGPDFContextAllowsCopying string
	// KCGPDFContextAllowsPrinting is whether the document allows printing when unlocked with the user password.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextAllowsPrinting
	KCGPDFContextAllowsPrinting string
	// KCGPDFContextArtBox is the art box for the document or for a given page.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextArtBox
	KCGPDFContextArtBox string
	// KCGPDFContextAuthor is the corresponding value is a string that represents the name of the person who created the document. This key is optional.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextAuthor
	KCGPDFContextAuthor string
	// KCGPDFContextBleedBox is the bleed box for the document or for a given page.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextBleedBox
	KCGPDFContextBleedBox string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextCreateLinearizedPDF
	KCGPDFContextCreateLinearizedPDF string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextCreatePDFA
	KCGPDFContextCreatePDFA string
	// KCGPDFContextCreator is the corresponding value is a string that represents the name of the application used to produce the document. This key is optional.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextCreator
	KCGPDFContextCreator string
	// KCGPDFContextCropBox is the crop box for the document or for a given page.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextCropBox
	KCGPDFContextCropBox string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextEncryptionKeyLength
	KCGPDFContextEncryptionKeyLength string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextKeywords
	KCGPDFContextKeywords string
	// KCGPDFContextMediaBox is the media box for the document or for a given page.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextMediaBox
	KCGPDFContextMediaBox string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextOutputIntent
	KCGPDFContextOutputIntent string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextOutputIntents
	KCGPDFContextOutputIntents string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextOwnerPassword
	KCGPDFContextOwnerPassword string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextSubject
	KCGPDFContextSubject string
	// KCGPDFContextTitle is the corresponding value is a string that represents the title of the document. This key is optional.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextTitle
	KCGPDFContextTitle string
	// KCGPDFContextTrimBox is the trim box for the document or for a given page.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextTrimBox
	KCGPDFContextTrimBox string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFContextUserPassword
	KCGPDFContextUserPassword string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFOutlineChildren
	KCGPDFOutlineChildren string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFOutlineDestination
	KCGPDFOutlineDestination string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFOutlineDestinationRect
	KCGPDFOutlineDestinationRect string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFOutlineTitle
	KCGPDFOutlineTitle string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFXDestinationOutputProfile
	KCGPDFXDestinationOutputProfile string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFXInfo
	KCGPDFXInfo string
	// KCGPDFXOutputCondition is a text string identifying the intended output device or production condition in a human-readable form.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFXOutputCondition
	KCGPDFXOutputCondition string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFXOutputConditionIdentifier
	KCGPDFXOutputConditionIdentifier string
	// KCGPDFXOutputIntentSubtype is the output intent subtype. This key is required.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFXOutputIntentSubtype
	KCGPDFXOutputIntentSubtype string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPDFXRegistryName
	KCGPDFXRegistryName string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGPreferredDynamicRange
	KCGPreferredDynamicRange string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGSkipBoostToHDR
	KCGSkipBoostToHDR string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGUse100nitsHLGOOTF
	KCGUse100nitsHLGOOTF string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGUseBT1886ForCoreVideoGamma
	KCGUseBT1886ForCoreVideoGamma string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGUseLegacyHDREcosystem
	KCGUseLegacyHDREcosystem string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowAlpha
	KCGWindowAlpha string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowBackingLocationVideoMemory
	KCGWindowBackingLocationVideoMemory string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowBounds
	KCGWindowBounds string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowIsOnscreen
	KCGWindowIsOnscreen string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowLayer
	KCGWindowLayer string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowMemoryUsage
	KCGWindowMemoryUsage string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowName
	KCGWindowName string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowNumber
	KCGWindowNumber string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowOwnerName
	KCGWindowOwnerName string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowOwnerPID
	KCGWindowOwnerPID string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowSharingState
	KCGWindowSharingState string
	// See: https://developer.apple.com/documentation/CoreGraphics/kCGWindowStoreType
	KCGWindowStoreType string
)
View Source
var (
	// CGAffineTransformIdentity is the identity transform.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformIdentity
	CGAffineTransformIdentity corefoundation.CGAffineTransform
)
View Source
var (
	// CGPointZero is a point constant with location `(0,0)`. The zero point is equivalent to `CGPointMake(0,0)`.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGPointZero
	CGPointZero corefoundation.CGPoint
)
View Source
var (
	// CGSizeZero is a size constant with width and height of `0`. The zero size is equivalent to `CGSizeMake(0,0)`.
	//
	// See: https://developer.apple.com/documentation/CoreGraphics/CGSizeZero
	CGSizeZero corefoundation.CGSize
)

Functions

func BindFunc

func BindFunc(fptr any, name string) (err error)

BindFunc binds the CoreGraphics symbol name into fptr, which must be a pointer to a func variable.

The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.

func CGAffineTransformConcat

CGAffineTransformConcat returns an affine transformation matrix constructed by combining two existing affine transforms.

It panics if CGAffineTransformConcat is unavailable at run time; use TryCGAffineTransformConcat to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformConcat(_:_:)

func CGAffineTransformDecompose

func CGAffineTransformDecompose(transform corefoundation.CGAffineTransform) uintptr

CGAffineTransformDecompose.

It panics if CGAffineTransformDecompose is unavailable at run time; use TryCGAffineTransformDecompose to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformDecompose

func CGAffineTransformEqualToTransform

func CGAffineTransformEqualToTransform(t1 corefoundation.CGAffineTransform, t2 corefoundation.CGAffineTransform) bool

CGAffineTransformEqualToTransform checks whether two affine transforms are equal.

It panics if CGAffineTransformEqualToTransform is unavailable at run time; use TryCGAffineTransformEqualToTransform to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformEqualToTransform(_:_:)

func CGAffineTransformInvert

CGAffineTransformInvert returns an affine transformation matrix constructed by inverting an existing affine transform.

It panics if CGAffineTransformInvert is unavailable at run time; use TryCGAffineTransformInvert to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformInvert(_:)

func CGAffineTransformIsIdentity

func CGAffineTransformIsIdentity(t corefoundation.CGAffineTransform) bool

CGAffineTransformIsIdentity checks whether an affine transform is the identity transform.

It panics if CGAffineTransformIsIdentity is unavailable at run time; use TryCGAffineTransformIsIdentity to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformIsIdentity(_:)

func CGAffineTransformMake

func CGAffineTransformMake(a float64, b float64, c float64, d float64, tx float64, ty float64) corefoundation.CGAffineTransform

CGAffineTransformMake returns an affine transformation matrix constructed from values you provide.

It panics if CGAffineTransformMake is unavailable at run time; use TryCGAffineTransformMake to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformMake(_:_:_:_:_:_:)

func CGAffineTransformMakeRotation

func CGAffineTransformMakeRotation(angle float64) corefoundation.CGAffineTransform

CGAffineTransformMakeRotation returns an affine transformation matrix constructed from a rotation value you provide.

It panics if CGAffineTransformMakeRotation is unavailable at run time; use TryCGAffineTransformMakeRotation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformMakeRotation(_:)

func CGAffineTransformMakeScale

func CGAffineTransformMakeScale(sx float64, sy float64) corefoundation.CGAffineTransform

CGAffineTransformMakeScale returns an affine transformation matrix constructed from scaling values you provide.

It panics if CGAffineTransformMakeScale is unavailable at run time; use TryCGAffineTransformMakeScale to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformMakeScale(_:_:)

func CGAffineTransformMakeTranslation

func CGAffineTransformMakeTranslation(tx float64, ty float64) corefoundation.CGAffineTransform

CGAffineTransformMakeTranslation returns an affine transformation matrix constructed from translation values you provide.

It panics if CGAffineTransformMakeTranslation is unavailable at run time; use TryCGAffineTransformMakeTranslation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformMakeTranslation(_:_:)

func CGAffineTransformMakeWithComponents

func CGAffineTransformMakeWithComponents(components uintptr) corefoundation.CGAffineTransform

CGAffineTransformMakeWithComponents.

It panics if CGAffineTransformMakeWithComponents is unavailable at run time; use TryCGAffineTransformMakeWithComponents to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformMakeWithComponents

func CGAffineTransformRotate

CGAffineTransformRotate returns an affine transformation matrix constructed by rotating an existing affine transform.

It panics if CGAffineTransformRotate is unavailable at run time; use TryCGAffineTransformRotate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformRotate(_:_:)

func CGAffineTransformScale

CGAffineTransformScale returns an affine transformation matrix constructed by scaling an existing affine transform.

It panics if CGAffineTransformScale is unavailable at run time; use TryCGAffineTransformScale to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformScale(_:_:_:)

func CGAffineTransformTranslate

CGAffineTransformTranslate returns an affine transformation matrix constructed by translating an existing affine transform.

It panics if CGAffineTransformTranslate is unavailable at run time; use TryCGAffineTransformTranslate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAffineTransformTranslate(_:_:_:)

func CGBitmapContextGetBitsPerComponent

func CGBitmapContextGetBitsPerComponent(context CGContextRef) uintptr

CGBitmapContextGetBitsPerComponent returns the bits per component of a bitmap context.

It panics if CGBitmapContextGetBitsPerComponent is unavailable at run time; use TryCGBitmapContextGetBitsPerComponent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/bitsPerComponent

func CGBitmapContextGetBitsPerPixel

func CGBitmapContextGetBitsPerPixel(context CGContextRef) uintptr

CGBitmapContextGetBitsPerPixel returns the bits per pixel of a bitmap context.

It panics if CGBitmapContextGetBitsPerPixel is unavailable at run time; use TryCGBitmapContextGetBitsPerPixel to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/bitsPerPixel

func CGBitmapContextGetBytesPerRow

func CGBitmapContextGetBytesPerRow(context CGContextRef) uintptr

CGBitmapContextGetBytesPerRow returns the bytes per row of a bitmap context.

It panics if CGBitmapContextGetBytesPerRow is unavailable at run time; use TryCGBitmapContextGetBytesPerRow to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/bytesPerRow

func CGBitmapContextGetData

func CGBitmapContextGetData(context CGContextRef) unsafe.Pointer

CGBitmapContextGetData returns a pointer to the image data associated with a bitmap context.

It panics if CGBitmapContextGetData is unavailable at run time; use TryCGBitmapContextGetData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/data

func CGBitmapContextGetHeight

func CGBitmapContextGetHeight(context CGContextRef) uintptr

CGBitmapContextGetHeight returns the height in pixels of a bitmap context.

It panics if CGBitmapContextGetHeight is unavailable at run time; use TryCGBitmapContextGetHeight to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/height

func CGBitmapContextGetWidth

func CGBitmapContextGetWidth(context CGContextRef) uintptr

CGBitmapContextGetWidth returns the width in pixels of a bitmap context.

It panics if CGBitmapContextGetWidth is unavailable at run time; use TryCGBitmapContextGetWidth to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/width

func CGColorConversionInfoConvertData

func CGColorConversionInfoConvertData(info CGColorConversionInfoRef, width uintptr, height uintptr, dst_data unsafe.Pointer, dst_format CGColorBufferFormat, src_data unsafe.Pointer, src_format CGColorBufferFormat, options corefoundation.CFDictionaryRef) bool

CGColorConversionInfoConvertData.

It panics if CGColorConversionInfoConvertData is unavailable at run time; use TryCGColorConversionInfoConvertData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfo/convert(width:height:to:format:from:format:options:)

func CGColorConversionInfoGetTypeID

func CGColorConversionInfoGetTypeID() uint

CGColorConversionInfoGetTypeID returns the Core Foundation type identifier for a color conversion info data type.

It panics if CGColorConversionInfoGetTypeID is unavailable at run time; use TryCGColorConversionInfoGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfo/typeID

func CGColorEqualToColor

func CGColorEqualToColor(color1 CGColorRef, color2 CGColorRef) bool

CGColorEqualToColor indicates whether two colors are equal.

It panics if CGColorEqualToColor is unavailable at run time; use TryCGColorEqualToColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorEqualToColor

func CGColorGetAlpha

func CGColorGetAlpha(color CGColorRef) float64

CGColorGetAlpha returns the value of the alpha component associated with a color.

It panics if CGColorGetAlpha is unavailable at run time; use TryCGColorGetAlpha to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/alpha

func CGColorGetComponents

func CGColorGetComponents(color CGColorRef) *float64

CGColorGetComponents returns the values of the color components (including alpha) associated with a color.

It panics if CGColorGetComponents is unavailable at run time; use TryCGColorGetComponents to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorGetComponents

func CGColorGetContentHeadroom

func CGColorGetContentHeadroom(color CGColorRef) float32

CGColorGetContentHeadroom.

It panics if CGColorGetContentHeadroom is unavailable at run time; use TryCGColorGetContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/contentHeadroom

func CGColorGetNumberOfComponents

func CGColorGetNumberOfComponents(color CGColorRef) uintptr

CGColorGetNumberOfComponents returns the number of color components (including alpha) associated with a color.

It panics if CGColorGetNumberOfComponents is unavailable at run time; use TryCGColorGetNumberOfComponents to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/numberOfComponents

func CGColorGetTypeID

func CGColorGetTypeID() uint

CGColorGetTypeID returns the Core Foundation type identifier for a color data type.

It panics if CGColorGetTypeID is unavailable at run time; use TryCGColorGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/typeID

func CGColorRelease

func CGColorRelease(color CGColorRef)

CGColorRelease decrements the retain count of a color.

It panics if CGColorRelease is unavailable at run time; use TryCGColorRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorRelease

func CGColorSpaceCopyICCData

func CGColorSpaceCopyICCData(space CGColorSpaceRef) corefoundation.CFDataRef

CGColorSpaceCopyICCData returns a copy of the ICC profile data of the provided color space.

It panics if CGColorSpaceCopyICCData is unavailable at run time; use TryCGColorSpaceCopyICCData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/copyICCData()

func CGColorSpaceCopyICCProfile deprecated

func CGColorSpaceCopyICCProfile(space CGColorSpaceRef) corefoundation.CFDataRef

CGColorSpaceCopyICCProfile returns a copy of the ICC profile of the provided color space.

It panics if CGColorSpaceCopyICCProfile is unavailable at run time; use TryCGColorSpaceCopyICCProfile to get an error instead.

Deprecated: Deprecated since macOS 10.13. Use [copyICCData()](<https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/copyICCData()>) instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/iccData

func CGColorSpaceCopyName

func CGColorSpaceCopyName(space CGColorSpaceRef) corefoundation.CFStringRef

CGColorSpaceCopyName returns the name used to create the specified color space.

It panics if CGColorSpaceCopyName is unavailable at run time; use TryCGColorSpaceCopyName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/name

func CGColorSpaceCopyPropertyList

func CGColorSpaceCopyPropertyList(space CGColorSpaceRef) corefoundation.CFPropertyListRef

CGColorSpaceCopyPropertyList returns a copy of the color space’s properties.

It panics if CGColorSpaceCopyPropertyList is unavailable at run time; use TryCGColorSpaceCopyPropertyList to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/copyPropertyList()

func CGColorSpaceGetColorTable

func CGColorSpaceGetColorTable(space CGColorSpaceRef, table []byte)

CGColorSpaceGetColorTable copies the entries in the color table of an indexed color space.

It panics if CGColorSpaceGetColorTable is unavailable at run time; use TryCGColorSpaceGetColorTable to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceGetColorTable

func CGColorSpaceGetColorTableCount

func CGColorSpaceGetColorTableCount(space CGColorSpaceRef) uintptr

CGColorSpaceGetColorTableCount returns the number of entries in the color table of an indexed color space.

It panics if CGColorSpaceGetColorTableCount is unavailable at run time; use TryCGColorSpaceGetColorTableCount to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceGetColorTableCount

func CGColorSpaceGetName

func CGColorSpaceGetName(space CGColorSpaceRef) corefoundation.CFStringRef

CGColorSpaceGetName.

It panics if CGColorSpaceGetName is unavailable at run time; use TryCGColorSpaceGetName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceGetName

func CGColorSpaceGetNumberOfComponents

func CGColorSpaceGetNumberOfComponents(space CGColorSpaceRef) uintptr

CGColorSpaceGetNumberOfComponents returns the number of color components in a color space.

It panics if CGColorSpaceGetNumberOfComponents is unavailable at run time; use TryCGColorSpaceGetNumberOfComponents to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/numberOfComponents

func CGColorSpaceGetTypeID

func CGColorSpaceGetTypeID() uint

CGColorSpaceGetTypeID returns the Core Foundation type identifier for Quartz color spaces.

It panics if CGColorSpaceGetTypeID is unavailable at run time; use TryCGColorSpaceGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/typeID

func CGColorSpaceIsHDR

func CGColorSpaceIsHDR(arg0 CGColorSpaceRef) bool

CGColorSpaceIsHDR.

It panics if CGColorSpaceIsHDR is unavailable at run time; use TryCGColorSpaceIsHDR to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/isHDR()

func CGColorSpaceIsHLGBased

func CGColorSpaceIsHLGBased(s CGColorSpaceRef) bool

CGColorSpaceIsHLGBased.

It panics if CGColorSpaceIsHLGBased is unavailable at run time; use TryCGColorSpaceIsHLGBased to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceIsHLGBased(_:)

func CGColorSpaceIsPQBased

func CGColorSpaceIsPQBased(s CGColorSpaceRef) bool

CGColorSpaceIsPQBased.

It panics if CGColorSpaceIsPQBased is unavailable at run time; use TryCGColorSpaceIsPQBased to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceIsPQBased(_:)

func CGColorSpaceIsWideGamutRGB

func CGColorSpaceIsWideGamutRGB(arg0 CGColorSpaceRef) bool

CGColorSpaceIsWideGamutRGB returns whether the RGB color space covers a significant portion of the NTSC color gamut.

It panics if CGColorSpaceIsWideGamutRGB is unavailable at run time; use TryCGColorSpaceIsWideGamutRGB to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/isWideGamutRGB

func CGColorSpaceRelease

func CGColorSpaceRelease(space CGColorSpaceRef)

CGColorSpaceRelease decrements the retain count of a color space.

It panics if CGColorSpaceRelease is unavailable at run time; use TryCGColorSpaceRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceRelease

func CGColorSpaceSupportsOutput

func CGColorSpaceSupportsOutput(space CGColorSpaceRef) bool

CGColorSpaceSupportsOutput returns a Boolean indicating whether the color space can be used as a destination color space.

It panics if CGColorSpaceSupportsOutput is unavailable at run time; use TryCGColorSpaceSupportsOutput to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/supportsOutput

func CGColorSpaceUsesExtendedRange

func CGColorSpaceUsesExtendedRange(space CGColorSpaceRef) bool

CGColorSpaceUsesExtendedRange.

It panics if CGColorSpaceUsesExtendedRange is unavailable at run time; use TryCGColorSpaceUsesExtendedRange to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceUsesExtendedRange(_:)

func CGColorSpaceUsesITUR_2100TF

func CGColorSpaceUsesITUR_2100TF(arg0 CGColorSpaceRef) bool

CGColorSpaceUsesITUR_2100TF.

It panics if CGColorSpaceUsesITUR_2100TF is unavailable at run time; use TryCGColorSpaceUsesITUR_2100TF to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceUsesITUR_2100TF(_:)

func CGContextAddArc

func CGContextAddArc(c CGContextRef, x float64, y float64, radius float64, startAngle float64, endAngle float64, clockwise int32)

CGContextAddArc adds an arc of a circle to the current path, possibly preceded by a straight line segment

It panics if CGContextAddArc is unavailable at run time; use TryCGContextAddArc to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextAddArc

func CGContextAddArcToPoint

func CGContextAddArcToPoint(c CGContextRef, x1 float64, y1 float64, x2 float64, y2 float64, radius float64)

CGContextAddArcToPoint adds an arc of a circle to the current path, using a radius and tangent points.

It panics if CGContextAddArcToPoint is unavailable at run time; use TryCGContextAddArcToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextAddArcToPoint

func CGContextAddCurveToPoint

func CGContextAddCurveToPoint(c CGContextRef, cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)

CGContextAddCurveToPoint appends a cubic Bézier curve from the current point, using the provided control points and end point .

It panics if CGContextAddCurveToPoint is unavailable at run time; use TryCGContextAddCurveToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextAddCurveToPoint

func CGContextAddEllipseInRect

func CGContextAddEllipseInRect(c CGContextRef, rect corefoundation.CGRect)

CGContextAddEllipseInRect adds an ellipse that fits inside the specified rectangle.

It panics if CGContextAddEllipseInRect is unavailable at run time; use TryCGContextAddEllipseInRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/addEllipse(in:)

func CGContextAddLineToPoint

func CGContextAddLineToPoint(c CGContextRef, x float64, y float64)

CGContextAddLineToPoint appends a straight line segment from the current point to the provided point .

It panics if CGContextAddLineToPoint is unavailable at run time; use TryCGContextAddLineToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextAddLineToPoint

func CGContextAddLines

func CGContextAddLines(c CGContextRef, points *corefoundation.CGPoint, count uintptr)

CGContextAddLines adds a sequence of connected straight-line segments to the current path.

It panics if CGContextAddLines is unavailable at run time; use TryCGContextAddLines to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextAddLines

func CGContextAddPath

func CGContextAddPath(c CGContextRef, path CGPathRef)

CGContextAddPath adds a previously created path object to the current path in a graphics context.

It panics if CGContextAddPath is unavailable at run time; use TryCGContextAddPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/addPath(_:)

func CGContextAddQuadCurveToPoint

func CGContextAddQuadCurveToPoint(c CGContextRef, cpx float64, cpy float64, x float64, y float64)

CGContextAddQuadCurveToPoint appends a quadratic Bézier curve from the current point, using a control point and an end point you specify.

It panics if CGContextAddQuadCurveToPoint is unavailable at run time; use TryCGContextAddQuadCurveToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextAddQuadCurveToPoint

func CGContextAddRect

func CGContextAddRect(c CGContextRef, rect corefoundation.CGRect)

CGContextAddRect adds a rectangular path to the current path.

It panics if CGContextAddRect is unavailable at run time; use TryCGContextAddRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/addRect(_:)

func CGContextAddRects

func CGContextAddRects(c CGContextRef, rects *corefoundation.CGRect, count uintptr)

CGContextAddRects adds a set of rectangular paths to the current path.

It panics if CGContextAddRects is unavailable at run time; use TryCGContextAddRects to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextAddRects

func CGContextBeginPage

func CGContextBeginPage(c CGContextRef, mediaBox *corefoundation.CGRect)

CGContextBeginPage starts a new page in a page-based graphics context.

It panics if CGContextBeginPage is unavailable at run time; use TryCGContextBeginPage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/beginPage(mediaBox:)

func CGContextBeginPath

func CGContextBeginPath(c CGContextRef)

CGContextBeginPath creates a new empty path in a graphics context.

It panics if CGContextBeginPath is unavailable at run time; use TryCGContextBeginPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/beginPath()

func CGContextBeginTransparencyLayer

func CGContextBeginTransparencyLayer(c CGContextRef, auxiliaryInfo corefoundation.CFDictionaryRef)

CGContextBeginTransparencyLayer begins a transparency layer.

It panics if CGContextBeginTransparencyLayer is unavailable at run time; use TryCGContextBeginTransparencyLayer to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/beginTransparencyLayer(auxiliaryInfo:)

func CGContextBeginTransparencyLayerWithRect

func CGContextBeginTransparencyLayerWithRect(c CGContextRef, rect corefoundation.CGRect, auxInfo corefoundation.CFDictionaryRef)

CGContextBeginTransparencyLayerWithRect begins a transparency layer whose contents are bounded by the specified rectangle.

It panics if CGContextBeginTransparencyLayerWithRect is unavailable at run time; use TryCGContextBeginTransparencyLayerWithRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/beginTransparencyLayer(in:auxiliaryInfo:)

func CGContextClearRect

func CGContextClearRect(c CGContextRef, rect corefoundation.CGRect)

CGContextClearRect paints a transparent rectangle.

It panics if CGContextClearRect is unavailable at run time; use TryCGContextClearRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/clear(_:)

func CGContextClip

func CGContextClip(c CGContextRef)

CGContextClip modifies the current clipping path, using the nonzero winding number rule.

It panics if CGContextClip is unavailable at run time; use TryCGContextClip to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextClip

func CGContextClipToMask

func CGContextClipToMask(c CGContextRef, rect corefoundation.CGRect, mask CGImageRef)

CGContextClipToMask maps a mask into the specified rectangle and intersects it with the current clipping area of the graphics context.

It panics if CGContextClipToMask is unavailable at run time; use TryCGContextClipToMask to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/clip(to:mask:)

func CGContextClipToRect

func CGContextClipToRect(c CGContextRef, rect corefoundation.CGRect)

CGContextClipToRect sets the clipping path to the intersection of the current clipping path with the area defined by the specified rectangle.

It panics if CGContextClipToRect is unavailable at run time; use TryCGContextClipToRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/clip(to:)-7cbwq

func CGContextClipToRects

func CGContextClipToRects(c CGContextRef, rects *corefoundation.CGRect, count uintptr)

CGContextClipToRects sets the clipping path to the intersection of the current clipping path with the region defined by an array of rectangles.

It panics if CGContextClipToRects is unavailable at run time; use TryCGContextClipToRects to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextClipToRects

func CGContextClosePath

func CGContextClosePath(c CGContextRef)

CGContextClosePath closes and terminates the current path’s subpath.

It panics if CGContextClosePath is unavailable at run time; use TryCGContextClosePath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/closePath()

func CGContextConcatCTM

func CGContextConcatCTM(c CGContextRef, transform corefoundation.CGAffineTransform)

CGContextConcatCTM transforms the user coordinate system in a context using a specified matrix.

It panics if CGContextConcatCTM is unavailable at run time; use TryCGContextConcatCTM to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/concatenate(_:)

func CGContextConvertPointToDeviceSpace

func CGContextConvertPointToDeviceSpace(c CGContextRef, point corefoundation.CGPoint) corefoundation.CGPoint

CGContextConvertPointToDeviceSpace returns a point that is transformed from user space coordinates to device space coordinates.

It panics if CGContextConvertPointToDeviceSpace is unavailable at run time; use TryCGContextConvertPointToDeviceSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/convertToDeviceSpace(_:)-53m7u

func CGContextConvertPointToUserSpace

func CGContextConvertPointToUserSpace(c CGContextRef, point corefoundation.CGPoint) corefoundation.CGPoint

CGContextConvertPointToUserSpace returns a point that is transformed from device space coordinates to user space coordinates.

It panics if CGContextConvertPointToUserSpace is unavailable at run time; use TryCGContextConvertPointToUserSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/convertToUserSpace(_:)-3mtg3

func CGContextConvertRectToDeviceSpace

func CGContextConvertRectToDeviceSpace(c CGContextRef, rect corefoundation.CGRect) corefoundation.CGRect

CGContextConvertRectToDeviceSpace returns a rectangle that is transformed from user space coordinate to device space coordinates.

It panics if CGContextConvertRectToDeviceSpace is unavailable at run time; use TryCGContextConvertRectToDeviceSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/convertToDeviceSpace(_:)-91x5g

func CGContextConvertRectToUserSpace

func CGContextConvertRectToUserSpace(c CGContextRef, rect corefoundation.CGRect) corefoundation.CGRect

CGContextConvertRectToUserSpace returns a rectangle that is transformed from device space coordinate to user space coordinates.

It panics if CGContextConvertRectToUserSpace is unavailable at run time; use TryCGContextConvertRectToUserSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/convertToUserSpace(_:)-1hk5r

func CGContextConvertSizeToDeviceSpace

func CGContextConvertSizeToDeviceSpace(c CGContextRef, size corefoundation.CGSize) corefoundation.CGSize

CGContextConvertSizeToDeviceSpace returns a size that is transformed from user space coordinates to device space coordinates.

It panics if CGContextConvertSizeToDeviceSpace is unavailable at run time; use TryCGContextConvertSizeToDeviceSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/convertToDeviceSpace(_:)-224h2

func CGContextConvertSizeToUserSpace

func CGContextConvertSizeToUserSpace(c CGContextRef, size corefoundation.CGSize) corefoundation.CGSize

CGContextConvertSizeToUserSpace returns a size that is transformed from device space coordinates to user space coordinates.

It panics if CGContextConvertSizeToUserSpace is unavailable at run time; use TryCGContextConvertSizeToUserSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/convertToUserSpace(_:)-693ur

func CGContextDrawConicGradient

func CGContextDrawConicGradient(c CGContextRef, gradient CGGradientRef, center corefoundation.CGPoint, angle float64)

CGContextDrawConicGradient.

It panics if CGContextDrawConicGradient is unavailable at run time; use TryCGContextDrawConicGradient to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextDrawConicGradient(_:_:_:_:)

func CGContextDrawImage

func CGContextDrawImage(c CGContextRef, rect corefoundation.CGRect, image CGImageRef)

CGContextDrawImage draws an image into a graphics context.

It panics if CGContextDrawImage is unavailable at run time; use TryCGContextDrawImage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextDrawImage

func CGContextDrawImageApplyingToneMapping

func CGContextDrawImageApplyingToneMapping(c CGContextRef, r corefoundation.CGRect, image CGImageRef, method CGToneMapping, options corefoundation.CFDictionaryRef) bool

CGContextDrawImageApplyingToneMapping.

It panics if CGContextDrawImageApplyingToneMapping is unavailable at run time; use TryCGContextDrawImageApplyingToneMapping to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextDrawImageApplyingToneMapping

func CGContextDrawLayerAtPoint added in v0.2.0

func CGContextDrawLayerAtPoint(context CGContextRef, point corefoundation.CGPoint, layer CGLayerRef)

CGContextDrawLayerAtPoint draws the contents of a CGLayer object at the specified point.

It panics if CGContextDrawLayerAtPoint is unavailable at run time; use TryCGContextDrawLayerAtPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextDrawLayerAtPoint

func CGContextDrawLayerInRect added in v0.2.0

func CGContextDrawLayerInRect(context CGContextRef, rect corefoundation.CGRect, layer CGLayerRef)

CGContextDrawLayerInRect draws the contents of a layer object into the specified rectangle.

It panics if CGContextDrawLayerInRect is unavailable at run time; use TryCGContextDrawLayerInRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextDrawLayerInRect

func CGContextDrawLinearGradient

func CGContextDrawLinearGradient(c CGContextRef, gradient CGGradientRef, startPoint corefoundation.CGPoint, endPoint corefoundation.CGPoint, options CGGradientDrawingOptions)

CGContextDrawLinearGradient paints a gradient fill that varies along the line defined by the provided starting and ending points.

It panics if CGContextDrawLinearGradient is unavailable at run time; use TryCGContextDrawLinearGradient to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/drawLinearGradient(_:start:end:options:)

func CGContextDrawPDFDocument deprecated

func CGContextDrawPDFDocument(c CGContextRef, rect corefoundation.CGRect, document CGPDFDocumentRef, page int32)

CGContextDrawPDFDocument.

It panics if CGContextDrawPDFDocument is unavailable at run time; use TryCGContextDrawPDFDocument to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextDrawPDFDocument

func CGContextDrawPDFPage

func CGContextDrawPDFPage(c CGContextRef, page CGPDFPageRef)

CGContextDrawPDFPage draws the content of a PDF page into the current graphics context.

It panics if CGContextDrawPDFPage is unavailable at run time; use TryCGContextDrawPDFPage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/drawPDFPage(_:)

func CGContextDrawPath

func CGContextDrawPath(c CGContextRef, mode CGPathDrawingMode)

CGContextDrawPath draws the current path using the provided drawing mode.

It panics if CGContextDrawPath is unavailable at run time; use TryCGContextDrawPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/drawPath(using:)

func CGContextDrawRadialGradient

func CGContextDrawRadialGradient(c CGContextRef, gradient CGGradientRef, startCenter corefoundation.CGPoint, startRadius float64, endCenter corefoundation.CGPoint, endRadius float64, options CGGradientDrawingOptions)

CGContextDrawRadialGradient paints a gradient fill that varies along the area defined by the provided starting and ending circles.

It panics if CGContextDrawRadialGradient is unavailable at run time; use TryCGContextDrawRadialGradient to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/drawRadialGradient(_:startCenter:startRadius:endCenter:endRadius:options:)

func CGContextDrawShading

func CGContextDrawShading(c CGContextRef, shading CGShadingRef)

CGContextDrawShading fills the clipping path of a context with the specified shading.

It panics if CGContextDrawShading is unavailable at run time; use TryCGContextDrawShading to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/drawShading(_:)

func CGContextDrawTiledImage

func CGContextDrawTiledImage(c CGContextRef, rect corefoundation.CGRect, image CGImageRef)

CGContextDrawTiledImage repeatedly draws an image, scaled to the provided rectangle, to fill the current clip region.

It panics if CGContextDrawTiledImage is unavailable at run time; use TryCGContextDrawTiledImage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextDrawTiledImage

func CGContextEOClip

func CGContextEOClip(c CGContextRef)

CGContextEOClip modifies the current clipping path, using the even-odd rule.

It panics if CGContextEOClip is unavailable at run time; use TryCGContextEOClip to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextEOClip

func CGContextEOFillPath

func CGContextEOFillPath(c CGContextRef)

CGContextEOFillPath paints the area within the current path, using the even-odd fill rule.

It panics if CGContextEOFillPath is unavailable at run time; use TryCGContextEOFillPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextEOFillPath

func CGContextEndPage

func CGContextEndPage(c CGContextRef)

CGContextEndPage ends the current page in a page-based graphics context.

It panics if CGContextEndPage is unavailable at run time; use TryCGContextEndPage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/endPage()

func CGContextEndTransparencyLayer

func CGContextEndTransparencyLayer(c CGContextRef)

CGContextEndTransparencyLayer ends a transparency layer.

It panics if CGContextEndTransparencyLayer is unavailable at run time; use TryCGContextEndTransparencyLayer to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/endTransparencyLayer()

func CGContextFillEllipseInRect

func CGContextFillEllipseInRect(c CGContextRef, rect corefoundation.CGRect)

CGContextFillEllipseInRect paints the area of the ellipse that fits inside the provided rectangle, using the fill color in the current graphics state.

It panics if CGContextFillEllipseInRect is unavailable at run time; use TryCGContextFillEllipseInRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/fillEllipse(in:)

func CGContextFillPath

func CGContextFillPath(c CGContextRef)

CGContextFillPath paints the area within the current path, using the nonzero winding number rule.

It panics if CGContextFillPath is unavailable at run time; use TryCGContextFillPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextFillPath

func CGContextFillRect

func CGContextFillRect(c CGContextRef, rect corefoundation.CGRect)

CGContextFillRect paints the area contained within the provided rectangle, using the fill color in the current graphics state.

It panics if CGContextFillRect is unavailable at run time; use TryCGContextFillRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/fill(_:)-7a0rk

func CGContextFillRects

func CGContextFillRects(c CGContextRef, rects *corefoundation.CGRect, count uintptr)

CGContextFillRects paints the areas contained within the provided rectangles, using the fill color in the current graphics state.

It panics if CGContextFillRects is unavailable at run time; use TryCGContextFillRects to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextFillRects

func CGContextFlush

func CGContextFlush(c CGContextRef)

CGContextFlush forces all pending drawing operations in a window context to be rendered immediately to the destination device.

It panics if CGContextFlush is unavailable at run time; use TryCGContextFlush to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/flush()

func CGContextGetCTM

CGContextGetCTM returns the current transformation matrix.

It panics if CGContextGetCTM is unavailable at run time; use TryCGContextGetCTM to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/ctm

func CGContextGetClipBoundingBox

func CGContextGetClipBoundingBox(c CGContextRef) corefoundation.CGRect

CGContextGetClipBoundingBox returns the bounding box of a clipping path.

It panics if CGContextGetClipBoundingBox is unavailable at run time; use TryCGContextGetClipBoundingBox to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/boundingBoxOfClipPath

func CGContextGetEDRTargetHeadroom

func CGContextGetEDRTargetHeadroom(c CGContextRef) float32

CGContextGetEDRTargetHeadroom.

It panics if CGContextGetEDRTargetHeadroom is unavailable at run time; use TryCGContextGetEDRTargetHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextGetEDRTargetHeadroom(_:)

func CGContextGetPathBoundingBox

func CGContextGetPathBoundingBox(c CGContextRef) corefoundation.CGRect

CGContextGetPathBoundingBox returns the smallest rectangle that contains the current path.

It panics if CGContextGetPathBoundingBox is unavailable at run time; use TryCGContextGetPathBoundingBox to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/boundingBoxOfPath

func CGContextGetPathCurrentPoint

func CGContextGetPathCurrentPoint(c CGContextRef) corefoundation.CGPoint

CGContextGetPathCurrentPoint returns the current point in a non-empty path.

It panics if CGContextGetPathCurrentPoint is unavailable at run time; use TryCGContextGetPathCurrentPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/currentPointOfPath

func CGContextGetTextMatrix

func CGContextGetTextMatrix(c CGContextRef) corefoundation.CGAffineTransform

CGContextGetTextMatrix returns the current text matrix.

It panics if CGContextGetTextMatrix is unavailable at run time; use TryCGContextGetTextMatrix to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/textMatrix

func CGContextGetTextPosition

func CGContextGetTextPosition(c CGContextRef) corefoundation.CGPoint

CGContextGetTextPosition.

It panics if CGContextGetTextPosition is unavailable at run time; use TryCGContextGetTextPosition to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextGetTextPosition

func CGContextGetTypeID

func CGContextGetTypeID() uint

CGContextGetTypeID returns the type identifier for a graphics context.

It panics if CGContextGetTypeID is unavailable at run time; use TryCGContextGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/typeID

func CGContextGetUserSpaceToDeviceSpaceTransform

func CGContextGetUserSpaceToDeviceSpaceTransform(c CGContextRef) corefoundation.CGAffineTransform

CGContextGetUserSpaceToDeviceSpaceTransform returns an affine transform that maps user space coordinates to device space coordinates.

It panics if CGContextGetUserSpaceToDeviceSpaceTransform is unavailable at run time; use TryCGContextGetUserSpaceToDeviceSpaceTransform to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/userSpaceToDeviceSpaceTransform

func CGContextIsPathEmpty

func CGContextIsPathEmpty(c CGContextRef) bool

CGContextIsPathEmpty indicates whether the current path contains any subpaths.

It panics if CGContextIsPathEmpty is unavailable at run time; use TryCGContextIsPathEmpty to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/isPathEmpty

func CGContextMoveToPoint

func CGContextMoveToPoint(c CGContextRef, x float64, y float64)

CGContextMoveToPoint begins a new subpath at the point you specify.

It panics if CGContextMoveToPoint is unavailable at run time; use TryCGContextMoveToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextMoveToPoint

func CGContextPathContainsPoint

func CGContextPathContainsPoint(c CGContextRef, point corefoundation.CGPoint, mode CGPathDrawingMode) bool

CGContextPathContainsPoint checks to see whether the specified point is contained in the current path.

It panics if CGContextPathContainsPoint is unavailable at run time; use TryCGContextPathContainsPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/pathContains(_:mode:)

func CGContextRelease

func CGContextRelease(c CGContextRef)

CGContextRelease decrements the retain count of a graphics context.

It panics if CGContextRelease is unavailable at run time; use TryCGContextRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextRelease

func CGContextReplacePathWithStrokedPath

func CGContextReplacePathWithStrokedPath(c CGContextRef)

CGContextReplacePathWithStrokedPath replaces the path in the graphics context with the stroked version of the path.

It panics if CGContextReplacePathWithStrokedPath is unavailable at run time; use TryCGContextReplacePathWithStrokedPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/replacePathWithStrokedPath()

func CGContextResetClip

func CGContextResetClip(c CGContextRef)

CGContextResetClip.

It panics if CGContextResetClip is unavailable at run time; use TryCGContextResetClip to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/resetClip()

func CGContextRestoreGState

func CGContextRestoreGState(c CGContextRef)

CGContextRestoreGState sets the current graphics state to the state most recently saved.

It panics if CGContextRestoreGState is unavailable at run time; use TryCGContextRestoreGState to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/restoreGState()

func CGContextRotateCTM

func CGContextRotateCTM(c CGContextRef, angle float64)

CGContextRotateCTM rotates the user coordinate system in a context.

It panics if CGContextRotateCTM is unavailable at run time; use TryCGContextRotateCTM to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/rotate(by:)

func CGContextSaveGState

func CGContextSaveGState(c CGContextRef)

CGContextSaveGState pushes a copy of the current graphics state onto the graphics state stack for the context.

It panics if CGContextSaveGState is unavailable at run time; use TryCGContextSaveGState to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/saveGState()

func CGContextScaleCTM

func CGContextScaleCTM(c CGContextRef, sx float64, sy float64)

CGContextScaleCTM changes the scale of the user coordinate system in a context.

It panics if CGContextScaleCTM is unavailable at run time; use TryCGContextScaleCTM to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/scaleBy(x:y:)

func CGContextSetAllowsAntialiasing

func CGContextSetAllowsAntialiasing(c CGContextRef, allowsAntialiasing bool)

CGContextSetAllowsAntialiasing sets whether or not to allow antialiasing for a graphics context.

It panics if CGContextSetAllowsAntialiasing is unavailable at run time; use TryCGContextSetAllowsAntialiasing to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setAllowsAntialiasing(_:)

func CGContextSetAllowsFontSmoothing

func CGContextSetAllowsFontSmoothing(c CGContextRef, allowsFontSmoothing bool)

CGContextSetAllowsFontSmoothing sets whether or not to allow font smoothing for a graphics context.

It panics if CGContextSetAllowsFontSmoothing is unavailable at run time; use TryCGContextSetAllowsFontSmoothing to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setAllowsFontSmoothing(_:)

func CGContextSetAllowsFontSubpixelPositioning

func CGContextSetAllowsFontSubpixelPositioning(c CGContextRef, allowsFontSubpixelPositioning bool)

CGContextSetAllowsFontSubpixelPositioning sets whether or not to allow subpixel positioning for a graphics context.

It panics if CGContextSetAllowsFontSubpixelPositioning is unavailable at run time; use TryCGContextSetAllowsFontSubpixelPositioning to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setAllowsFontSubpixelPositioning(_:)

func CGContextSetAllowsFontSubpixelQuantization

func CGContextSetAllowsFontSubpixelQuantization(c CGContextRef, allowsFontSubpixelQuantization bool)

CGContextSetAllowsFontSubpixelQuantization sets whether or not to allow subpixel quantization for a graphics context.

It panics if CGContextSetAllowsFontSubpixelQuantization is unavailable at run time; use TryCGContextSetAllowsFontSubpixelQuantization to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setAllowsFontSubpixelQuantization(_:)

func CGContextSetAlpha

func CGContextSetAlpha(c CGContextRef, alpha float64)

CGContextSetAlpha sets the opacity level for objects drawn in a graphics context.

It panics if CGContextSetAlpha is unavailable at run time; use TryCGContextSetAlpha to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setAlpha(_:)

func CGContextSetBlendMode added in v0.2.0

func CGContextSetBlendMode(c CGContextRef, mode CGBlendMode)

CGContextSetBlendMode sets how sample values are composited by a graphics context.

It panics if CGContextSetBlendMode is unavailable at run time; use TryCGContextSetBlendMode to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setBlendMode(_:)

func CGContextSetCMYKFillColor

func CGContextSetCMYKFillColor(c CGContextRef, cyan float64, magenta float64, yellow float64, black float64, alpha float64)

CGContextSetCMYKFillColor sets the current fill color to a value in the DeviceCMYK color space.

It panics if CGContextSetCMYKFillColor is unavailable at run time; use TryCGContextSetCMYKFillColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFillColor(cyan:magenta:yellow:black:alpha:)

func CGContextSetCMYKStrokeColor

func CGContextSetCMYKStrokeColor(c CGContextRef, cyan float64, magenta float64, yellow float64, black float64, alpha float64)

CGContextSetCMYKStrokeColor sets the current stroke color to a value in the DeviceCMYK color space.

It panics if CGContextSetCMYKStrokeColor is unavailable at run time; use TryCGContextSetCMYKStrokeColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setStrokeColor(cyan:magenta:yellow:black:alpha:)

func CGContextSetCharacterSpacing

func CGContextSetCharacterSpacing(c CGContextRef, spacing float64)

CGContextSetCharacterSpacing sets the current character spacing.

It panics if CGContextSetCharacterSpacing is unavailable at run time; use TryCGContextSetCharacterSpacing to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setCharacterSpacing(_:)

func CGContextSetContentToneMappingInfo

func CGContextSetContentToneMappingInfo(c CGContextRef, info CGContentToneMappingInfo)

CGContextSetContentToneMappingInfo.

It panics if CGContextSetContentToneMappingInfo is unavailable at run time; use TryCGContextSetContentToneMappingInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextSetContentToneMappingInfo

func CGContextSetEDRTargetHeadroom

func CGContextSetEDRTargetHeadroom(c CGContextRef, headroom float32) bool

CGContextSetEDRTargetHeadroom.

It panics if CGContextSetEDRTargetHeadroom is unavailable at run time; use TryCGContextSetEDRTargetHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setEDRTargetHeadroom(_:)

func CGContextSetFillColor

func CGContextSetFillColor(c CGContextRef, components *float64)

CGContextSetFillColor sets the current fill color.

It panics if CGContextSetFillColor is unavailable at run time; use TryCGContextSetFillColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFillColor(_:)-756dy

func CGContextSetFillColorSpace

func CGContextSetFillColorSpace(c CGContextRef, space CGColorSpaceRef)

CGContextSetFillColorSpace sets the fill color space in a graphics context.

It panics if CGContextSetFillColorSpace is unavailable at run time; use TryCGContextSetFillColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFillColorSpace(_:)

func CGContextSetFillColorWithColor

func CGContextSetFillColorWithColor(c CGContextRef, color CGColorRef)

CGContextSetFillColorWithColor sets the current fill color in a graphics context, using a CGColor.

It panics if CGContextSetFillColorWithColor is unavailable at run time; use TryCGContextSetFillColorWithColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFillColor(_:)-8lhn8

func CGContextSetFillPattern

func CGContextSetFillPattern(c CGContextRef, pattern CGPatternRef, components *float64)

CGContextSetFillPattern sets the fill pattern in the specified graphics context.

It panics if CGContextSetFillPattern is unavailable at run time; use TryCGContextSetFillPattern to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFillPattern(_:colorComponents:)

func CGContextSetFlatness

func CGContextSetFlatness(c CGContextRef, flatness float64)

CGContextSetFlatness sets the accuracy of curved paths in a graphics context.

It panics if CGContextSetFlatness is unavailable at run time; use TryCGContextSetFlatness to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFlatness(_:)

func CGContextSetFont

func CGContextSetFont(c CGContextRef, font CGFontRef)

CGContextSetFont sets the platform font in a graphics context.

It panics if CGContextSetFont is unavailable at run time; use TryCGContextSetFont to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFont(_:)

func CGContextSetFontSize

func CGContextSetFontSize(c CGContextRef, size float64)

CGContextSetFontSize sets the current font size.

It panics if CGContextSetFontSize is unavailable at run time; use TryCGContextSetFontSize to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFontSize(_:)

func CGContextSetGrayFillColor

func CGContextSetGrayFillColor(c CGContextRef, gray float64, alpha float64)

CGContextSetGrayFillColor sets the current fill color to a value in the DeviceGray color space.

It panics if CGContextSetGrayFillColor is unavailable at run time; use TryCGContextSetGrayFillColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFillColor(gray:alpha:)

func CGContextSetGrayStrokeColor

func CGContextSetGrayStrokeColor(c CGContextRef, gray float64, alpha float64)

CGContextSetGrayStrokeColor sets the current stroke color to a value in the DeviceGray color space.

It panics if CGContextSetGrayStrokeColor is unavailable at run time; use TryCGContextSetGrayStrokeColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setStrokeColor(gray:alpha:)

func CGContextSetInterpolationQuality

func CGContextSetInterpolationQuality(c CGContextRef, quality CGInterpolationQuality)

CGContextSetInterpolationQuality sets the level of interpolation quality for a graphics context.

It panics if CGContextSetInterpolationQuality is unavailable at run time; use TryCGContextSetInterpolationQuality to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextSetInterpolationQuality

func CGContextSetLineCap added in v0.2.0

func CGContextSetLineCap(c CGContextRef, cap_ CGLineCap)

CGContextSetLineCap sets the style for the endpoints of lines drawn in a graphics context.

It panics if CGContextSetLineCap is unavailable at run time; use TryCGContextSetLineCap to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setLineCap(_:)

func CGContextSetLineDash

func CGContextSetLineDash(c CGContextRef, phase float64, lengths *float64, count uintptr)

CGContextSetLineDash sets the pattern for dashed lines in a graphics context.

It panics if CGContextSetLineDash is unavailable at run time; use TryCGContextSetLineDash to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextSetLineDash

func CGContextSetLineJoin added in v0.2.0

func CGContextSetLineJoin(c CGContextRef, join CGLineJoin)

CGContextSetLineJoin sets the style for the joins of connected lines in a graphics context.

It panics if CGContextSetLineJoin is unavailable at run time; use TryCGContextSetLineJoin to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setLineJoin(_:)

func CGContextSetLineWidth

func CGContextSetLineWidth(c CGContextRef, width float64)

CGContextSetLineWidth sets the line width for a graphics context.

It panics if CGContextSetLineWidth is unavailable at run time; use TryCGContextSetLineWidth to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setLineWidth(_:)

func CGContextSetMiterLimit

func CGContextSetMiterLimit(c CGContextRef, limit float64)

CGContextSetMiterLimit sets the miter limit for the joins of connected lines in a graphics context.

It panics if CGContextSetMiterLimit is unavailable at run time; use TryCGContextSetMiterLimit to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setMiterLimit(_:)

func CGContextSetPatternPhase

func CGContextSetPatternPhase(c CGContextRef, phase corefoundation.CGSize)

CGContextSetPatternPhase sets the pattern phase of a context.

It panics if CGContextSetPatternPhase is unavailable at run time; use TryCGContextSetPatternPhase to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setPatternPhase(_:)

func CGContextSetRGBFillColor

func CGContextSetRGBFillColor(c CGContextRef, red float64, green float64, blue float64, alpha float64)

CGContextSetRGBFillColor sets the current fill color to a value in the DeviceRGB color space.

It panics if CGContextSetRGBFillColor is unavailable at run time; use TryCGContextSetRGBFillColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setFillColor(red:green:blue:alpha:)

func CGContextSetRGBStrokeColor

func CGContextSetRGBStrokeColor(c CGContextRef, red float64, green float64, blue float64, alpha float64)

CGContextSetRGBStrokeColor sets the current stroke color to a value in the DeviceRGB color space.

It panics if CGContextSetRGBStrokeColor is unavailable at run time; use TryCGContextSetRGBStrokeColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setStrokeColor(red:green:blue:alpha:)

func CGContextSetRenderingIntent

func CGContextSetRenderingIntent(c CGContextRef, intent CGColorRenderingIntent)

CGContextSetRenderingIntent sets the rendering intent in the current graphics state.

It panics if CGContextSetRenderingIntent is unavailable at run time; use TryCGContextSetRenderingIntent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setRenderingIntent(_:)

func CGContextSetShadow

func CGContextSetShadow(c CGContextRef, offset corefoundation.CGSize, blur float64)

CGContextSetShadow enables shadowing in a graphics context.

It panics if CGContextSetShadow is unavailable at run time; use TryCGContextSetShadow to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setShadow(offset:blur:)

func CGContextSetShadowWithColor

func CGContextSetShadowWithColor(c CGContextRef, offset corefoundation.CGSize, blur float64, color CGColorRef)

CGContextSetShadowWithColor enables shadowing with color a graphics context.

It panics if CGContextSetShadowWithColor is unavailable at run time; use TryCGContextSetShadowWithColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setShadow(offset:blur:color:)

func CGContextSetShouldAntialias

func CGContextSetShouldAntialias(c CGContextRef, shouldAntialias bool)

CGContextSetShouldAntialias sets antialiasing on or off for a graphics context.

It panics if CGContextSetShouldAntialias is unavailable at run time; use TryCGContextSetShouldAntialias to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setShouldAntialias(_:)

func CGContextSetShouldSmoothFonts

func CGContextSetShouldSmoothFonts(c CGContextRef, shouldSmoothFonts bool)

CGContextSetShouldSmoothFonts enables or disables font smoothing in a graphics context.

It panics if CGContextSetShouldSmoothFonts is unavailable at run time; use TryCGContextSetShouldSmoothFonts to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setShouldSmoothFonts(_:)

func CGContextSetShouldSubpixelPositionFonts

func CGContextSetShouldSubpixelPositionFonts(c CGContextRef, shouldSubpixelPositionFonts bool)

CGContextSetShouldSubpixelPositionFonts enables or disables subpixel positioning in a graphics context.

It panics if CGContextSetShouldSubpixelPositionFonts is unavailable at run time; use TryCGContextSetShouldSubpixelPositionFonts to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setShouldSubpixelPositionFonts(_:)

func CGContextSetShouldSubpixelQuantizeFonts

func CGContextSetShouldSubpixelQuantizeFonts(c CGContextRef, shouldSubpixelQuantizeFonts bool)

CGContextSetShouldSubpixelQuantizeFonts enables or disables subpixel quantization in a graphics context.

It panics if CGContextSetShouldSubpixelQuantizeFonts is unavailable at run time; use TryCGContextSetShouldSubpixelQuantizeFonts to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setShouldSubpixelQuantizeFonts(_:)

func CGContextSetStrokeColor

func CGContextSetStrokeColor(c CGContextRef, components *float64)

CGContextSetStrokeColor sets the current stroke color.

It panics if CGContextSetStrokeColor is unavailable at run time; use TryCGContextSetStrokeColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setStrokeColor(_:)-4pd8p

func CGContextSetStrokeColorSpace

func CGContextSetStrokeColorSpace(c CGContextRef, space CGColorSpaceRef)

CGContextSetStrokeColorSpace sets the stroke color space in a graphics context.

It panics if CGContextSetStrokeColorSpace is unavailable at run time; use TryCGContextSetStrokeColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setStrokeColorSpace(_:)

func CGContextSetStrokeColorWithColor

func CGContextSetStrokeColorWithColor(c CGContextRef, color CGColorRef)

CGContextSetStrokeColorWithColor sets the current stroke color in a context, using a CGColor.

It panics if CGContextSetStrokeColorWithColor is unavailable at run time; use TryCGContextSetStrokeColorWithColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setStrokeColor(_:)-1sskg

func CGContextSetStrokePattern

func CGContextSetStrokePattern(c CGContextRef, pattern CGPatternRef, components *float64)

CGContextSetStrokePattern sets the stroke pattern in the specified graphics context.

It panics if CGContextSetStrokePattern is unavailable at run time; use TryCGContextSetStrokePattern to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setStrokePattern(_:colorComponents:)

func CGContextSetTextDrawingMode

func CGContextSetTextDrawingMode(c CGContextRef, mode CGTextDrawingMode)

CGContextSetTextDrawingMode sets the current text drawing mode.

It panics if CGContextSetTextDrawingMode is unavailable at run time; use TryCGContextSetTextDrawingMode to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setTextDrawingMode(_:)

func CGContextSetTextMatrix

func CGContextSetTextMatrix(c CGContextRef, t corefoundation.CGAffineTransform)

CGContextSetTextMatrix sets the current text matrix.

It panics if CGContextSetTextMatrix is unavailable at run time; use TryCGContextSetTextMatrix to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextSetTextMatrix

func CGContextSetTextPosition

func CGContextSetTextPosition(c CGContextRef, x float64, y float64)

CGContextSetTextPosition sets the location at which text is drawn.

It panics if CGContextSetTextPosition is unavailable at run time; use TryCGContextSetTextPosition to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextSetTextPosition

func CGContextShowGlyphsAtPositions added in v0.2.0

func CGContextShowGlyphsAtPositions(c CGContextRef, glyphs *CGGlyph, Lpositions *corefoundation.CGPoint, count uintptr)

CGContextShowGlyphsAtPositions draws glyphs at the provided position.

It panics if CGContextShowGlyphsAtPositions is unavailable at run time; use TryCGContextShowGlyphsAtPositions to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextShowGlyphsAtPositions

func CGContextStrokeEllipseInRect

func CGContextStrokeEllipseInRect(c CGContextRef, rect corefoundation.CGRect)

CGContextStrokeEllipseInRect strokes an ellipse that fits inside the specified rectangle.

It panics if CGContextStrokeEllipseInRect is unavailable at run time; use TryCGContextStrokeEllipseInRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/strokeEllipse(in:)

func CGContextStrokeLineSegments

func CGContextStrokeLineSegments(c CGContextRef, points *corefoundation.CGPoint, count uintptr)

CGContextStrokeLineSegments strokes a sequence of line segments.

It panics if CGContextStrokeLineSegments is unavailable at run time; use TryCGContextStrokeLineSegments to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextStrokeLineSegments

func CGContextStrokePath

func CGContextStrokePath(c CGContextRef)

CGContextStrokePath paints a line along the current path.

It panics if CGContextStrokePath is unavailable at run time; use TryCGContextStrokePath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/strokePath()

func CGContextStrokeRect

func CGContextStrokeRect(c CGContextRef, rect corefoundation.CGRect)

CGContextStrokeRect paints a rectangular path.

It panics if CGContextStrokeRect is unavailable at run time; use TryCGContextStrokeRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/stroke(_:)

func CGContextStrokeRectWithWidth

func CGContextStrokeRectWithWidth(c CGContextRef, rect corefoundation.CGRect, width float64)

CGContextStrokeRectWithWidth paints a rectangular path, using the specified line width.

It panics if CGContextStrokeRectWithWidth is unavailable at run time; use TryCGContextStrokeRectWithWidth to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/stroke(_:width:)

func CGContextSynchronize

func CGContextSynchronize(c CGContextRef)

CGContextSynchronize marks a window context for update.

It panics if CGContextSynchronize is unavailable at run time; use TryCGContextSynchronize to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/synchronize()

func CGContextSynchronizeAttributes

func CGContextSynchronizeAttributes(c CGContextRef)

CGContextSynchronizeAttributes.

It panics if CGContextSynchronizeAttributes is unavailable at run time; use TryCGContextSynchronizeAttributes to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/synchronizeAttributes()

func CGContextTranslateCTM

func CGContextTranslateCTM(c CGContextRef, tx float64, ty float64)

CGContextTranslateCTM changes the origin of the user coordinate system in a context.

It panics if CGContextTranslateCTM is unavailable at run time; use TryCGContextTranslateCTM to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/translateBy(x:y:)

func CGConvertColorDataWithFormat

func CGConvertColorDataWithFormat(width uintptr, height uintptr, dst_data unsafe.Pointer, dst_format CGColorDataFormat, src_data unsafe.Pointer, src_format CGColorDataFormat, options corefoundation.CFDictionaryRef) bool

CGConvertColorDataWithFormat.

It panics if CGConvertColorDataWithFormat is unavailable at run time; use TryCGConvertColorDataWithFormat to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGConvertColorDataWithFormat(_:_:_:_:_:_:_:)

func CGDataConsumerGetTypeID

func CGDataConsumerGetTypeID() uint

CGDataConsumerGetTypeID returns the Core Foundation type identifier for Core Graphics data consumers.

It panics if CGDataConsumerGetTypeID is unavailable at run time; use TryCGDataConsumerGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumer/typeID

func CGDataConsumerRelease

func CGDataConsumerRelease(consumer CGDataConsumerRef)

CGDataConsumerRelease decrements the retain count of a data consumer.

It panics if CGDataConsumerRelease is unavailable at run time; use TryCGDataConsumerRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumerRelease

func CGDataProviderCopyData

func CGDataProviderCopyData(provider CGDataProviderRef) corefoundation.CFDataRef

CGDataProviderCopyData returns a copy of the provider’s data.

It panics if CGDataProviderCopyData is unavailable at run time; use TryCGDataProviderCopyData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/data

func CGDataProviderGetInfo

func CGDataProviderGetInfo(provider CGDataProviderRef) unsafe.Pointer

CGDataProviderGetInfo.

It panics if CGDataProviderGetInfo is unavailable at run time; use TryCGDataProviderGetInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/info

func CGDataProviderGetTypeID

func CGDataProviderGetTypeID() uint

CGDataProviderGetTypeID returns the Core Foundation type identifier for data providers.

It panics if CGDataProviderGetTypeID is unavailable at run time; use TryCGDataProviderGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/typeID

func CGDataProviderRelease

func CGDataProviderRelease(provider CGDataProviderRef)

CGDataProviderRelease decrements the retain count of a data provider.

It panics if CGDataProviderRelease is unavailable at run time; use TryCGDataProviderRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderRelease

func CGDirectDisplayCopyCurrentMetalDevice

func CGDirectDisplayCopyCurrentMetalDevice(display CGDirectDisplayID) objectivec.IObject

CGDirectDisplayCopyCurrentMetalDevice returns the GPU device instance that’s currently driving a display.

It panics if CGDirectDisplayCopyCurrentMetalDevice is unavailable at run time; use TryCGDirectDisplayCopyCurrentMetalDevice to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDirectDisplayCopyCurrentMetalDevice(_:)

func CGDisplayBounds

func CGDisplayBounds(display CGDirectDisplayID) corefoundation.CGRect

CGDisplayBounds returns the bounds of a display in the global display coordinate space.

It panics if CGDisplayBounds is unavailable at run time; use TryCGDisplayBounds to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayBounds(_:)

func CGDisplayCopyAllDisplayModes

func CGDisplayCopyAllDisplayModes(display CGDirectDisplayID, options corefoundation.CFDictionaryRef) corefoundation.CFArrayRef

CGDisplayCopyAllDisplayModes returns information about the currently available display modes.

It panics if CGDisplayCopyAllDisplayModes is unavailable at run time; use TryCGDisplayCopyAllDisplayModes to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayCopyAllDisplayModes(_:_:)

func CGDisplayGammaTableCapacity

func CGDisplayGammaTableCapacity(display CGDirectDisplayID) uint32

CGDisplayGammaTableCapacity returns the capacity, or number of entries, in the gamma table for a display.

It panics if CGDisplayGammaTableCapacity is unavailable at run time; use TryCGDisplayGammaTableCapacity to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayGammaTableCapacity(_:)

func CGDisplayIsActive added in v0.2.0

func CGDisplayIsActive(display CGDirectDisplayID) int32

CGDisplayIsActive returns a Boolean value indicating whether a display is active.

It panics if CGDisplayIsActive is unavailable at run time; use TryCGDisplayIsActive to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsActive(_:)

func CGDisplayIsAlwaysInMirrorSet added in v0.2.0

func CGDisplayIsAlwaysInMirrorSet(display CGDirectDisplayID) int32

CGDisplayIsAlwaysInMirrorSet returns a Boolean value indicating whether a display is always in a mirroring set.

It panics if CGDisplayIsAlwaysInMirrorSet is unavailable at run time; use TryCGDisplayIsAlwaysInMirrorSet to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsAlwaysInMirrorSet(_:)

func CGDisplayIsAsleep added in v0.2.0

func CGDisplayIsAsleep(display CGDirectDisplayID) int32

CGDisplayIsAsleep returns a Boolean value indicating whether a display is sleeping (and is therefore not drawable).

It panics if CGDisplayIsAsleep is unavailable at run time; use TryCGDisplayIsAsleep to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsAsleep(_:)

func CGDisplayIsBuiltin added in v0.2.0

func CGDisplayIsBuiltin(display CGDirectDisplayID) int32

CGDisplayIsBuiltin returns a Boolean value indicating whether a display is built-in, such as the internal display in portable systems.

It panics if CGDisplayIsBuiltin is unavailable at run time; use TryCGDisplayIsBuiltin to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsBuiltin(_:)

func CGDisplayIsInHWMirrorSet added in v0.2.0

func CGDisplayIsInHWMirrorSet(display CGDirectDisplayID) int32

CGDisplayIsInHWMirrorSet returns a Boolean value indicating whether a display is in a hardware mirroring set.

It panics if CGDisplayIsInHWMirrorSet is unavailable at run time; use TryCGDisplayIsInHWMirrorSet to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsInHWMirrorSet(_:)

func CGDisplayIsInMirrorSet added in v0.2.0

func CGDisplayIsInMirrorSet(display CGDirectDisplayID) int32

CGDisplayIsInMirrorSet returns a Boolean value indicating whether a display is in a mirroring set.

It panics if CGDisplayIsInMirrorSet is unavailable at run time; use TryCGDisplayIsInMirrorSet to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsInMirrorSet(_:)

func CGDisplayIsMain added in v0.2.0

func CGDisplayIsMain(display CGDirectDisplayID) int32

CGDisplayIsMain returns a Boolean value indicating whether a display is the main display.

It panics if CGDisplayIsMain is unavailable at run time; use TryCGDisplayIsMain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsMain(_:)

func CGDisplayIsOnline added in v0.2.0

func CGDisplayIsOnline(display CGDirectDisplayID) int32

CGDisplayIsOnline returns a Boolean value indicating whether a display is connected or online.

It panics if CGDisplayIsOnline is unavailable at run time; use TryCGDisplayIsOnline to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsOnline(_:)

func CGDisplayIsStereo added in v0.2.0

func CGDisplayIsStereo(display CGDirectDisplayID) int32

CGDisplayIsStereo returns a Boolean value indicating whether a display is running in a stereo graphics mode.

It panics if CGDisplayIsStereo is unavailable at run time; use TryCGDisplayIsStereo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIsStereo(_:)

func CGDisplayModeCopyPixelEncoding deprecated

func CGDisplayModeCopyPixelEncoding(mode CGDisplayModeRef) corefoundation.CFStringRef

CGDisplayModeCopyPixelEncoding returns the pixel encoding of the specified display mode.

It panics if CGDisplayModeCopyPixelEncoding is unavailable at run time; use TryCGDisplayModeCopyPixelEncoding to get an error instead.

Deprecated: Deprecated since macOS 10.11. No longer supported

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/pixelEncoding

func CGDisplayModeGetHeight

func CGDisplayModeGetHeight(mode CGDisplayModeRef) uintptr

CGDisplayModeGetHeight returns the height of the specified display mode.

It panics if CGDisplayModeGetHeight is unavailable at run time; use TryCGDisplayModeGetHeight to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/height

func CGDisplayModeGetIODisplayModeID

func CGDisplayModeGetIODisplayModeID(mode CGDisplayModeRef) int32

CGDisplayModeGetIODisplayModeID returns the I/O Kit display mode ID of the specified display mode.

It panics if CGDisplayModeGetIODisplayModeID is unavailable at run time; use TryCGDisplayModeGetIODisplayModeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/ioDisplayModeID

func CGDisplayModeGetIOFlags

func CGDisplayModeGetIOFlags(mode CGDisplayModeRef) uint32

CGDisplayModeGetIOFlags returns the I/O Kit flags of the specified display mode.

It panics if CGDisplayModeGetIOFlags is unavailable at run time; use TryCGDisplayModeGetIOFlags to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/ioFlags

func CGDisplayModeGetPixelHeight

func CGDisplayModeGetPixelHeight(mode CGDisplayModeRef) uintptr

CGDisplayModeGetPixelHeight.

It panics if CGDisplayModeGetPixelHeight is unavailable at run time; use TryCGDisplayModeGetPixelHeight to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/pixelHeight

func CGDisplayModeGetPixelWidth

func CGDisplayModeGetPixelWidth(mode CGDisplayModeRef) uintptr

CGDisplayModeGetPixelWidth.

It panics if CGDisplayModeGetPixelWidth is unavailable at run time; use TryCGDisplayModeGetPixelWidth to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/pixelWidth

func CGDisplayModeGetRefreshRate

func CGDisplayModeGetRefreshRate(mode CGDisplayModeRef) float64

CGDisplayModeGetRefreshRate returns the refresh rate of the specified display mode.

It panics if CGDisplayModeGetRefreshRate is unavailable at run time; use TryCGDisplayModeGetRefreshRate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/refreshRate

func CGDisplayModeGetTypeID

func CGDisplayModeGetTypeID() uint

CGDisplayModeGetTypeID returns the type identifier of Quartz display modes.

It panics if CGDisplayModeGetTypeID is unavailable at run time; use TryCGDisplayModeGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/typeID

func CGDisplayModeGetWidth

func CGDisplayModeGetWidth(mode CGDisplayModeRef) uintptr

CGDisplayModeGetWidth returns the width of the specified display mode.

It panics if CGDisplayModeGetWidth is unavailable at run time; use TryCGDisplayModeGetWidth to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/width

func CGDisplayModeIsUsableForDesktopGUI

func CGDisplayModeIsUsableForDesktopGUI(mode CGDisplayModeRef) bool

CGDisplayModeIsUsableForDesktopGUI returns a Boolean value indicating whether the specified display mode is usable for a desktop graphical user interface.

It panics if CGDisplayModeIsUsableForDesktopGUI is unavailable at run time; use TryCGDisplayModeIsUsableForDesktopGUI to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode/isUsableForDesktopGUI()

func CGDisplayModeRelease

func CGDisplayModeRelease(mode CGDisplayModeRef)

CGDisplayModeRelease releases a Core Graphics display mode.

It panics if CGDisplayModeRelease is unavailable at run time; use TryCGDisplayModeRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayModeRelease

func CGDisplayModelNumber

func CGDisplayModelNumber(display CGDirectDisplayID) uint32

CGDisplayModelNumber returns the model number of a display monitor.

It panics if CGDisplayModelNumber is unavailable at run time; use TryCGDisplayModelNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayModelNumber(_:)

func CGDisplayPixelsHigh

func CGDisplayPixelsHigh(display CGDirectDisplayID) uintptr

CGDisplayPixelsHigh returns the display height in pixel units.

It panics if CGDisplayPixelsHigh is unavailable at run time; use TryCGDisplayPixelsHigh to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayPixelsHigh(_:)

func CGDisplayPixelsWide

func CGDisplayPixelsWide(display CGDirectDisplayID) uintptr

CGDisplayPixelsWide returns the display width in pixel units.

It panics if CGDisplayPixelsWide is unavailable at run time; use TryCGDisplayPixelsWide to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayPixelsWide(_:)

func CGDisplayRestoreColorSyncSettings

func CGDisplayRestoreColorSyncSettings()

CGDisplayRestoreColorSyncSettings restores the gamma tables to the values in the user’s ColorSync display profile.

It panics if CGDisplayRestoreColorSyncSettings is unavailable at run time; use TryCGDisplayRestoreColorSyncSettings to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayRestoreColorSyncSettings()

func CGDisplayRotation

func CGDisplayRotation(display CGDirectDisplayID) float64

CGDisplayRotation returns the rotation angle of a display in degrees.

It panics if CGDisplayRotation is unavailable at run time; use TryCGDisplayRotation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayRotation(_:)

func CGDisplayScreenSize

func CGDisplayScreenSize(display CGDirectDisplayID) corefoundation.CGSize

CGDisplayScreenSize returns the width and height of a display in millimeters.

It panics if CGDisplayScreenSize is unavailable at run time; use TryCGDisplayScreenSize to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayScreenSize(_:)

func CGDisplaySerialNumber

func CGDisplaySerialNumber(display CGDirectDisplayID) uint32

CGDisplaySerialNumber returns the serial number of a display monitor.

It panics if CGDisplaySerialNumber is unavailable at run time; use TryCGDisplaySerialNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplaySerialNumber(_:)

func CGDisplayStreamGetRunLoopSource deprecated added in v0.5.1

func CGDisplayStreamGetRunLoopSource(displayStream CGDisplayStreamRef) corefoundation.CFRunLoopSourceRef

CGDisplayStreamGetRunLoopSource gets the run loop source for a display stream.

It panics if CGDisplayStreamGetRunLoopSource is unavailable at run time; use TryCGDisplayStreamGetRunLoopSource to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/runLoopSource

func CGDisplayStreamGetTypeID deprecated added in v0.5.1

func CGDisplayStreamGetTypeID() uint

CGDisplayStreamGetTypeID returns the type identifier of a Quartz display stream.

It panics if CGDisplayStreamGetTypeID is unavailable at run time; use TryCGDisplayStreamGetTypeID to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/typeID

func CGDisplayStreamUpdateGetDropCount deprecated added in v0.5.1

func CGDisplayStreamUpdateGetDropCount(updateRef CGDisplayStreamUpdateRef) uintptr

CGDisplayStreamUpdateGetDropCount returns the number of frames that have been dropped since the last call to your update handler.

It panics if CGDisplayStreamUpdateGetDropCount is unavailable at run time; use TryCGDisplayStreamUpdateGetDropCount to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamUpdate/dropCount

func CGDisplayStreamUpdateGetMovedRectsDelta deprecated added in v0.5.1

func CGDisplayStreamUpdateGetMovedRectsDelta(updateRef CGDisplayStreamUpdateRef, dx *float64, dy *float64)

CGDisplayStreamUpdateGetMovedRectsDelta return the movement delta values for a single update.

It panics if CGDisplayStreamUpdateGetMovedRectsDelta is unavailable at run time; use TryCGDisplayStreamUpdateGetMovedRectsDelta to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamUpdate/getMovedRectsDelta(dx:dy:)

func CGDisplayStreamUpdateGetRects deprecated added in v0.5.1

func CGDisplayStreamUpdateGetRects(updateRef CGDisplayStreamUpdateRef, rectType CGDisplayStreamUpdateRectType, rectCount *uintptr) *corefoundation.CGRect

CGDisplayStreamUpdateGetRects returns an array of rectangles that describe where the frame has changed since the previous frame.

It panics if CGDisplayStreamUpdateGetRects is unavailable at run time; use TryCGDisplayStreamUpdateGetRects to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamUpdate/getRects(_:rectCount:)

func CGDisplayStreamUpdateGetTypeID deprecated added in v0.5.1

func CGDisplayStreamUpdateGetTypeID() uint

CGDisplayStreamUpdateGetTypeID returns the type identifier of a Quartz display stream update.

It panics if CGDisplayStreamUpdateGetTypeID is unavailable at run time; use TryCGDisplayStreamUpdateGetTypeID to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamUpdate/typeID

func CGDisplayUnitNumber

func CGDisplayUnitNumber(display CGDirectDisplayID) uint32

CGDisplayUnitNumber returns the logical unit number of a display.

It panics if CGDisplayUnitNumber is unavailable at run time; use TryCGDisplayUnitNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayUnitNumber(_:)

func CGDisplayUsesOpenGLAcceleration added in v0.2.0

func CGDisplayUsesOpenGLAcceleration(display CGDirectDisplayID) int32

CGDisplayUsesOpenGLAcceleration returns a Boolean value indicating whether Quartz is using OpenGL-based window acceleration (Quartz Extreme) to render in a display.

It panics if CGDisplayUsesOpenGLAcceleration is unavailable at run time; use TryCGDisplayUsesOpenGLAcceleration to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayUsesOpenGLAcceleration(_:)

func CGDisplayVendorNumber

func CGDisplayVendorNumber(display CGDirectDisplayID) uint32

CGDisplayVendorNumber returns the vendor number of the specified display’s monitor.

It panics if CGDisplayVendorNumber is unavailable at run time; use TryCGDisplayVendorNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayVendorNumber(_:)

func CGEXRToneMappingGammaGetDefaultOptions

func CGEXRToneMappingGammaGetDefaultOptions() corefoundation.CFDictionaryRef

CGEXRToneMappingGammaGetDefaultOptions.

It panics if CGEXRToneMappingGammaGetDefaultOptions is unavailable at run time; use TryCGEXRToneMappingGammaGetDefaultOptions to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEXRToneMappingGammaGetDefaultOptions

func CGErrorSetCallback

func CGErrorSetCallback(callback CGErrorCallback)

CGErrorSetCallback.

It panics if CGErrorSetCallback is unavailable at run time; use TryCGErrorSetCallback to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGErrorSetCallback(_:)

func CGEventCreateData

func CGEventCreateData(allocator corefoundation.CFAllocatorRef, event CGEventRef) corefoundation.CFDataRef

CGEventCreateData returns a flattened data representation of a Quartz event.

It panics if CGEventCreateData is unavailable at run time; use TryCGEventCreateData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventCreateData

func CGEventGetDoubleValueField

func CGEventGetDoubleValueField(event CGEventRef, field CGEventField) float64

CGEventGetDoubleValueField returns the floating-point value of a field in a Quartz event.

It panics if CGEventGetDoubleValueField is unavailable at run time; use TryCGEventGetDoubleValueField to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/getDoubleValueField(_:)

func CGEventGetIntegerValueField

func CGEventGetIntegerValueField(event CGEventRef, field CGEventField) int64

CGEventGetIntegerValueField returns the integer value of a field in a Quartz event.

It panics if CGEventGetIntegerValueField is unavailable at run time; use TryCGEventGetIntegerValueField to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/getIntegerValueField(_:)

func CGEventGetLocation

func CGEventGetLocation(event CGEventRef) corefoundation.CGPoint

CGEventGetLocation returns the location of a Quartz mouse event.

It panics if CGEventGetLocation is unavailable at run time; use TryCGEventGetLocation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/location

func CGEventGetTypeID

func CGEventGetTypeID() uint

CGEventGetTypeID returns the type identifier for the opaque type CGEventRef.

It panics if CGEventGetTypeID is unavailable at run time; use TryCGEventGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/typeID

func CGEventGetUnflippedLocation

func CGEventGetUnflippedLocation(event CGEventRef) corefoundation.CGPoint

CGEventGetUnflippedLocation returns the location of a Quartz mouse event.

It panics if CGEventGetUnflippedLocation is unavailable at run time; use TryCGEventGetUnflippedLocation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/unflippedLocation

func CGEventKeyboardGetUnicodeString

func CGEventKeyboardGetUnicodeString(event CGEventRef, maxStringLength uint, actualStringLength *uint, unicodeString *uint16)

CGEventKeyboardGetUnicodeString returns the Unicode string associated with a Quartz keyboard event.

It panics if CGEventKeyboardGetUnicodeString is unavailable at run time; use TryCGEventKeyboardGetUnicodeString to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/keyboardGetUnicodeString(maxStringLength:actualStringLength:unicodeString:)

func CGEventKeyboardSetUnicodeString

func CGEventKeyboardSetUnicodeString(event CGEventRef, stringLength uint, unicodeString *uint16)

CGEventKeyboardSetUnicodeString sets the Unicode string associated with a Quartz keyboard event.

It panics if CGEventKeyboardSetUnicodeString is unavailable at run time; use TryCGEventKeyboardSetUnicodeString to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/keyboardSetUnicodeString(stringLength:unicodeString:)

func CGEventPost

func CGEventPost(tap CGEventTapLocation, event CGEventRef)

CGEventPost posts a Quartz event into the event stream at a specified location.

It panics if CGEventPost is unavailable at run time; use TryCGEventPost to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/post(tap:)

func CGEventPostToPSN

func CGEventPostToPSN(processSerialNumber unsafe.Pointer, event CGEventRef)

CGEventPostToPSN posts a Quartz event into the event stream for a specific application.

It panics if CGEventPostToPSN is unavailable at run time; use TryCGEventPostToPSN to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/postToPSN(processSerialNumber:)

func CGEventPostToPid

func CGEventPostToPid(pid int32, event CGEventRef)

CGEventPostToPid.

It panics if CGEventPostToPid is unavailable at run time; use TryCGEventPostToPid to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/postToPid(_:)

func CGEventSetDoubleValueField

func CGEventSetDoubleValueField(event CGEventRef, field CGEventField, value float64)

CGEventSetDoubleValueField sets the floating-point value of a field in a Quartz event.

It panics if CGEventSetDoubleValueField is unavailable at run time; use TryCGEventSetDoubleValueField to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/setDoubleValueField(_:value:)

func CGEventSetFlags

func CGEventSetFlags(event CGEventRef, flags CGEventFlags)

CGEventSetFlags sets the event flags of a Quartz event.

It panics if CGEventSetFlags is unavailable at run time; use TryCGEventSetFlags to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSetFlags

func CGEventSetIntegerValueField

func CGEventSetIntegerValueField(event CGEventRef, field CGEventField, value int64)

CGEventSetIntegerValueField sets the integer value of a field in a Quartz event.

It panics if CGEventSetIntegerValueField is unavailable at run time; use TryCGEventSetIntegerValueField to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/setIntegerValueField(_:value:)

func CGEventSetLocation

func CGEventSetLocation(event CGEventRef, location corefoundation.CGPoint)

CGEventSetLocation sets the location of a Quartz mouse event.

It panics if CGEventSetLocation is unavailable at run time; use TryCGEventSetLocation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSetLocation

func CGEventSetSource

func CGEventSetSource(event CGEventRef, source CGEventSourceRef)

CGEventSetSource sets the event source of a Quartz event.

It panics if CGEventSetSource is unavailable at run time; use TryCGEventSetSource to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/setSource(_:)

func CGEventSetTimestamp

func CGEventSetTimestamp(event CGEventRef, timestamp CGEventTimestamp)

CGEventSetTimestamp sets the timestamp of a Quartz event.

It panics if CGEventSetTimestamp is unavailable at run time; use TryCGEventSetTimestamp to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSetTimestamp

func CGEventSetType

func CGEventSetType(event CGEventRef, type_ CGEventType)

CGEventSetType sets the event type of a Quartz event (left mouse down, for example).

It panics if CGEventSetType is unavailable at run time; use TryCGEventSetType to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSetType

func CGEventSourceButtonState

func CGEventSourceButtonState(stateID CGEventSourceStateID, button CGMouseButton) bool

CGEventSourceButtonState returns a Boolean value indicating the current button state of a Quartz event source.

It panics if CGEventSourceButtonState is unavailable at run time; use TryCGEventSourceButtonState to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/buttonState(_:button:)

func CGEventSourceCounterForEventType

func CGEventSourceCounterForEventType(stateID CGEventSourceStateID, eventType CGEventType) uint32

CGEventSourceCounterForEventType returns a count of events of a given type seen since the window server started.

It panics if CGEventSourceCounterForEventType is unavailable at run time; use TryCGEventSourceCounterForEventType to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/counterForEventType(_:eventType:)

func CGEventSourceGetLocalEventsSuppressionInterval

func CGEventSourceGetLocalEventsSuppressionInterval(source CGEventSourceRef) corefoundation.CFTimeInterval

CGEventSourceGetLocalEventsSuppressionInterval returns the interval that local hardware events may be suppressed following the posting of a Quartz event.

It panics if CGEventSourceGetLocalEventsSuppressionInterval is unavailable at run time; use TryCGEventSourceGetLocalEventsSuppressionInterval to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/localEventsSuppressionInterval

func CGEventSourceGetPixelsPerLine

func CGEventSourceGetPixelsPerLine(source CGEventSourceRef) float64

CGEventSourceGetPixelsPerLine gets the scale of pixels per line in a scrolling event source.

It panics if CGEventSourceGetPixelsPerLine is unavailable at run time; use TryCGEventSourceGetPixelsPerLine to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/pixelsPerLine

func CGEventSourceGetTypeID

func CGEventSourceGetTypeID() uint

CGEventSourceGetTypeID returns the type identifier for the opaque type CGEventSourceRef.

It panics if CGEventSourceGetTypeID is unavailable at run time; use TryCGEventSourceGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/typeID

func CGEventSourceGetUserData

func CGEventSourceGetUserData(source CGEventSourceRef) int64

CGEventSourceGetUserData returns the 64-bit user-specified data for a Quartz event source.

It panics if CGEventSourceGetUserData is unavailable at run time; use TryCGEventSourceGetUserData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/userData

func CGEventSourceKeyState

func CGEventSourceKeyState(stateID CGEventSourceStateID, key CGKeyCode) bool

CGEventSourceKeyState returns a Boolean value indicating the current keyboard state of a Quartz event source.

It panics if CGEventSourceKeyState is unavailable at run time; use TryCGEventSourceKeyState to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/keyState(_:key:)

func CGEventSourceSecondsSinceLastEventType

func CGEventSourceSecondsSinceLastEventType(stateID CGEventSourceStateID, eventType CGEventType) corefoundation.CFTimeInterval

CGEventSourceSecondsSinceLastEventType returns the elapsed time since the last event for a Quartz event source.

It panics if CGEventSourceSecondsSinceLastEventType is unavailable at run time; use TryCGEventSourceSecondsSinceLastEventType to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/secondsSinceLastEventType(_:eventType:)

func CGEventSourceSetKeyboardType

func CGEventSourceSetKeyboardType(source CGEventSourceRef, keyboardType CGEventSourceKeyboardType)

CGEventSourceSetKeyboardType sets the keyboard type to be used with a Quartz event source.

It panics if CGEventSourceSetKeyboardType is unavailable at run time; use TryCGEventSourceSetKeyboardType to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSourceSetKeyboardType

func CGEventSourceSetLocalEventsFilterDuringSuppressionState

func CGEventSourceSetLocalEventsFilterDuringSuppressionState(source CGEventSourceRef, filter CGEventFilterMask, state CGEventSuppressionState)

CGEventSourceSetLocalEventsFilterDuringSuppressionState sets the mask that indicates which classes of local hardware events are enabled during event suppression.

It panics if CGEventSourceSetLocalEventsFilterDuringSuppressionState is unavailable at run time; use TryCGEventSourceSetLocalEventsFilterDuringSuppressionState to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/setLocalEventsFilterDuringSuppressionState(_:state:)

func CGEventSourceSetLocalEventsSuppressionInterval

func CGEventSourceSetLocalEventsSuppressionInterval(source CGEventSourceRef, seconds corefoundation.CFTimeInterval)

CGEventSourceSetLocalEventsSuppressionInterval sets the interval that local hardware events may be suppressed following the posting of a Quartz event.

It panics if CGEventSourceSetLocalEventsSuppressionInterval is unavailable at run time; use TryCGEventSourceSetLocalEventsSuppressionInterval to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSourceSetLocalEventsSuppressionInterval

func CGEventSourceSetPixelsPerLine

func CGEventSourceSetPixelsPerLine(source CGEventSourceRef, pixelsPerLine float64)

CGEventSourceSetPixelsPerLine sets the scale of pixels per line in a scrolling event source.

It panics if CGEventSourceSetPixelsPerLine is unavailable at run time; use TryCGEventSourceSetPixelsPerLine to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSourceSetPixelsPerLine

func CGEventSourceSetUserData

func CGEventSourceSetUserData(source CGEventSourceRef, userData int64)

CGEventSourceSetUserData sets the 64-bit user-specified data for a Quartz event source.

It panics if CGEventSourceSetUserData is unavailable at run time; use TryCGEventSourceSetUserData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSourceSetUserData

func CGEventTapCreate

func CGEventTapCreate(tap CGEventTapLocation, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest CGEventMask, callback CGEventTapCallBack, userInfo unsafe.Pointer) corefoundation.CFMachPort

CGEventTapCreate creates an event tap.

It panics if CGEventTapCreate is unavailable at run time; use TryCGEventTapCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/tapCreate(tap:place:options:eventsOfInterest:callback:userInfo:)

func CGEventTapCreateForPSN

func CGEventTapCreateForPSN(processSerialNumber unsafe.Pointer, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest CGEventMask, callback CGEventTapCallBack, userInfo unsafe.Pointer) corefoundation.CFMachPort

CGEventTapCreateForPSN creates an event tap for a specified process.

It panics if CGEventTapCreateForPSN is unavailable at run time; use TryCGEventTapCreateForPSN to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/tapCreateForPSN(processSerialNumber:place:options:eventsOfInterest:callback:userInfo:)

func CGEventTapCreateForPid

func CGEventTapCreateForPid(pid int32, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest CGEventMask, callback CGEventTapCallBack, userInfo unsafe.Pointer) corefoundation.CFMachPort

CGEventTapCreateForPid.

It panics if CGEventTapCreateForPid is unavailable at run time; use TryCGEventTapCreateForPid to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/tapCreateForPid(pid:place:options:eventsOfInterest:callback:userInfo:)

func CGEventTapEnable

func CGEventTapEnable(tap corefoundation.CFMachPortRef, enable bool)

CGEventTapEnable enables or disables an event tap.

It panics if CGEventTapEnable is unavailable at run time; use TryCGEventTapEnable to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/tapEnable(tap:enable:)

func CGEventTapIsEnabled

func CGEventTapIsEnabled(tap corefoundation.CFMachPortRef) bool

CGEventTapIsEnabled returns a Boolean value indicating whether an event tap is enabled.

It panics if CGEventTapIsEnabled is unavailable at run time; use TryCGEventTapIsEnabled to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/tapIsEnabled(tap:)

func CGEventTapPostEvent

func CGEventTapPostEvent(proxy CGEventTapProxy, event CGEventRef)

CGEventTapPostEvent posts a Quartz event from an event tap into the event stream.

It panics if CGEventTapPostEvent is unavailable at run time; use TryCGEventTapPostEvent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/tapPostEvent(_:)

func CGFontCanCreatePostScriptSubset

func CGFontCanCreatePostScriptSubset(font CGFontRef, format CGFontPostScriptFormat) bool

CGFontCanCreatePostScriptSubset determines whether Core Graphics can create a subset of the font in PostScript format.

It panics if CGFontCanCreatePostScriptSubset is unavailable at run time; use TryCGFontCanCreatePostScriptSubset to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/canCreatePostScriptSubset(_:)

func CGFontCopyFullName

func CGFontCopyFullName(font CGFontRef) corefoundation.CFStringRef

CGFontCopyFullName returns the full name associated with a font object.

It panics if CGFontCopyFullName is unavailable at run time; use TryCGFontCopyFullName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/fullName

func CGFontCopyGlyphNameForGlyph added in v0.2.0

func CGFontCopyGlyphNameForGlyph(font CGFontRef, glyph CGGlyph) corefoundation.CFStringRef

CGFontCopyGlyphNameForGlyph returns the glyph name of the specified glyph in the specified font.

It panics if CGFontCopyGlyphNameForGlyph is unavailable at run time; use TryCGFontCopyGlyphNameForGlyph to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/name(for:)

func CGFontCopyPostScriptName

func CGFontCopyPostScriptName(font CGFontRef) corefoundation.CFStringRef

CGFontCopyPostScriptName obtains the PostScript name of a font.

It panics if CGFontCopyPostScriptName is unavailable at run time; use TryCGFontCopyPostScriptName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/postScriptName

func CGFontCopyTableForTag

func CGFontCopyTableForTag(font CGFontRef, tag uint32) corefoundation.CFDataRef

CGFontCopyTableForTag returns the font table that corresponds to the provided tag.

It panics if CGFontCopyTableForTag is unavailable at run time; use TryCGFontCopyTableForTag to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/table(for:)

func CGFontCopyTableTags

func CGFontCopyTableTags(font CGFontRef) corefoundation.CFArrayRef

CGFontCopyTableTags returns an array of tags that correspond to the font tables for a font.

It panics if CGFontCopyTableTags is unavailable at run time; use TryCGFontCopyTableTags to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/tableTags

func CGFontCopyVariationAxes

func CGFontCopyVariationAxes(font CGFontRef) corefoundation.CFArrayRef

CGFontCopyVariationAxes returns an array of the variation axis dictionaries for a font.

It panics if CGFontCopyVariationAxes is unavailable at run time; use TryCGFontCopyVariationAxes to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/variationAxes

func CGFontCopyVariations

func CGFontCopyVariations(font CGFontRef) corefoundation.CFDictionaryRef

CGFontCopyVariations returns the variation specification dictionary for a font.

It panics if CGFontCopyVariations is unavailable at run time; use TryCGFontCopyVariations to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/variations

func CGFontCreatePostScriptEncoding added in v0.2.0

func CGFontCreatePostScriptEncoding(font CGFontRef, encoding CGGlyph) corefoundation.CFDataRef

CGFontCreatePostScriptEncoding creates a PostScript encoding of a font.

It panics if CGFontCreatePostScriptEncoding is unavailable at run time; use TryCGFontCreatePostScriptEncoding to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/createPostScriptEncoding(encoding:)

func CGFontCreatePostScriptSubset added in v0.2.0

func CGFontCreatePostScriptSubset(font CGFontRef, subsetName corefoundation.CFStringRef, format CGFontPostScriptFormat, glyphs *CGGlyph, count uintptr, encoding CGGlyph) corefoundation.CFDataRef

CGFontCreatePostScriptSubset creates a subset of the font in the specified PostScript format.

It panics if CGFontCreatePostScriptSubset is unavailable at run time; use TryCGFontCreatePostScriptSubset to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/createPostScriptSubset(subsetName:format:glyphs:count:encoding:)

func CGFontGetAscent

func CGFontGetAscent(font CGFontRef) int32

CGFontGetAscent returns the ascent of a font.

It panics if CGFontGetAscent is unavailable at run time; use TryCGFontGetAscent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/ascent

func CGFontGetCapHeight

func CGFontGetCapHeight(font CGFontRef) int32

CGFontGetCapHeight returns the cap height of a font.

It panics if CGFontGetCapHeight is unavailable at run time; use TryCGFontGetCapHeight to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/capHeight

func CGFontGetDescent

func CGFontGetDescent(font CGFontRef) int32

CGFontGetDescent returns the descent of a font.

It panics if CGFontGetDescent is unavailable at run time; use TryCGFontGetDescent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/descent

func CGFontGetFontBBox

func CGFontGetFontBBox(font CGFontRef) corefoundation.CGRect

CGFontGetFontBBox returns the bounding box of a font.

It panics if CGFontGetFontBBox is unavailable at run time; use TryCGFontGetFontBBox to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/fontBBox

func CGFontGetGlyphAdvances added in v0.2.0

func CGFontGetGlyphAdvances(font CGFontRef, glyphs *CGGlyph, count uintptr, advances *int32) bool

CGFontGetGlyphAdvances gets the advance width of each glyph in the provided array.

It panics if CGFontGetGlyphAdvances is unavailable at run time; use TryCGFontGetGlyphAdvances to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/getGlyphAdvances(glyphs:count:advances:)

func CGFontGetGlyphBBoxes added in v0.2.0

func CGFontGetGlyphBBoxes(font CGFontRef, glyphs *CGGlyph, count uintptr, bboxes *corefoundation.CGRect) bool

CGFontGetGlyphBBoxes get the bounding box of each glyph in an array.

It panics if CGFontGetGlyphBBoxes is unavailable at run time; use TryCGFontGetGlyphBBoxes to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/getGlyphBBoxes(glyphs:count:bboxes:)

func CGFontGetItalicAngle

func CGFontGetItalicAngle(font CGFontRef) float64

CGFontGetItalicAngle returns the italic angle of a font.

It panics if CGFontGetItalicAngle is unavailable at run time; use TryCGFontGetItalicAngle to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/italicAngle

func CGFontGetLeading

func CGFontGetLeading(font CGFontRef) int32

CGFontGetLeading returns the leading of a font.

It panics if CGFontGetLeading is unavailable at run time; use TryCGFontGetLeading to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/leading

func CGFontGetNumberOfGlyphs

func CGFontGetNumberOfGlyphs(font CGFontRef) uintptr

CGFontGetNumberOfGlyphs returns the number of glyphs in a font.

It panics if CGFontGetNumberOfGlyphs is unavailable at run time; use TryCGFontGetNumberOfGlyphs to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/numberOfGlyphs

func CGFontGetStemV

func CGFontGetStemV(font CGFontRef) float64

CGFontGetStemV returns the thickness of the dominant vertical stems of glyphs in a font.

It panics if CGFontGetStemV is unavailable at run time; use TryCGFontGetStemV to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/stemV

func CGFontGetTypeID

func CGFontGetTypeID() uint

CGFontGetTypeID returns the Core Foundation type identifier for Core Graphics fonts.

It panics if CGFontGetTypeID is unavailable at run time; use TryCGFontGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/typeID

func CGFontGetUnitsPerEm

func CGFontGetUnitsPerEm(font CGFontRef) int32

CGFontGetUnitsPerEm returns the number of glyph space units per em for the provided font.

It panics if CGFontGetUnitsPerEm is unavailable at run time; use TryCGFontGetUnitsPerEm to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/unitsPerEm

func CGFontGetXHeight

func CGFontGetXHeight(font CGFontRef) int32

CGFontGetXHeight returns the x-height of a font.

It panics if CGFontGetXHeight is unavailable at run time; use TryCGFontGetXHeight to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/xHeight

func CGFontRelease

func CGFontRelease(font CGFontRef)

CGFontRelease decrements the retain count of a font.

It panics if CGFontRelease is unavailable at run time; use TryCGFontRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFontRelease

func CGFunctionGetTypeID

func CGFunctionGetTypeID() uint

CGFunctionGetTypeID returns the type identifier for Core Graphics function objects.

It panics if CGFunctionGetTypeID is unavailable at run time; use TryCGFunctionGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFunction/typeID

func CGFunctionRelease

func CGFunctionRelease(function CGFunctionRef)

CGFunctionRelease decrements the retain count of a function object.

It panics if CGFunctionRelease is unavailable at run time; use TryCGFunctionRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFunctionRelease

func CGGetLastMouseDelta

func CGGetLastMouseDelta(deltaX *int32, deltaY *int32)

CGGetLastMouseDelta reports the change in mouse position since the last mouse movement event received by the application.

It panics if CGGetLastMouseDelta is unavailable at run time; use TryCGGetLastMouseDelta to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetLastMouseDelta

func CGGradientGetContentHeadroom

func CGGradientGetContentHeadroom(gradient CGGradientRef) float32

CGGradientGetContentHeadroom.

It panics if CGGradientGetContentHeadroom is unavailable at run time; use TryCGGradientGetContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGradient/contentHeadroom

func CGGradientGetTypeID

func CGGradientGetTypeID() uint

CGGradientGetTypeID returns the Core Foundation type identifier for CGGradient objects.

It panics if CGGradientGetTypeID is unavailable at run time; use TryCGGradientGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGradient/typeID

func CGGradientRelease

func CGGradientRelease(gradient CGGradientRef)

CGGradientRelease decrements the retain count of a CGGradient object.

It panics if CGGradientRelease is unavailable at run time; use TryCGGradientRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGradientRelease

func CGImageCalculateContentAverageLightLevel

func CGImageCalculateContentAverageLightLevel(image CGImageRef) float32

CGImageCalculateContentAverageLightLevel.

It panics if CGImageCalculateContentAverageLightLevel is unavailable at run time; use TryCGImageCalculateContentAverageLightLevel to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/calculatedContentAverageLightLevel

func CGImageCalculateContentHeadroom

func CGImageCalculateContentHeadroom(image CGImageRef) float32

CGImageCalculateContentHeadroom.

It panics if CGImageCalculateContentHeadroom is unavailable at run time; use TryCGImageCalculateContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/calculatedContentHeadroom

func CGImageContainsImageSpecificToneMappingMetadata

func CGImageContainsImageSpecificToneMappingMetadata(image CGImageRef) bool

CGImageContainsImageSpecificToneMappingMetadata.

It panics if CGImageContainsImageSpecificToneMappingMetadata is unavailable at run time; use TryCGImageContainsImageSpecificToneMappingMetadata to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/containsImageSpecificToneMappingMetadata

func CGImageGetBitsPerComponent

func CGImageGetBitsPerComponent(image CGImageRef) uintptr

CGImageGetBitsPerComponent returns the number of bits allocated for a single color component of a bitmap image.

It panics if CGImageGetBitsPerComponent is unavailable at run time; use TryCGImageGetBitsPerComponent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/bitsPerComponent

func CGImageGetBitsPerPixel

func CGImageGetBitsPerPixel(image CGImageRef) uintptr

CGImageGetBitsPerPixel returns the number of bits allocated for a single pixel in a bitmap image.

It panics if CGImageGetBitsPerPixel is unavailable at run time; use TryCGImageGetBitsPerPixel to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/bitsPerPixel

func CGImageGetBytesPerRow

func CGImageGetBytesPerRow(image CGImageRef) uintptr

CGImageGetBytesPerRow returns the number of bytes allocated for a single row of a bitmap image.

It panics if CGImageGetBytesPerRow is unavailable at run time; use TryCGImageGetBytesPerRow to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/bytesPerRow

func CGImageGetContentAverageLightLevel

func CGImageGetContentAverageLightLevel(image CGImageRef) float32

CGImageGetContentAverageLightLevel.

It panics if CGImageGetContentAverageLightLevel is unavailable at run time; use TryCGImageGetContentAverageLightLevel to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/contentAverageLightLevel

func CGImageGetContentHeadroom

func CGImageGetContentHeadroom(image CGImageRef) float32

CGImageGetContentHeadroom.

It panics if CGImageGetContentHeadroom is unavailable at run time; use TryCGImageGetContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/contentHeadroom

func CGImageGetDecode

func CGImageGetDecode(image CGImageRef) *float64

CGImageGetDecode returns the decode array for a bitmap image.

It panics if CGImageGetDecode is unavailable at run time; use TryCGImageGetDecode to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/decode

func CGImageGetHeight

func CGImageGetHeight(image CGImageRef) uintptr

CGImageGetHeight returns the height of a bitmap image.

It panics if CGImageGetHeight is unavailable at run time; use TryCGImageGetHeight to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/height

func CGImageGetShouldInterpolate

func CGImageGetShouldInterpolate(image CGImageRef) bool

CGImageGetShouldInterpolate returns the interpolation setting for a bitmap image.

It panics if CGImageGetShouldInterpolate is unavailable at run time; use TryCGImageGetShouldInterpolate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/shouldInterpolate

func CGImageGetTypeID

func CGImageGetTypeID() uint

CGImageGetTypeID returns the type identifier for CGImage objects.

It panics if CGImageGetTypeID is unavailable at run time; use TryCGImageGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/typeID

func CGImageGetUTType

func CGImageGetUTType(image CGImageRef) corefoundation.CFStringRef

CGImageGetUTType the Universal Type Identifier for the image.

It panics if CGImageGetUTType is unavailable at run time; use TryCGImageGetUTType to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/utType

func CGImageGetWidth

func CGImageGetWidth(image CGImageRef) uintptr

CGImageGetWidth returns the width of a bitmap image, in pixels.

It panics if CGImageGetWidth is unavailable at run time; use TryCGImageGetWidth to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/width

func CGImageIsMask

func CGImageIsMask(image CGImageRef) bool

CGImageIsMask returns whether a bitmap image is an image mask.

It panics if CGImageIsMask is unavailable at run time; use TryCGImageIsMask to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/isMask

func CGImageRelease

func CGImageRelease(image CGImageRef)

CGImageRelease decrements the retain count of a bitmap image.

It panics if CGImageRelease is unavailable at run time; use TryCGImageRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImageRelease

func CGImageShouldToneMap

func CGImageShouldToneMap(image CGImageRef) bool

CGImageShouldToneMap.

It panics if CGImageShouldToneMap is unavailable at run time; use TryCGImageShouldToneMap to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/shouldToneMap

func CGLayerGetSize added in v0.2.0

func CGLayerGetSize(layer CGLayerRef) corefoundation.CGSize

CGLayerGetSize returns the width and height of a layer object.

It panics if CGLayerGetSize is unavailable at run time; use TryCGLayerGetSize to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayer/size

func CGLayerGetTypeID

func CGLayerGetTypeID() uint

CGLayerGetTypeID returns the unique type identifier used for CGLayer objects.

It panics if CGLayerGetTypeID is unavailable at run time; use TryCGLayerGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayer/typeID

func CGLayerRelease added in v0.2.0

func CGLayerRelease(layer CGLayerRef)

CGLayerRelease decrements the retain count of a layer object.

It panics if CGLayerRelease is unavailable at run time; use TryCGLayerRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayerRelease

func CGPDFArrayApplyBlock

func CGPDFArrayApplyBlock(array CGPDFArrayRef, block CGPDFArrayApplierBlock, info unsafe.Pointer)

CGPDFArrayApplyBlock.

It panics if CGPDFArrayApplyBlock is unavailable at run time; use TryCGPDFArrayApplyBlock to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayApplyBlock(_:_:_:)

func CGPDFArrayGetArray

func CGPDFArrayGetArray(array CGPDFArrayRef, index uintptr, value *CGPDFArrayRef) bool

CGPDFArrayGetArray returns whether an object at a given index in a PDF array is another PDF array and, if so, retrieves that array.

It panics if CGPDFArrayGetArray is unavailable at run time; use TryCGPDFArrayGetArray to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetArray(_:_:_:)

func CGPDFArrayGetBoolean

func CGPDFArrayGetBoolean(array CGPDFArrayRef, index uintptr, value *CGPDFBoolean) bool

CGPDFArrayGetBoolean returns whether an object at a given index in a PDF array is a PDF Boolean and, if so, retrieves that Boolean.

It panics if CGPDFArrayGetBoolean is unavailable at run time; use TryCGPDFArrayGetBoolean to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetBoolean(_:_:_:)

func CGPDFArrayGetCount

func CGPDFArrayGetCount(array CGPDFArrayRef) uintptr

CGPDFArrayGetCount returns the number of items in a PDF array.

It panics if CGPDFArrayGetCount is unavailable at run time; use TryCGPDFArrayGetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetCount(_:)

func CGPDFArrayGetDictionary

func CGPDFArrayGetDictionary(array CGPDFArrayRef, index uintptr, value *CGPDFDictionaryRef) bool

CGPDFArrayGetDictionary returns whether an object at a given index in a PDF array is a PDF dictionary and, if so, retrieves that dictionary.

It panics if CGPDFArrayGetDictionary is unavailable at run time; use TryCGPDFArrayGetDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetDictionary(_:_:_:)

func CGPDFArrayGetInteger

func CGPDFArrayGetInteger(array CGPDFArrayRef, index uintptr, value *CGPDFInteger) bool

CGPDFArrayGetInteger returns whether an object at a given index in a PDF array is a PDF integer and, if so, retrieves that object.

It panics if CGPDFArrayGetInteger is unavailable at run time; use TryCGPDFArrayGetInteger to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetInteger(_:_:_:)

func CGPDFArrayGetName

func CGPDFArrayGetName(array CGPDFArrayRef, index uintptr, value **byte) bool

CGPDFArrayGetName returns whether an object at a given index in a PDF array is a PDF name reference (represented as a constant C string) and, if so, retrieves that name.

It panics if CGPDFArrayGetName is unavailable at run time; use TryCGPDFArrayGetName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetName(_:_:_:)

func CGPDFArrayGetNull

func CGPDFArrayGetNull(array CGPDFArrayRef, index uintptr) bool

CGPDFArrayGetNull returns whether an object at a given index in a Quartz PDF array is a PDF null.

It panics if CGPDFArrayGetNull is unavailable at run time; use TryCGPDFArrayGetNull to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetNull(_:_:)

func CGPDFArrayGetNumber

func CGPDFArrayGetNumber(array CGPDFArrayRef, index uintptr, value *CGPDFReal) bool

CGPDFArrayGetNumber returns whether an object at a given index in a PDF array is a PDF number and, if so, retrieves that object.

It panics if CGPDFArrayGetNumber is unavailable at run time; use TryCGPDFArrayGetNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetNumber(_:_:_:)

func CGPDFArrayGetObject

func CGPDFArrayGetObject(array CGPDFArrayRef, index uintptr, value *CGPDFObjectRef) bool

CGPDFArrayGetObject returns whether an object at a given index in a PDF array is a PDF object and, if so, retrieves that object.

It panics if CGPDFArrayGetObject is unavailable at run time; use TryCGPDFArrayGetObject to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetObject(_:_:_:)

func CGPDFArrayGetStream

func CGPDFArrayGetStream(array CGPDFArrayRef, index uintptr, value *CGPDFStreamRef) bool

CGPDFArrayGetStream returns whether an object at a given index in a PDF array is a PDF stream and, if so, retrieves that stream.

It panics if CGPDFArrayGetStream is unavailable at run time; use TryCGPDFArrayGetStream to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetStream(_:_:_:)

func CGPDFArrayGetString

func CGPDFArrayGetString(array CGPDFArrayRef, index uintptr, value *CGPDFStringRef) bool

CGPDFArrayGetString returns whether an object at a given index in a PDF array is a PDF string and, if so, retrieves that string.

It panics if CGPDFArrayGetString is unavailable at run time; use TryCGPDFArrayGetString to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayGetString(_:_:_:)

func CGPDFContentStreamGetStreams

func CGPDFContentStreamGetStreams(cs CGPDFContentStreamRef) corefoundation.CFArrayRef

CGPDFContentStreamGetStreams gets the array of PDF content streams contained in a PDF content stream object.

It panics if CGPDFContentStreamGetStreams is unavailable at run time; use TryCGPDFContentStreamGetStreams to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContentStreamGetStreams(_:)

func CGPDFContentStreamRelease

func CGPDFContentStreamRelease(cs CGPDFContentStreamRef)

CGPDFContentStreamRelease decrements the retain count of a PDF content stream object.

It panics if CGPDFContentStreamRelease is unavailable at run time; use TryCGPDFContentStreamRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContentStreamRelease(_:)

func CGPDFContextAddDestinationAtPoint

func CGPDFContextAddDestinationAtPoint(context CGContextRef, name corefoundation.CFStringRef, point corefoundation.CGPoint)

CGPDFContextAddDestinationAtPoint sets a destination to jump to when a point in the current page of a PDF graphics context is clicked.

It panics if CGPDFContextAddDestinationAtPoint is unavailable at run time; use TryCGPDFContextAddDestinationAtPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/addDestination(_:at:)

func CGPDFContextAddDocumentMetadata

func CGPDFContextAddDocumentMetadata(context CGContextRef, metadata corefoundation.CFDataRef)

CGPDFContextAddDocumentMetadata associates custom metadata with the PDF document.

It panics if CGPDFContextAddDocumentMetadata is unavailable at run time; use TryCGPDFContextAddDocumentMetadata to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/addDocumentMetadata(_:)

func CGPDFContextBeginPage

func CGPDFContextBeginPage(context CGContextRef, pageInfo corefoundation.CFDictionaryRef)

CGPDFContextBeginPage begins a new page in a PDF graphics context.

It panics if CGPDFContextBeginPage is unavailable at run time; use TryCGPDFContextBeginPage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/beginPDFPage(_:)

func CGPDFContextBeginTag

func CGPDFContextBeginTag(context CGContextRef, tagType CGPDFTagType, tagProperties corefoundation.CFDictionaryRef)

CGPDFContextBeginTag.

It panics if CGPDFContextBeginTag is unavailable at run time; use TryCGPDFContextBeginTag to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContextBeginTag(_:_:_:)

func CGPDFContextClose

func CGPDFContextClose(context CGContextRef)

CGPDFContextClose closes a PDF document.

It panics if CGPDFContextClose is unavailable at run time; use TryCGPDFContextClose to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/closePDF()

func CGPDFContextEndPage

func CGPDFContextEndPage(context CGContextRef)

CGPDFContextEndPage ends the current page in the PDF graphics context.

It panics if CGPDFContextEndPage is unavailable at run time; use TryCGPDFContextEndPage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/endPDFPage()

func CGPDFContextEndTag

func CGPDFContextEndTag(context CGContextRef)

CGPDFContextEndTag.

It panics if CGPDFContextEndTag is unavailable at run time; use TryCGPDFContextEndTag to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContextEndTag(_:)

func CGPDFContextSetDestinationForRect

func CGPDFContextSetDestinationForRect(context CGContextRef, name corefoundation.CFStringRef, rect corefoundation.CGRect)

CGPDFContextSetDestinationForRect sets a destination to jump to when a rectangle in the current PDF page is clicked.

It panics if CGPDFContextSetDestinationForRect is unavailable at run time; use TryCGPDFContextSetDestinationForRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setDestination(_:for:)

func CGPDFContextSetIDTree

func CGPDFContextSetIDTree(context CGContextRef, IDTreeDictionary CGPDFDictionaryRef)

CGPDFContextSetIDTree.

It panics if CGPDFContextSetIDTree is unavailable at run time; use TryCGPDFContextSetIDTree to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContextSetIDTree(_:_:)

func CGPDFContextSetOutline

func CGPDFContextSetOutline(context CGContextRef, outline corefoundation.CFDictionaryRef)

CGPDFContextSetOutline.

It panics if CGPDFContextSetOutline is unavailable at run time; use TryCGPDFContextSetOutline to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContextSetOutline(_:_:)

func CGPDFContextSetPageTagStructureTree

func CGPDFContextSetPageTagStructureTree(context CGContextRef, pageTagStructureTreeDictionary corefoundation.CFDictionaryRef)

CGPDFContextSetPageTagStructureTree.

It panics if CGPDFContextSetPageTagStructureTree is unavailable at run time; use TryCGPDFContextSetPageTagStructureTree to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContextSetPageTagStructureTree(_:_:)

func CGPDFContextSetParentTree

func CGPDFContextSetParentTree(context CGContextRef, parentTreeDictionary CGPDFDictionaryRef)

CGPDFContextSetParentTree.

It panics if CGPDFContextSetParentTree is unavailable at run time; use TryCGPDFContextSetParentTree to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContextSetParentTree(_:_:)

func CGPDFContextSetURLForRect

func CGPDFContextSetURLForRect(context CGContextRef, url corefoundation.CFURLRef, rect corefoundation.CGRect)

CGPDFContextSetURLForRect sets the URL associated with a rectangle in a PDF graphics context.

It panics if CGPDFContextSetURLForRect is unavailable at run time; use TryCGPDFContextSetURLForRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/setURL(_:for:)

func CGPDFDictionaryApplyBlock

func CGPDFDictionaryApplyBlock(dict CGPDFDictionaryRef, block CGPDFDictionaryApplierBlock, info unsafe.Pointer)

CGPDFDictionaryApplyBlock.

It panics if CGPDFDictionaryApplyBlock is unavailable at run time; use TryCGPDFDictionaryApplyBlock to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryApplyBlock(_:_:_:)

func CGPDFDictionaryApplyFunction

func CGPDFDictionaryApplyFunction(dict CGPDFDictionaryRef, function CGPDFDictionaryApplierFunction, info unsafe.Pointer)

CGPDFDictionaryApplyFunction applies a function to each entry in a dictionary.

It panics if CGPDFDictionaryApplyFunction is unavailable at run time; use TryCGPDFDictionaryApplyFunction to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryApplyFunction(_:_:_:)

func CGPDFDictionaryGetArray

func CGPDFDictionaryGetArray(dict CGPDFDictionaryRef, key string, value *CGPDFArrayRef) bool

CGPDFDictionaryGetArray returns whether there is a PDF array associated with a specified key in a PDF dictionary and, if so, retrieves that array.

It panics if CGPDFDictionaryGetArray is unavailable at run time; use TryCGPDFDictionaryGetArray to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetArray(_:_:_:)

func CGPDFDictionaryGetBoolean

func CGPDFDictionaryGetBoolean(dict CGPDFDictionaryRef, key string, value *CGPDFBoolean) bool

CGPDFDictionaryGetBoolean returns whether there is a PDF Boolean value associated with a specified key in a PDF dictionary and, if so, retrieves the Boolean value.

It panics if CGPDFDictionaryGetBoolean is unavailable at run time; use TryCGPDFDictionaryGetBoolean to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetBoolean(_:_:_:)

func CGPDFDictionaryGetCount

func CGPDFDictionaryGetCount(dict CGPDFDictionaryRef) uintptr

CGPDFDictionaryGetCount returns the number of entries in a PDF dictionary.

It panics if CGPDFDictionaryGetCount is unavailable at run time; use TryCGPDFDictionaryGetCount to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetCount(_:)

func CGPDFDictionaryGetDictionary

func CGPDFDictionaryGetDictionary(dict CGPDFDictionaryRef, key string, value *CGPDFDictionaryRef) bool

CGPDFDictionaryGetDictionary returns whether there is another PDF dictionary associated with a specified key in a PDF dictionary and, if so, retrieves that dictionary.

It panics if CGPDFDictionaryGetDictionary is unavailable at run time; use TryCGPDFDictionaryGetDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetDictionary(_:_:_:)

func CGPDFDictionaryGetInteger

func CGPDFDictionaryGetInteger(dict CGPDFDictionaryRef, key string, value *CGPDFInteger) bool

CGPDFDictionaryGetInteger returns whether there is a PDF integer associated with a specified key in a PDF dictionary and, if so, retrieves that integer.

It panics if CGPDFDictionaryGetInteger is unavailable at run time; use TryCGPDFDictionaryGetInteger to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetInteger(_:_:_:)

func CGPDFDictionaryGetName

func CGPDFDictionaryGetName(dict CGPDFDictionaryRef, key string, value **byte) bool

CGPDFDictionaryGetName returns whether an object with a specified key in a PDF dictionary is a PDF name reference (represented as a constant C string) and, if so, retrieves that name.

It panics if CGPDFDictionaryGetName is unavailable at run time; use TryCGPDFDictionaryGetName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetName(_:_:_:)

func CGPDFDictionaryGetNumber

func CGPDFDictionaryGetNumber(dict CGPDFDictionaryRef, key string, value *CGPDFReal) bool

CGPDFDictionaryGetNumber returns whether there is a PDF number associated with a specified key in a PDF dictionary and, if so, retrieves that number.

It panics if CGPDFDictionaryGetNumber is unavailable at run time; use TryCGPDFDictionaryGetNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetNumber(_:_:_:)

func CGPDFDictionaryGetObject

func CGPDFDictionaryGetObject(dict CGPDFDictionaryRef, key string, value *CGPDFObjectRef) bool

CGPDFDictionaryGetObject returns whether there is a PDF object associated with a specified key in a PDF dictionary and, if so, retrieves that object.

It panics if CGPDFDictionaryGetObject is unavailable at run time; use TryCGPDFDictionaryGetObject to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetObject(_:_:_:)

func CGPDFDictionaryGetStream

func CGPDFDictionaryGetStream(dict CGPDFDictionaryRef, key string, value *CGPDFStreamRef) bool

CGPDFDictionaryGetStream returns whether there is a PDF stream associated with a specified key in a PDF dictionary and, if so, retrieves that stream.

It panics if CGPDFDictionaryGetStream is unavailable at run time; use TryCGPDFDictionaryGetStream to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetStream(_:_:_:)

func CGPDFDictionaryGetString

func CGPDFDictionaryGetString(dict CGPDFDictionaryRef, key string, value *CGPDFStringRef) bool

CGPDFDictionaryGetString returns whether there is a PDF string associated with a specified key in a PDF dictionary and, if so, retrieves that string.

It panics if CGPDFDictionaryGetString is unavailable at run time; use TryCGPDFDictionaryGetString to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryGetString(_:_:_:)

func CGPDFDocumentAllowsCopying

func CGPDFDocumentAllowsCopying(document CGPDFDocumentRef) bool

CGPDFDocumentAllowsCopying returns whether the specified PDF document allows copying.

It panics if CGPDFDocumentAllowsCopying is unavailable at run time; use TryCGPDFDocumentAllowsCopying to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/allowsCopying

func CGPDFDocumentAllowsPrinting

func CGPDFDocumentAllowsPrinting(document CGPDFDocumentRef) bool

CGPDFDocumentAllowsPrinting returns whether a PDF document allows printing.

It panics if CGPDFDocumentAllowsPrinting is unavailable at run time; use TryCGPDFDocumentAllowsPrinting to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/allowsPrinting

func CGPDFDocumentGetArtBox deprecated

func CGPDFDocumentGetArtBox(document CGPDFDocumentRef, page int32) corefoundation.CGRect

CGPDFDocumentGetArtBox returns the art box of a page in a PDF document.

It panics if CGPDFDocumentGetArtBox is unavailable at run time; use TryCGPDFDocumentGetArtBox to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocumentGetArtBox

func CGPDFDocumentGetBleedBox deprecated

func CGPDFDocumentGetBleedBox(document CGPDFDocumentRef, page int32) corefoundation.CGRect

CGPDFDocumentGetBleedBox returns the bleed box of a page in a PDF document.

It panics if CGPDFDocumentGetBleedBox is unavailable at run time; use TryCGPDFDocumentGetBleedBox to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocumentGetBleedBox

func CGPDFDocumentGetCropBox deprecated

func CGPDFDocumentGetCropBox(document CGPDFDocumentRef, page int32) corefoundation.CGRect

CGPDFDocumentGetCropBox returns the crop box of a page in a PDF document.

It panics if CGPDFDocumentGetCropBox is unavailable at run time; use TryCGPDFDocumentGetCropBox to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocumentGetCropBox

func CGPDFDocumentGetMediaBox deprecated

func CGPDFDocumentGetMediaBox(document CGPDFDocumentRef, page int32) corefoundation.CGRect

CGPDFDocumentGetMediaBox returns the media box of a page in a PDF document.

It panics if CGPDFDocumentGetMediaBox is unavailable at run time; use TryCGPDFDocumentGetMediaBox to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocumentGetMediaBox

func CGPDFDocumentGetNumberOfPages

func CGPDFDocumentGetNumberOfPages(document CGPDFDocumentRef) uintptr

CGPDFDocumentGetNumberOfPages returns the number of pages in a PDF document.

It panics if CGPDFDocumentGetNumberOfPages is unavailable at run time; use TryCGPDFDocumentGetNumberOfPages to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/numberOfPages

func CGPDFDocumentGetOutline

func CGPDFDocumentGetOutline(document CGPDFDocumentRef) corefoundation.CFDictionaryRef

CGPDFDocumentGetOutline.

It panics if CGPDFDocumentGetOutline is unavailable at run time; use TryCGPDFDocumentGetOutline to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/outline

func CGPDFDocumentGetRotationAngle deprecated

func CGPDFDocumentGetRotationAngle(document CGPDFDocumentRef, page int32) int32

CGPDFDocumentGetRotationAngle returns the rotation angle of a page in a PDF document.

It panics if CGPDFDocumentGetRotationAngle is unavailable at run time; use TryCGPDFDocumentGetRotationAngle to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocumentGetRotationAngle

func CGPDFDocumentGetTrimBox deprecated

func CGPDFDocumentGetTrimBox(document CGPDFDocumentRef, page int32) corefoundation.CGRect

CGPDFDocumentGetTrimBox returns the trim box of a page in a PDF document.

It panics if CGPDFDocumentGetTrimBox is unavailable at run time; use TryCGPDFDocumentGetTrimBox to get an error instead.

Deprecated: Deprecated since macOS 10.5.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocumentGetTrimBox

func CGPDFDocumentGetTypeID

func CGPDFDocumentGetTypeID() uint

CGPDFDocumentGetTypeID returns the type identifier for Core Graphics PDF documents.

It panics if CGPDFDocumentGetTypeID is unavailable at run time; use TryCGPDFDocumentGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/typeID

func CGPDFDocumentGetVersion

func CGPDFDocumentGetVersion(document CGPDFDocumentRef, majorVersion *int32, minorVersion *int32)

CGPDFDocumentGetVersion returns the major and minor version numbers of a Core Graphics PDF document.

It panics if CGPDFDocumentGetVersion is unavailable at run time; use TryCGPDFDocumentGetVersion to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/getVersion(majorVersion:minorVersion:)

func CGPDFDocumentIsEncrypted

func CGPDFDocumentIsEncrypted(document CGPDFDocumentRef) bool

CGPDFDocumentIsEncrypted returns whether the specified PDF file is encrypted.

It panics if CGPDFDocumentIsEncrypted is unavailable at run time; use TryCGPDFDocumentIsEncrypted to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/isEncrypted

func CGPDFDocumentIsUnlocked

func CGPDFDocumentIsUnlocked(document CGPDFDocumentRef) bool

CGPDFDocumentIsUnlocked returns whether the specified PDF document is currently unlocked.

It panics if CGPDFDocumentIsUnlocked is unavailable at run time; use TryCGPDFDocumentIsUnlocked to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/isUnlocked

func CGPDFDocumentRelease

func CGPDFDocumentRelease(document CGPDFDocumentRef)

CGPDFDocumentRelease decrements the retain count of a PDF document.

It panics if CGPDFDocumentRelease is unavailable at run time; use TryCGPDFDocumentRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocumentRelease

func CGPDFDocumentUnlockWithPassword

func CGPDFDocumentUnlockWithPassword(document CGPDFDocumentRef, password string) bool

CGPDFDocumentUnlockWithPassword unlocks an encrypted PDF document when a valid password is supplied.

It panics if CGPDFDocumentUnlockWithPassword is unavailable at run time; use TryCGPDFDocumentUnlockWithPassword to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/unlockWithPassword(_:)

func CGPDFObjectGetValue

func CGPDFObjectGetValue(object CGPDFObjectRef, type_ CGPDFObjectType, value unsafe.Pointer) bool

CGPDFObjectGetValue returns whether an object is of a given type and if it is, retrieves its value.

It panics if CGPDFObjectGetValue is unavailable at run time; use TryCGPDFObjectGetValue to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFObjectGetValue(_:_:_:)

func CGPDFOperatorTableRelease

func CGPDFOperatorTableRelease(table CGPDFOperatorTableRef)

CGPDFOperatorTableRelease decrements the retain count of a CGPDFOperatorTable object.

It panics if CGPDFOperatorTableRelease is unavailable at run time; use TryCGPDFOperatorTableRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFOperatorTableRelease(_:)

func CGPDFOperatorTableSetCallback

func CGPDFOperatorTableSetCallback(table CGPDFOperatorTableRef, name string, callback CGPDFOperatorCallback)

CGPDFOperatorTableSetCallback sets a callback function for a PDF operator.

It panics if CGPDFOperatorTableSetCallback is unavailable at run time; use TryCGPDFOperatorTableSetCallback to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFOperatorTableSetCallback(_:_:_:)

func CGPDFPageGetBoxRect

func CGPDFPageGetBoxRect(page CGPDFPageRef, box CGPDFBox) corefoundation.CGRect

CGPDFPageGetBoxRect returns the rectangle that represents a type of box for a content region or page dimensions of a PDF page.

It panics if CGPDFPageGetBoxRect is unavailable at run time; use TryCGPDFPageGetBoxRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/getBoxRect(_:)

func CGPDFPageGetDrawingTransform

func CGPDFPageGetDrawingTransform(page CGPDFPageRef, box CGPDFBox, rect corefoundation.CGRect, rotate int32, preserveAspectRatio bool) corefoundation.CGAffineTransform

CGPDFPageGetDrawingTransform returns the affine transform that maps a box to a given rectangle on a PDF page.

It panics if CGPDFPageGetDrawingTransform is unavailable at run time; use TryCGPDFPageGetDrawingTransform to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/getDrawingTransform(_:rect:rotate:preserveAspectRatio:)

func CGPDFPageGetPageNumber

func CGPDFPageGetPageNumber(page CGPDFPageRef) uintptr

CGPDFPageGetPageNumber returns the page number of the specified PDF page.

It panics if CGPDFPageGetPageNumber is unavailable at run time; use TryCGPDFPageGetPageNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/pageNumber

func CGPDFPageGetRotationAngle

func CGPDFPageGetRotationAngle(page CGPDFPageRef) int32

CGPDFPageGetRotationAngle returns the rotation angle of a PDF page, in degrees.

It panics if CGPDFPageGetRotationAngle is unavailable at run time; use TryCGPDFPageGetRotationAngle to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/rotationAngle

func CGPDFPageGetTypeID

func CGPDFPageGetTypeID() uint

CGPDFPageGetTypeID returns the CFType ID for PDF page objects.

It panics if CGPDFPageGetTypeID is unavailable at run time; use TryCGPDFPageGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/typeID

func CGPDFPageRelease

func CGPDFPageRelease(page CGPDFPageRef)

CGPDFPageRelease decrements the retain count of a PDF page.

It panics if CGPDFPageRelease is unavailable at run time; use TryCGPDFPageRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPageRelease

func CGPDFScannerPopArray

func CGPDFScannerPopArray(scanner CGPDFScannerRef, value *CGPDFArrayRef) bool

CGPDFScannerPopArray retrieves an array object from the scanner stack.

It panics if CGPDFScannerPopArray is unavailable at run time; use TryCGPDFScannerPopArray to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopArray(_:_:)

func CGPDFScannerPopBoolean

func CGPDFScannerPopBoolean(scanner CGPDFScannerRef, value *CGPDFBoolean) bool

CGPDFScannerPopBoolean retrieves a Boolean object from the scanner stack.

It panics if CGPDFScannerPopBoolean is unavailable at run time; use TryCGPDFScannerPopBoolean to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopBoolean(_:_:)

func CGPDFScannerPopDictionary

func CGPDFScannerPopDictionary(scanner CGPDFScannerRef, value *CGPDFDictionaryRef) bool

CGPDFScannerPopDictionary retrieves a PDF dictionary object from the scanner stack.

It panics if CGPDFScannerPopDictionary is unavailable at run time; use TryCGPDFScannerPopDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopDictionary(_:_:)

func CGPDFScannerPopInteger

func CGPDFScannerPopInteger(scanner CGPDFScannerRef, value *CGPDFInteger) bool

CGPDFScannerPopInteger retrieves an integer object from the scanner stack.

It panics if CGPDFScannerPopInteger is unavailable at run time; use TryCGPDFScannerPopInteger to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopInteger(_:_:)

func CGPDFScannerPopName

func CGPDFScannerPopName(scanner CGPDFScannerRef, value **byte) bool

CGPDFScannerPopName retrieves a character string from the scanner stack.

It panics if CGPDFScannerPopName is unavailable at run time; use TryCGPDFScannerPopName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopName(_:_:)

func CGPDFScannerPopNumber

func CGPDFScannerPopNumber(scanner CGPDFScannerRef, value *CGPDFReal) bool

CGPDFScannerPopNumber retrieves a real value object from the scanner stack.

It panics if CGPDFScannerPopNumber is unavailable at run time; use TryCGPDFScannerPopNumber to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopNumber(_:_:)

func CGPDFScannerPopObject

func CGPDFScannerPopObject(scanner CGPDFScannerRef, value *CGPDFObjectRef) bool

CGPDFScannerPopObject retrieves an object from the scanner stack.

It panics if CGPDFScannerPopObject is unavailable at run time; use TryCGPDFScannerPopObject to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopObject(_:_:)

func CGPDFScannerPopStream

func CGPDFScannerPopStream(scanner CGPDFScannerRef, value *CGPDFStreamRef) bool

CGPDFScannerPopStream retrieves a PDF stream object from the scanner stack.

It panics if CGPDFScannerPopStream is unavailable at run time; use TryCGPDFScannerPopStream to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopStream(_:_:)

func CGPDFScannerPopString

func CGPDFScannerPopString(scanner CGPDFScannerRef, value *CGPDFStringRef) bool

CGPDFScannerPopString retrieves a string object from the scanner stack.

It panics if CGPDFScannerPopString is unavailable at run time; use TryCGPDFScannerPopString to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerPopString(_:_:)

func CGPDFScannerRelease

func CGPDFScannerRelease(scanner CGPDFScannerRef)

CGPDFScannerRelease decrements the retain count of a scanner object.

It panics if CGPDFScannerRelease is unavailable at run time; use TryCGPDFScannerRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerRelease(_:)

func CGPDFScannerScan

func CGPDFScannerScan(scanner CGPDFScannerRef) bool

CGPDFScannerScan parses the content stream of a PDF scanner object.

It panics if CGPDFScannerScan is unavailable at run time; use TryCGPDFScannerScan to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerScan(_:)

func CGPDFScannerStop

func CGPDFScannerStop(s CGPDFScannerRef)

CGPDFScannerStop.

It panics if CGPDFScannerStop is unavailable at run time; use TryCGPDFScannerStop to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerStop(_:)

func CGPDFStreamCopyData

func CGPDFStreamCopyData(stream CGPDFStreamRef, format *CGPDFDataFormat) corefoundation.CFDataRef

CGPDFStreamCopyData returns the data associated with a PDF stream.

It panics if CGPDFStreamCopyData is unavailable at run time; use TryCGPDFStreamCopyData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFStreamCopyData(_:_:)

func CGPDFStringCopyDate

func CGPDFStringCopyDate(string_ CGPDFStringRef) corefoundation.CFDateRef

CGPDFStringCopyDate converts a string to a date.

It panics if CGPDFStringCopyDate is unavailable at run time; use TryCGPDFStringCopyDate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFStringCopyDate(_:)

func CGPDFStringCopyTextString

func CGPDFStringCopyTextString(string_ CGPDFStringRef) corefoundation.CFStringRef

CGPDFStringCopyTextString returns a CFString object that represents a PDF string as a text string.

It panics if CGPDFStringCopyTextString is unavailable at run time; use TryCGPDFStringCopyTextString to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFStringCopyTextString(_:)

func CGPDFStringGetBytePtr

func CGPDFStringGetBytePtr(string_ CGPDFStringRef) *byte

CGPDFStringGetBytePtr returns a pointer to the bytes of a PDF string.

It panics if CGPDFStringGetBytePtr is unavailable at run time; use TryCGPDFStringGetBytePtr to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFStringGetBytePtr(_:)

func CGPDFStringGetLength

func CGPDFStringGetLength(string_ CGPDFStringRef) uintptr

CGPDFStringGetLength returns the number of bytes in a PDF string.

It panics if CGPDFStringGetLength is unavailable at run time; use TryCGPDFStringGetLength to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFStringGetLength(_:)

func CGPDFTagTypeGetName added in v0.5.1

func CGPDFTagTypeGetName(tagType CGPDFTagType) *byte

CGPDFTagTypeGetName.

It panics if CGPDFTagTypeGetName is unavailable at run time; use TryCGPDFTagTypeGetName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFTagType/name

func CGPSConverterAbort

func CGPSConverterAbort(converter CGPSConverterRef) bool

CGPSConverterAbort tells a PostScript converter to abort a conversion at the next available opportunity.

It panics if CGPSConverterAbort is unavailable at run time; use TryCGPSConverterAbort to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverter/abort()

func CGPSConverterConvert

func CGPSConverterConvert(converter CGPSConverterRef, provider CGDataProviderRef, consumer CGDataConsumerRef, options corefoundation.CFDictionaryRef) bool

CGPSConverterConvert uses a PostScript converter to convert PostScript data to PDF data.

It panics if CGPSConverterConvert is unavailable at run time; use TryCGPSConverterConvert to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverter/convert(_:consumer:options:)

func CGPSConverterGetTypeID

func CGPSConverterGetTypeID() uint

CGPSConverterGetTypeID returns the Core Foundation type identifier for PostScript converters.

It panics if CGPSConverterGetTypeID is unavailable at run time; use TryCGPSConverterGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverter/typeID

func CGPSConverterIsConverting

func CGPSConverterIsConverting(converter CGPSConverterRef) bool

CGPSConverterIsConverting checks whether the converter is currently converting data.

It panics if CGPSConverterIsConverting is unavailable at run time; use TryCGPSConverterIsConverting to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverter/isConverting

func CGPathAddArc added in v0.5.1

func CGPathAddArc(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64, radius float64, startAngle float64, endAngle float64, clockwise bool)

CGPathAddArc appends an arc to a mutable graphics path, possibly preceded by a straight line segment.

It panics if CGPathAddArc is unavailable at run time; use TryCGPathAddArc to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddArc

func CGPathAddArcToPoint added in v0.5.1

func CGPathAddArcToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x1 float64, y1 float64, x2 float64, y2 float64, radius float64)

CGPathAddArcToPoint appends an arc to a mutable graphics path, possibly preceded by a straight line segment.

It panics if CGPathAddArcToPoint is unavailable at run time; use TryCGPathAddArcToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddArcToPoint

func CGPathAddCurveToPoint added in v0.5.1

func CGPathAddCurveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)

CGPathAddCurveToPoint appends a cubic Bézier curve to a mutable graphics path.

It panics if CGPathAddCurveToPoint is unavailable at run time; use TryCGPathAddCurveToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddCurveToPoint

func CGPathAddEllipseInRect added in v0.5.1

func CGPathAddEllipseInRect(path CGMutablePathRef, m *corefoundation.CGAffineTransform, rect corefoundation.CGRect)

CGPathAddEllipseInRect adds to a path an ellipse that fits inside a rectangle.

It panics if CGPathAddEllipseInRect is unavailable at run time; use TryCGPathAddEllipseInRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddEllipseInRect

func CGPathAddLineToPoint added in v0.5.1

func CGPathAddLineToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64)

CGPathAddLineToPoint appends a line segment to a mutable graphics path.

It panics if CGPathAddLineToPoint is unavailable at run time; use TryCGPathAddLineToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddLineToPoint

func CGPathAddLines added in v0.5.1

func CGPathAddLines(path CGMutablePathRef, m *corefoundation.CGAffineTransform, points *corefoundation.CGPoint, count uintptr)

CGPathAddLines appends an array of new line segments to a mutable graphics path.

It panics if CGPathAddLines is unavailable at run time; use TryCGPathAddLines to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddLines

func CGPathAddPath added in v0.5.1

func CGPathAddPath(path1 CGMutablePathRef, m *corefoundation.CGAffineTransform, path2 CGPathRef)

CGPathAddPath appends a path to onto a mutable graphics path.

It panics if CGPathAddPath is unavailable at run time; use TryCGPathAddPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddPath

func CGPathAddQuadCurveToPoint added in v0.5.1

func CGPathAddQuadCurveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, cpx float64, cpy float64, x float64, y float64)

CGPathAddQuadCurveToPoint appends a quadratic Bézier curve to a mutable graphics path.

It panics if CGPathAddQuadCurveToPoint is unavailable at run time; use TryCGPathAddQuadCurveToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddQuadCurveToPoint

func CGPathAddRect added in v0.5.1

CGPathAddRect appends a rectangle to a mutable graphics path.

It panics if CGPathAddRect is unavailable at run time; use TryCGPathAddRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddRect

func CGPathAddRects added in v0.5.1

func CGPathAddRects(path CGMutablePathRef, m *corefoundation.CGAffineTransform, rects *corefoundation.CGRect, count uintptr)

CGPathAddRects appends an array of rectangles to a mutable graphics path.

It panics if CGPathAddRects is unavailable at run time; use TryCGPathAddRects to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddRects

func CGPathAddRelativeArc added in v0.5.1

func CGPathAddRelativeArc(path CGMutablePathRef, matrix *corefoundation.CGAffineTransform, x float64, y float64, radius float64, startAngle float64, delta float64)

CGPathAddRelativeArc appends an arc to a mutable graphics path, possibly preceded by a straight line segment.

It panics if CGPathAddRelativeArc is unavailable at run time; use TryCGPathAddRelativeArc to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddRelativeArc

func CGPathAddRoundedRect added in v0.5.1

func CGPathAddRoundedRect(path CGMutablePathRef, transform *corefoundation.CGAffineTransform, rect corefoundation.CGRect, cornerWidth float64, cornerHeight float64)

CGPathAddRoundedRect appends a rounded rectangle to a mutable graphics path.

It panics if CGPathAddRoundedRect is unavailable at run time; use TryCGPathAddRoundedRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathAddRoundedRect

func CGPathApply

func CGPathApply(path CGPathRef, info unsafe.Pointer, function CGPathApplierFunction)

CGPathApply for each element in a graphics path, calls a custom applier function.

It panics if CGPathApply is unavailable at run time; use TryCGPathApply to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/apply(info:function:)

func CGPathApplyWithBlock

func CGPathApplyWithBlock(path CGPathRef, block CGPathApplyBlock)

CGPathApplyWithBlock.

It panics if CGPathApplyWithBlock is unavailable at run time; use TryCGPathApplyWithBlock to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/applyWithBlock(_:)

func CGPathCloseSubpath

func CGPathCloseSubpath(path CGMutablePathRef)

CGPathCloseSubpath closes and completes a subpath in a mutable graphics path.

It panics if CGPathCloseSubpath is unavailable at run time; use TryCGPathCloseSubpath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGMutablePath/closeSubpath()

func CGPathContainsPoint

func CGPathContainsPoint(path CGPathRef, m *corefoundation.CGAffineTransform, point corefoundation.CGPoint, eoFill bool) bool

CGPathContainsPoint checks whether a point is contained in a graphics path.

It panics if CGPathContainsPoint is unavailable at run time; use TryCGPathContainsPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathContainsPoint

func CGPathCreateSeparateComponents

func CGPathCreateSeparateComponents(path CGPathRef, evenOddFillRule bool) corefoundation.CFArrayRef

CGPathCreateSeparateComponents.

It panics if CGPathCreateSeparateComponents is unavailable at run time; use TryCGPathCreateSeparateComponents to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateSeparateComponents

func CGPathEqualToPath

func CGPathEqualToPath(path1 CGPathRef, path2 CGPathRef) bool

CGPathEqualToPath indicates whether two graphics paths are equivalent.

It panics if CGPathEqualToPath is unavailable at run time; use TryCGPathEqualToPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathEqualToPath

func CGPathGetBoundingBox

func CGPathGetBoundingBox(path CGPathRef) corefoundation.CGRect

CGPathGetBoundingBox returns the bounding box containing all points in a graphics path.

It panics if CGPathGetBoundingBox is unavailable at run time; use TryCGPathGetBoundingBox to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/boundingBox

func CGPathGetCurrentPoint

func CGPathGetCurrentPoint(path CGPathRef) corefoundation.CGPoint

CGPathGetCurrentPoint returns the current point in a graphics path.

It panics if CGPathGetCurrentPoint is unavailable at run time; use TryCGPathGetCurrentPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/currentPoint

func CGPathGetPathBoundingBox

func CGPathGetPathBoundingBox(path CGPathRef) corefoundation.CGRect

CGPathGetPathBoundingBox returns the bounding box of a graphics path.

It panics if CGPathGetPathBoundingBox is unavailable at run time; use TryCGPathGetPathBoundingBox to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/boundingBoxOfPath

func CGPathGetTypeID

func CGPathGetTypeID() uint

CGPathGetTypeID returns the Core Foundation type identifier for Core Graphics paths.

It panics if CGPathGetTypeID is unavailable at run time; use TryCGPathGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/typeID

func CGPathIntersectsPath

func CGPathIntersectsPath(path1 CGPathRef, path2 CGPathRef, evenOddFillRule bool) bool

CGPathIntersectsPath.

It panics if CGPathIntersectsPath is unavailable at run time; use TryCGPathIntersectsPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathIntersectsPath

func CGPathIsEmpty

func CGPathIsEmpty(path CGPathRef) bool

CGPathIsEmpty indicates whether or not a graphics path is empty.

It panics if CGPathIsEmpty is unavailable at run time; use TryCGPathIsEmpty to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/isEmpty

func CGPathIsRect

func CGPathIsRect(path CGPathRef, rect *corefoundation.CGRect) bool

CGPathIsRect indicates whether or not a graphics path represents a rectangle.

It panics if CGPathIsRect is unavailable at run time; use TryCGPathIsRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/isRect(_:)

func CGPathMoveToPoint added in v0.5.1

func CGPathMoveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64)

CGPathMoveToPoint starts a new subpath at a specified location in a mutable graphics path.

It panics if CGPathMoveToPoint is unavailable at run time; use TryCGPathMoveToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathMoveToPoint

func CGPathRelease

func CGPathRelease(path CGPathRef)

CGPathRelease decrements the retain count of a graphics path.

It panics if CGPathRelease is unavailable at run time; use TryCGPathRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathRelease

func CGPatternGetTypeID

func CGPatternGetTypeID() uint

CGPatternGetTypeID returns the type identifier for Core Graphics patterns.

It panics if CGPatternGetTypeID is unavailable at run time; use TryCGPatternGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPattern/typeID

func CGPatternRelease

func CGPatternRelease(pattern CGPatternRef)

CGPatternRelease decrements the retain count of a Core Graphics pattern.

It panics if CGPatternRelease is unavailable at run time; use TryCGPatternRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPatternRelease

func CGPointApplyAffineTransform

func CGPointApplyAffineTransform(point corefoundation.CGPoint, t corefoundation.CGAffineTransform) corefoundation.CGPoint

CGPointApplyAffineTransform returns the point resulting from an affine transformation of an existing point.

It panics if CGPointApplyAffineTransform is unavailable at run time; use TryCGPointApplyAffineTransform to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPointApplyAffineTransform(_:_:)

func CGPointCreateDictionaryRepresentation

func CGPointCreateDictionaryRepresentation(point corefoundation.CGPoint) corefoundation.CFDictionaryRef

CGPointCreateDictionaryRepresentation returns a dictionary representation of the specified point.

It panics if CGPointCreateDictionaryRepresentation is unavailable at run time; use TryCGPointCreateDictionaryRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPointCreateDictionaryRepresentation(_:)

func CGPointEqualToPoint

func CGPointEqualToPoint(point1 corefoundation.CGPoint, point2 corefoundation.CGPoint) bool

CGPointEqualToPoint returns whether two points are equal.

It panics if CGPointEqualToPoint is unavailable at run time; use TryCGPointEqualToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPointEqualToPoint(_:_:)

func CGPointMakeWithDictionaryRepresentation

func CGPointMakeWithDictionaryRepresentation(dict corefoundation.CFDictionaryRef, point *corefoundation.CGPoint) bool

CGPointMakeWithDictionaryRepresentation fills in a point using the contents of the specified dictionary.

It panics if CGPointMakeWithDictionaryRepresentation is unavailable at run time; use TryCGPointMakeWithDictionaryRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPointMakeWithDictionaryRepresentation(_:_:)

func CGPreflightListenEventAccess

func CGPreflightListenEventAccess() bool

CGPreflightListenEventAccess.

It panics if CGPreflightListenEventAccess is unavailable at run time; use TryCGPreflightListenEventAccess to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPreflightListenEventAccess()

func CGPreflightPostEventAccess

func CGPreflightPostEventAccess() bool

CGPreflightPostEventAccess.

It panics if CGPreflightPostEventAccess is unavailable at run time; use TryCGPreflightPostEventAccess to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPreflightPostEventAccess()

func CGPreflightScreenCaptureAccess

func CGPreflightScreenCaptureAccess() bool

CGPreflightScreenCaptureAccess.

It panics if CGPreflightScreenCaptureAccess is unavailable at run time; use TryCGPreflightScreenCaptureAccess to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPreflightScreenCaptureAccess()

func CGRectApplyAffineTransform

func CGRectApplyAffineTransform(rect corefoundation.CGRect, t corefoundation.CGAffineTransform) corefoundation.CGRect

CGRectApplyAffineTransform applies an affine transform to a rectangle.

It panics if CGRectApplyAffineTransform is unavailable at run time; use TryCGRectApplyAffineTransform to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectApplyAffineTransform(_:_:)

func CGRectContainsPoint

func CGRectContainsPoint(rect corefoundation.CGRect, point corefoundation.CGPoint) bool

CGRectContainsPoint returns whether a rectangle contains a specified point.

It panics if CGRectContainsPoint is unavailable at run time; use TryCGRectContainsPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectContainsPoint(_:_:)

func CGRectContainsRect

func CGRectContainsRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool

CGRectContainsRect returns whether the first rectangle contains the second rectangle.

It panics if CGRectContainsRect is unavailable at run time; use TryCGRectContainsRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectContainsRect(_:_:)

func CGRectCreateDictionaryRepresentation

func CGRectCreateDictionaryRepresentation(arg0 corefoundation.CGRect) corefoundation.CFDictionaryRef

CGRectCreateDictionaryRepresentation returns a dictionary representation of the provided rectangle.

It panics if CGRectCreateDictionaryRepresentation is unavailable at run time; use TryCGRectCreateDictionaryRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectCreateDictionaryRepresentation(_:)

func CGRectDivide

func CGRectDivide(rect corefoundation.CGRect, slice *corefoundation.CGRect, remainder *corefoundation.CGRect, amount float64, edge CGRectEdge)

CGRectDivide divides a source rectangle into two component rectangles.

It panics if CGRectDivide is unavailable at run time; use TryCGRectDivide to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectDivide

func CGRectEqualToRect

func CGRectEqualToRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool

CGRectEqualToRect returns whether two rectangles are equal in size and position.

It panics if CGRectEqualToRect is unavailable at run time; use TryCGRectEqualToRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectEqualToRect(_:_:)

func CGRectGetHeight

func CGRectGetHeight(rect corefoundation.CGRect) float64

CGRectGetHeight returns the height of a rectangle.

It panics if CGRectGetHeight is unavailable at run time; use TryCGRectGetHeight to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectGetHeight(_:)

func CGRectGetMaxX

func CGRectGetMaxX(rect corefoundation.CGRect) float64

CGRectGetMaxX returns the largest value of the x-coordinate for the rectangle.

It panics if CGRectGetMaxX is unavailable at run time; use TryCGRectGetMaxX to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectGetMaxX(_:)

func CGRectGetMaxY

func CGRectGetMaxY(rect corefoundation.CGRect) float64

CGRectGetMaxY returns the largest value for the y-coordinate of the rectangle.

It panics if CGRectGetMaxY is unavailable at run time; use TryCGRectGetMaxY to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectGetMaxY(_:)

func CGRectGetMidX

func CGRectGetMidX(rect corefoundation.CGRect) float64

CGRectGetMidX returns the x- coordinate that establishes the center of a rectangle.

It panics if CGRectGetMidX is unavailable at run time; use TryCGRectGetMidX to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectGetMidX(_:)

func CGRectGetMidY

func CGRectGetMidY(rect corefoundation.CGRect) float64

CGRectGetMidY returns the y-coordinate that establishes the center of the rectangle.

It panics if CGRectGetMidY is unavailable at run time; use TryCGRectGetMidY to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectGetMidY(_:)

func CGRectGetMinX

func CGRectGetMinX(rect corefoundation.CGRect) float64

CGRectGetMinX returns the smallest value for the x-coordinate of the rectangle.

It panics if CGRectGetMinX is unavailable at run time; use TryCGRectGetMinX to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectGetMinX(_:)

func CGRectGetMinY

func CGRectGetMinY(rect corefoundation.CGRect) float64

CGRectGetMinY returns the smallest value for the y-coordinate of the rectangle.

It panics if CGRectGetMinY is unavailable at run time; use TryCGRectGetMinY to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectGetMinY(_:)

func CGRectGetWidth

func CGRectGetWidth(rect corefoundation.CGRect) float64

CGRectGetWidth returns the width of a rectangle.

It panics if CGRectGetWidth is unavailable at run time; use TryCGRectGetWidth to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectGetWidth(_:)

func CGRectInset

func CGRectInset(rect corefoundation.CGRect, dx float64, dy float64) corefoundation.CGRect

CGRectInset returns a rectangle that is smaller or larger than the source rectangle, with the same center point.

It panics if CGRectInset is unavailable at run time; use TryCGRectInset to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectInset(_:_:_:)

func CGRectIntegral

func CGRectIntegral(rect corefoundation.CGRect) corefoundation.CGRect

CGRectIntegral returns the smallest rectangle that results from converting the source rectangle values to integers.

It panics if CGRectIntegral is unavailable at run time; use TryCGRectIntegral to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectIntegral(_:)

func CGRectIntersection

CGRectIntersection returns the intersection of two rectangles.

It panics if CGRectIntersection is unavailable at run time; use TryCGRectIntersection to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectIntersection(_:_:)

func CGRectIntersectsRect

func CGRectIntersectsRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool

CGRectIntersectsRect returns whether two rectangles intersect.

It panics if CGRectIntersectsRect is unavailable at run time; use TryCGRectIntersectsRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectIntersectsRect(_:_:)

func CGRectIsEmpty

func CGRectIsEmpty(rect corefoundation.CGRect) bool

CGRectIsEmpty returns whether a rectangle has zero width or height, or is a null rectangle.

It panics if CGRectIsEmpty is unavailable at run time; use TryCGRectIsEmpty to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectIsEmpty(_:)

func CGRectIsInfinite

func CGRectIsInfinite(rect corefoundation.CGRect) bool

CGRectIsInfinite returns whether a rectangle is infinite.

It panics if CGRectIsInfinite is unavailable at run time; use TryCGRectIsInfinite to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectIsInfinite(_:)

func CGRectIsNull

func CGRectIsNull(rect corefoundation.CGRect) bool

CGRectIsNull returns whether the rectangle is equal to the null rectangle.

It panics if CGRectIsNull is unavailable at run time; use TryCGRectIsNull to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectIsNull(_:)

func CGRectMakeWithDictionaryRepresentation

func CGRectMakeWithDictionaryRepresentation(dict corefoundation.CFDictionaryRef, rect *corefoundation.CGRect) bool

CGRectMakeWithDictionaryRepresentation fills in a rectangle using the contents of the specified dictionary.

It panics if CGRectMakeWithDictionaryRepresentation is unavailable at run time; use TryCGRectMakeWithDictionaryRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectMakeWithDictionaryRepresentation(_:_:)

func CGRectOffset

func CGRectOffset(rect corefoundation.CGRect, dx float64, dy float64) corefoundation.CGRect

CGRectOffset returns a rectangle with an origin that is offset from that of the source rectangle.

It panics if CGRectOffset is unavailable at run time; use TryCGRectOffset to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectOffset(_:_:_:)

func CGRectStandardize

func CGRectStandardize(rect corefoundation.CGRect) corefoundation.CGRect

CGRectStandardize returns a rectangle with a positive width and height.

It panics if CGRectStandardize is unavailable at run time; use TryCGRectStandardize to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectStandardize(_:)

func CGRectUnion

CGRectUnion returns the smallest rectangle that contains the two source rectangles.

It panics if CGRectUnion is unavailable at run time; use TryCGRectUnion to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectUnion(_:_:)

func CGRenderingBufferLockBytePtr

func CGRenderingBufferLockBytePtr(provider CGRenderingBufferProviderRef) unsafe.Pointer

CGRenderingBufferLockBytePtr.

It panics if CGRenderingBufferLockBytePtr is unavailable at run time; use TryCGRenderingBufferLockBytePtr to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRenderingBufferLockBytePtr

func CGRenderingBufferProviderGetSize

func CGRenderingBufferProviderGetSize(provider CGRenderingBufferProviderRef) uintptr

CGRenderingBufferProviderGetSize.

It panics if CGRenderingBufferProviderGetSize is unavailable at run time; use TryCGRenderingBufferProviderGetSize to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRenderingBufferProviderGetSize

func CGRenderingBufferProviderGetTypeID

func CGRenderingBufferProviderGetTypeID() uint

CGRenderingBufferProviderGetTypeID.

It panics if CGRenderingBufferProviderGetTypeID is unavailable at run time; use TryCGRenderingBufferProviderGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRenderingBufferProviderGetTypeID

func CGRenderingBufferUnlockBytePtr

func CGRenderingBufferUnlockBytePtr(provider CGRenderingBufferProviderRef)

CGRenderingBufferUnlockBytePtr.

It panics if CGRenderingBufferUnlockBytePtr is unavailable at run time; use TryCGRenderingBufferUnlockBytePtr to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRenderingBufferUnlockBytePtr

func CGRequestListenEventAccess

func CGRequestListenEventAccess() bool

CGRequestListenEventAccess.

It panics if CGRequestListenEventAccess is unavailable at run time; use TryCGRequestListenEventAccess to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRequestListenEventAccess()

func CGRequestPostEventAccess

func CGRequestPostEventAccess() bool

CGRequestPostEventAccess.

It panics if CGRequestPostEventAccess is unavailable at run time; use TryCGRequestPostEventAccess to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRequestPostEventAccess()

func CGRequestScreenCaptureAccess

func CGRequestScreenCaptureAccess() bool

CGRequestScreenCaptureAccess.

It panics if CGRequestScreenCaptureAccess is unavailable at run time; use TryCGRequestScreenCaptureAccess to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRequestScreenCaptureAccess()

func CGRestorePermanentDisplayConfiguration

func CGRestorePermanentDisplayConfiguration()

CGRestorePermanentDisplayConfiguration restores the permanent display configuration settings for the current user.

It panics if CGRestorePermanentDisplayConfiguration is unavailable at run time; use TryCGRestorePermanentDisplayConfiguration to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRestorePermanentDisplayConfiguration()

func CGSessionCopyCurrentDictionary

func CGSessionCopyCurrentDictionary() corefoundation.CFDictionaryRef

CGSessionCopyCurrentDictionary returns information about the caller’s window server session.

It panics if CGSessionCopyCurrentDictionary is unavailable at run time; use TryCGSessionCopyCurrentDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGSessionCopyCurrentDictionary()

func CGShadingGetContentHeadroom

func CGShadingGetContentHeadroom(shading CGShadingRef) float32

CGShadingGetContentHeadroom.

It panics if CGShadingGetContentHeadroom is unavailable at run time; use TryCGShadingGetContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading/contentHeadroom

func CGShadingGetTypeID

func CGShadingGetTypeID() uint

CGShadingGetTypeID returns the Core Foundation type identifier for Core Graphics shading objects.

It panics if CGShadingGetTypeID is unavailable at run time; use TryCGShadingGetTypeID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading/typeID

func CGShadingRelease

func CGShadingRelease(shading CGShadingRef)

CGShadingRelease decrements the retain count of a shading object.

It panics if CGShadingRelease is unavailable at run time; use TryCGShadingRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShadingRelease

func CGSizeApplyAffineTransform

func CGSizeApplyAffineTransform(size corefoundation.CGSize, t corefoundation.CGAffineTransform) corefoundation.CGSize

CGSizeApplyAffineTransform returns the height and width resulting from a transformation of an existing height and width.

It panics if CGSizeApplyAffineTransform is unavailable at run time; use TryCGSizeApplyAffineTransform to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGSizeApplyAffineTransform(_:_:)

func CGSizeCreateDictionaryRepresentation

func CGSizeCreateDictionaryRepresentation(size corefoundation.CGSize) corefoundation.CFDictionaryRef

CGSizeCreateDictionaryRepresentation returns a dictionary representation of the specified size.

It panics if CGSizeCreateDictionaryRepresentation is unavailable at run time; use TryCGSizeCreateDictionaryRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGSizeCreateDictionaryRepresentation(_:)

func CGSizeEqualToSize

func CGSizeEqualToSize(size1 corefoundation.CGSize, size2 corefoundation.CGSize) bool

CGSizeEqualToSize returns whether two sizes are equal.

It panics if CGSizeEqualToSize is unavailable at run time; use TryCGSizeEqualToSize to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGSizeEqualToSize(_:_:)

func CGSizeMakeWithDictionaryRepresentation

func CGSizeMakeWithDictionaryRepresentation(dict corefoundation.CFDictionaryRef, size *corefoundation.CGSize) bool

CGSizeMakeWithDictionaryRepresentation fills in a size using the contents of the specified dictionary.

It panics if CGSizeMakeWithDictionaryRepresentation is unavailable at run time; use TryCGSizeMakeWithDictionaryRepresentation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGSizeMakeWithDictionaryRepresentation(_:_:)

func CGWindowListCopyWindowInfo

func CGWindowListCopyWindowInfo(option CGWindowListOption, relativeToWindow CGWindowID) corefoundation.CFArrayRef

CGWindowListCopyWindowInfo generates and returns information about the selected windows in the current user session.

It panics if CGWindowListCopyWindowInfo is unavailable at run time; use TryCGWindowListCopyWindowInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowListCopyWindowInfo(_:_:)

func CGWindowListCreate

func CGWindowListCreate(option CGWindowListOption, relativeToWindow CGWindowID) corefoundation.CFArrayRef

CGWindowListCreate returns the list of window IDs associated with the specified windows in the current user session.

It panics if CGWindowListCreate is unavailable at run time; use TryCGWindowListCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowListCreate

func CGWindowListCreateDescriptionFromArray

func CGWindowListCreateDescriptionFromArray(windowArray corefoundation.CFArrayRef) corefoundation.CFArrayRef

CGWindowListCreateDescriptionFromArray generates and returns information about windows with the specified window IDs.

It panics if CGWindowListCreateDescriptionFromArray is unavailable at run time; use TryCGWindowListCreateDescriptionFromArray to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowListCreateDescriptionFromArray(_:)

func CGWindowServerCreateServerPort

func CGWindowServerCreateServerPort() corefoundation.CFMachPort

CGWindowServerCreateServerPort.

It panics if CGWindowServerCreateServerPort is unavailable at run time; use TryCGWindowServerCreateServerPort to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowServerCreateServerPort()

func NewCGDisplayStreamFrameAvailableHandlerBlock added in v0.6.16

func NewCGDisplayStreamFrameAvailableHandlerBlock(handler CGDisplayStreamFrameAvailableHandler) (objc.ID, func())

NewCGDisplayStreamFrameAvailableHandlerBlock wraps a Go CGDisplayStreamFrameAvailableHandler as an Objective-C block. The caller must defer the returned cleanup function.

func NewCGPathApplyBlock added in v0.6.16

func NewCGPathApplyBlock(handler CGPathApplyBlock) (objc.ID, func())

NewCGPathApplyBlock wraps a Go CGPathApplyBlock as an Objective-C block. The caller must defer the returned cleanup function.

func SymbolAddress

func SymbolAddress(name string) (uintptr, error)

SymbolAddress returns the address of name in CoreGraphics, whether or not this package generated a binding for it.

What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.

The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.

func TryCGAffineTransformConcat

TryCGAffineTransformConcat is like CGAffineTransformConcat but returns an error instead of panicking if CGAffineTransformConcat is unavailable at run time.

func TryCGAffineTransformDecompose

func TryCGAffineTransformDecompose(transform corefoundation.CGAffineTransform) (uintptr, error)

TryCGAffineTransformDecompose is like CGAffineTransformDecompose but returns an error instead of panicking if CGAffineTransformDecompose is unavailable at run time.

func TryCGAffineTransformEqualToTransform

func TryCGAffineTransformEqualToTransform(t1 corefoundation.CGAffineTransform, t2 corefoundation.CGAffineTransform) (bool, error)

TryCGAffineTransformEqualToTransform is like CGAffineTransformEqualToTransform but returns an error instead of panicking if CGAffineTransformEqualToTransform is unavailable at run time.

func TryCGAffineTransformInvert

TryCGAffineTransformInvert is like CGAffineTransformInvert but returns an error instead of panicking if CGAffineTransformInvert is unavailable at run time.

func TryCGAffineTransformIsIdentity

func TryCGAffineTransformIsIdentity(t corefoundation.CGAffineTransform) (bool, error)

TryCGAffineTransformIsIdentity is like CGAffineTransformIsIdentity but returns an error instead of panicking if CGAffineTransformIsIdentity is unavailable at run time.

func TryCGAffineTransformMake

func TryCGAffineTransformMake(a float64, b float64, c float64, d float64, tx float64, ty float64) (corefoundation.CGAffineTransform, error)

TryCGAffineTransformMake is like CGAffineTransformMake but returns an error instead of panicking if CGAffineTransformMake is unavailable at run time.

func TryCGAffineTransformMakeRotation

func TryCGAffineTransformMakeRotation(angle float64) (corefoundation.CGAffineTransform, error)

TryCGAffineTransformMakeRotation is like CGAffineTransformMakeRotation but returns an error instead of panicking if CGAffineTransformMakeRotation is unavailable at run time.

func TryCGAffineTransformMakeScale

func TryCGAffineTransformMakeScale(sx float64, sy float64) (corefoundation.CGAffineTransform, error)

TryCGAffineTransformMakeScale is like CGAffineTransformMakeScale but returns an error instead of panicking if CGAffineTransformMakeScale is unavailable at run time.

func TryCGAffineTransformMakeTranslation

func TryCGAffineTransformMakeTranslation(tx float64, ty float64) (corefoundation.CGAffineTransform, error)

TryCGAffineTransformMakeTranslation is like CGAffineTransformMakeTranslation but returns an error instead of panicking if CGAffineTransformMakeTranslation is unavailable at run time.

func TryCGAffineTransformMakeWithComponents

func TryCGAffineTransformMakeWithComponents(components uintptr) (corefoundation.CGAffineTransform, error)

TryCGAffineTransformMakeWithComponents is like CGAffineTransformMakeWithComponents but returns an error instead of panicking if CGAffineTransformMakeWithComponents is unavailable at run time.

func TryCGAffineTransformRotate

func TryCGAffineTransformRotate(t corefoundation.CGAffineTransform, angle float64) (corefoundation.CGAffineTransform, error)

TryCGAffineTransformRotate is like CGAffineTransformRotate but returns an error instead of panicking if CGAffineTransformRotate is unavailable at run time.

func TryCGAffineTransformScale

TryCGAffineTransformScale is like CGAffineTransformScale but returns an error instead of panicking if CGAffineTransformScale is unavailable at run time.

func TryCGAffineTransformTranslate

func TryCGAffineTransformTranslate(t corefoundation.CGAffineTransform, tx float64, ty float64) (corefoundation.CGAffineTransform, error)

TryCGAffineTransformTranslate is like CGAffineTransformTranslate but returns an error instead of panicking if CGAffineTransformTranslate is unavailable at run time.

func TryCGBitmapContextGetBitsPerComponent

func TryCGBitmapContextGetBitsPerComponent(context CGContextRef) (uintptr, error)

TryCGBitmapContextGetBitsPerComponent is like CGBitmapContextGetBitsPerComponent but returns an error instead of panicking if CGBitmapContextGetBitsPerComponent is unavailable at run time.

func TryCGBitmapContextGetBitsPerPixel

func TryCGBitmapContextGetBitsPerPixel(context CGContextRef) (uintptr, error)

TryCGBitmapContextGetBitsPerPixel is like CGBitmapContextGetBitsPerPixel but returns an error instead of panicking if CGBitmapContextGetBitsPerPixel is unavailable at run time.

func TryCGBitmapContextGetBytesPerRow

func TryCGBitmapContextGetBytesPerRow(context CGContextRef) (uintptr, error)

TryCGBitmapContextGetBytesPerRow is like CGBitmapContextGetBytesPerRow but returns an error instead of panicking if CGBitmapContextGetBytesPerRow is unavailable at run time.

func TryCGBitmapContextGetData

func TryCGBitmapContextGetData(context CGContextRef) (unsafe.Pointer, error)

TryCGBitmapContextGetData is like CGBitmapContextGetData but returns an error instead of panicking if CGBitmapContextGetData is unavailable at run time.

func TryCGBitmapContextGetHeight

func TryCGBitmapContextGetHeight(context CGContextRef) (uintptr, error)

TryCGBitmapContextGetHeight is like CGBitmapContextGetHeight but returns an error instead of panicking if CGBitmapContextGetHeight is unavailable at run time.

func TryCGBitmapContextGetWidth

func TryCGBitmapContextGetWidth(context CGContextRef) (uintptr, error)

TryCGBitmapContextGetWidth is like CGBitmapContextGetWidth but returns an error instead of panicking if CGBitmapContextGetWidth is unavailable at run time.

func TryCGColorConversionInfoConvertData

func TryCGColorConversionInfoConvertData(info CGColorConversionInfoRef, width uintptr, height uintptr, dst_data unsafe.Pointer, dst_format CGColorBufferFormat, src_data unsafe.Pointer, src_format CGColorBufferFormat, options corefoundation.CFDictionaryRef) (bool, error)

TryCGColorConversionInfoConvertData is like CGColorConversionInfoConvertData but returns an error instead of panicking if CGColorConversionInfoConvertData is unavailable at run time.

func TryCGColorConversionInfoGetTypeID

func TryCGColorConversionInfoGetTypeID() (uint, error)

TryCGColorConversionInfoGetTypeID is like CGColorConversionInfoGetTypeID but returns an error instead of panicking if CGColorConversionInfoGetTypeID is unavailable at run time.

func TryCGColorEqualToColor

func TryCGColorEqualToColor(color1 CGColorRef, color2 CGColorRef) (bool, error)

TryCGColorEqualToColor is like CGColorEqualToColor but returns an error instead of panicking if CGColorEqualToColor is unavailable at run time.

func TryCGColorGetAlpha

func TryCGColorGetAlpha(color CGColorRef) (float64, error)

TryCGColorGetAlpha is like CGColorGetAlpha but returns an error instead of panicking if CGColorGetAlpha is unavailable at run time.

func TryCGColorGetComponents

func TryCGColorGetComponents(color CGColorRef) (*float64, error)

TryCGColorGetComponents is like CGColorGetComponents but returns an error instead of panicking if CGColorGetComponents is unavailable at run time.

func TryCGColorGetContentHeadroom

func TryCGColorGetContentHeadroom(color CGColorRef) (float32, error)

TryCGColorGetContentHeadroom is like CGColorGetContentHeadroom but returns an error instead of panicking if CGColorGetContentHeadroom is unavailable at run time.

func TryCGColorGetNumberOfComponents

func TryCGColorGetNumberOfComponents(color CGColorRef) (uintptr, error)

TryCGColorGetNumberOfComponents is like CGColorGetNumberOfComponents but returns an error instead of panicking if CGColorGetNumberOfComponents is unavailable at run time.

func TryCGColorGetTypeID

func TryCGColorGetTypeID() (uint, error)

TryCGColorGetTypeID is like CGColorGetTypeID but returns an error instead of panicking if CGColorGetTypeID is unavailable at run time.

func TryCGColorRelease

func TryCGColorRelease(color CGColorRef) error

TryCGColorRelease is like CGColorRelease but returns an error instead of panicking if CGColorRelease is unavailable at run time.

func TryCGColorSpaceCopyICCData

func TryCGColorSpaceCopyICCData(space CGColorSpaceRef) (corefoundation.CFDataRef, error)

TryCGColorSpaceCopyICCData is like CGColorSpaceCopyICCData but returns an error instead of panicking if CGColorSpaceCopyICCData is unavailable at run time.

func TryCGColorSpaceCopyICCProfile

func TryCGColorSpaceCopyICCProfile(space CGColorSpaceRef) (corefoundation.CFDataRef, error)

TryCGColorSpaceCopyICCProfile is like CGColorSpaceCopyICCProfile but returns an error instead of panicking if CGColorSpaceCopyICCProfile is unavailable at run time.

func TryCGColorSpaceCopyName

func TryCGColorSpaceCopyName(space CGColorSpaceRef) (corefoundation.CFStringRef, error)

TryCGColorSpaceCopyName is like CGColorSpaceCopyName but returns an error instead of panicking if CGColorSpaceCopyName is unavailable at run time.

func TryCGColorSpaceCopyPropertyList

func TryCGColorSpaceCopyPropertyList(space CGColorSpaceRef) (corefoundation.CFPropertyListRef, error)

TryCGColorSpaceCopyPropertyList is like CGColorSpaceCopyPropertyList but returns an error instead of panicking if CGColorSpaceCopyPropertyList is unavailable at run time.

func TryCGColorSpaceGetColorTable

func TryCGColorSpaceGetColorTable(space CGColorSpaceRef, table []byte) error

TryCGColorSpaceGetColorTable is like CGColorSpaceGetColorTable but returns an error instead of panicking if CGColorSpaceGetColorTable is unavailable at run time.

func TryCGColorSpaceGetColorTableCount

func TryCGColorSpaceGetColorTableCount(space CGColorSpaceRef) (uintptr, error)

TryCGColorSpaceGetColorTableCount is like CGColorSpaceGetColorTableCount but returns an error instead of panicking if CGColorSpaceGetColorTableCount is unavailable at run time.

func TryCGColorSpaceGetName

func TryCGColorSpaceGetName(space CGColorSpaceRef) (corefoundation.CFStringRef, error)

TryCGColorSpaceGetName is like CGColorSpaceGetName but returns an error instead of panicking if CGColorSpaceGetName is unavailable at run time.

func TryCGColorSpaceGetNumberOfComponents

func TryCGColorSpaceGetNumberOfComponents(space CGColorSpaceRef) (uintptr, error)

TryCGColorSpaceGetNumberOfComponents is like CGColorSpaceGetNumberOfComponents but returns an error instead of panicking if CGColorSpaceGetNumberOfComponents is unavailable at run time.

func TryCGColorSpaceGetTypeID

func TryCGColorSpaceGetTypeID() (uint, error)

TryCGColorSpaceGetTypeID is like CGColorSpaceGetTypeID but returns an error instead of panicking if CGColorSpaceGetTypeID is unavailable at run time.

func TryCGColorSpaceIsHDR

func TryCGColorSpaceIsHDR(arg0 CGColorSpaceRef) (bool, error)

TryCGColorSpaceIsHDR is like CGColorSpaceIsHDR but returns an error instead of panicking if CGColorSpaceIsHDR is unavailable at run time.

func TryCGColorSpaceIsHLGBased

func TryCGColorSpaceIsHLGBased(s CGColorSpaceRef) (bool, error)

TryCGColorSpaceIsHLGBased is like CGColorSpaceIsHLGBased but returns an error instead of panicking if CGColorSpaceIsHLGBased is unavailable at run time.

func TryCGColorSpaceIsPQBased

func TryCGColorSpaceIsPQBased(s CGColorSpaceRef) (bool, error)

TryCGColorSpaceIsPQBased is like CGColorSpaceIsPQBased but returns an error instead of panicking if CGColorSpaceIsPQBased is unavailable at run time.

func TryCGColorSpaceIsWideGamutRGB

func TryCGColorSpaceIsWideGamutRGB(arg0 CGColorSpaceRef) (bool, error)

TryCGColorSpaceIsWideGamutRGB is like CGColorSpaceIsWideGamutRGB but returns an error instead of panicking if CGColorSpaceIsWideGamutRGB is unavailable at run time.

func TryCGColorSpaceRelease

func TryCGColorSpaceRelease(space CGColorSpaceRef) error

TryCGColorSpaceRelease is like CGColorSpaceRelease but returns an error instead of panicking if CGColorSpaceRelease is unavailable at run time.

func TryCGColorSpaceSupportsOutput

func TryCGColorSpaceSupportsOutput(space CGColorSpaceRef) (bool, error)

TryCGColorSpaceSupportsOutput is like CGColorSpaceSupportsOutput but returns an error instead of panicking if CGColorSpaceSupportsOutput is unavailable at run time.

func TryCGColorSpaceUsesExtendedRange

func TryCGColorSpaceUsesExtendedRange(space CGColorSpaceRef) (bool, error)

TryCGColorSpaceUsesExtendedRange is like CGColorSpaceUsesExtendedRange but returns an error instead of panicking if CGColorSpaceUsesExtendedRange is unavailable at run time.

func TryCGColorSpaceUsesITUR_2100TF

func TryCGColorSpaceUsesITUR_2100TF(arg0 CGColorSpaceRef) (bool, error)

TryCGColorSpaceUsesITUR_2100TF is like CGColorSpaceUsesITUR_2100TF but returns an error instead of panicking if CGColorSpaceUsesITUR_2100TF is unavailable at run time.

func TryCGContextAddArc

func TryCGContextAddArc(c CGContextRef, x float64, y float64, radius float64, startAngle float64, endAngle float64, clockwise int32) error

TryCGContextAddArc is like CGContextAddArc but returns an error instead of panicking if CGContextAddArc is unavailable at run time.

func TryCGContextAddArcToPoint

func TryCGContextAddArcToPoint(c CGContextRef, x1 float64, y1 float64, x2 float64, y2 float64, radius float64) error

TryCGContextAddArcToPoint is like CGContextAddArcToPoint but returns an error instead of panicking if CGContextAddArcToPoint is unavailable at run time.

func TryCGContextAddCurveToPoint

func TryCGContextAddCurveToPoint(c CGContextRef, cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64) error

TryCGContextAddCurveToPoint is like CGContextAddCurveToPoint but returns an error instead of panicking if CGContextAddCurveToPoint is unavailable at run time.

func TryCGContextAddEllipseInRect

func TryCGContextAddEllipseInRect(c CGContextRef, rect corefoundation.CGRect) error

TryCGContextAddEllipseInRect is like CGContextAddEllipseInRect but returns an error instead of panicking if CGContextAddEllipseInRect is unavailable at run time.

func TryCGContextAddLineToPoint

func TryCGContextAddLineToPoint(c CGContextRef, x float64, y float64) error

TryCGContextAddLineToPoint is like CGContextAddLineToPoint but returns an error instead of panicking if CGContextAddLineToPoint is unavailable at run time.

func TryCGContextAddLines

func TryCGContextAddLines(c CGContextRef, points *corefoundation.CGPoint, count uintptr) error

TryCGContextAddLines is like CGContextAddLines but returns an error instead of panicking if CGContextAddLines is unavailable at run time.

func TryCGContextAddPath

func TryCGContextAddPath(c CGContextRef, path CGPathRef) error

TryCGContextAddPath is like CGContextAddPath but returns an error instead of panicking if CGContextAddPath is unavailable at run time.

func TryCGContextAddQuadCurveToPoint

func TryCGContextAddQuadCurveToPoint(c CGContextRef, cpx float64, cpy float64, x float64, y float64) error

TryCGContextAddQuadCurveToPoint is like CGContextAddQuadCurveToPoint but returns an error instead of panicking if CGContextAddQuadCurveToPoint is unavailable at run time.

func TryCGContextAddRect

func TryCGContextAddRect(c CGContextRef, rect corefoundation.CGRect) error

TryCGContextAddRect is like CGContextAddRect but returns an error instead of panicking if CGContextAddRect is unavailable at run time.

func TryCGContextAddRects

func TryCGContextAddRects(c CGContextRef, rects *corefoundation.CGRect, count uintptr) error

TryCGContextAddRects is like CGContextAddRects but returns an error instead of panicking if CGContextAddRects is unavailable at run time.

func TryCGContextBeginPage

func TryCGContextBeginPage(c CGContextRef, mediaBox *corefoundation.CGRect) error

TryCGContextBeginPage is like CGContextBeginPage but returns an error instead of panicking if CGContextBeginPage is unavailable at run time.

func TryCGContextBeginPath

func TryCGContextBeginPath(c CGContextRef) error

TryCGContextBeginPath is like CGContextBeginPath but returns an error instead of panicking if CGContextBeginPath is unavailable at run time.

func TryCGContextBeginTransparencyLayer

func TryCGContextBeginTransparencyLayer(c CGContextRef, auxiliaryInfo corefoundation.CFDictionaryRef) error

TryCGContextBeginTransparencyLayer is like CGContextBeginTransparencyLayer but returns an error instead of panicking if CGContextBeginTransparencyLayer is unavailable at run time.

func TryCGContextBeginTransparencyLayerWithRect

func TryCGContextBeginTransparencyLayerWithRect(c CGContextRef, rect corefoundation.CGRect, auxInfo corefoundation.CFDictionaryRef) error

TryCGContextBeginTransparencyLayerWithRect is like CGContextBeginTransparencyLayerWithRect but returns an error instead of panicking if CGContextBeginTransparencyLayerWithRect is unavailable at run time.

func TryCGContextClearRect

func TryCGContextClearRect(c CGContextRef, rect corefoundation.CGRect) error

TryCGContextClearRect is like CGContextClearRect but returns an error instead of panicking if CGContextClearRect is unavailable at run time.

func TryCGContextClip

func TryCGContextClip(c CGContextRef) error

TryCGContextClip is like CGContextClip but returns an error instead of panicking if CGContextClip is unavailable at run time.

func TryCGContextClipToMask

func TryCGContextClipToMask(c CGContextRef, rect corefoundation.CGRect, mask CGImageRef) error

TryCGContextClipToMask is like CGContextClipToMask but returns an error instead of panicking if CGContextClipToMask is unavailable at run time.

func TryCGContextClipToRect

func TryCGContextClipToRect(c CGContextRef, rect corefoundation.CGRect) error

TryCGContextClipToRect is like CGContextClipToRect but returns an error instead of panicking if CGContextClipToRect is unavailable at run time.

func TryCGContextClipToRects

func TryCGContextClipToRects(c CGContextRef, rects *corefoundation.CGRect, count uintptr) error

TryCGContextClipToRects is like CGContextClipToRects but returns an error instead of panicking if CGContextClipToRects is unavailable at run time.

func TryCGContextClosePath

func TryCGContextClosePath(c CGContextRef) error

TryCGContextClosePath is like CGContextClosePath but returns an error instead of panicking if CGContextClosePath is unavailable at run time.

func TryCGContextConcatCTM

func TryCGContextConcatCTM(c CGContextRef, transform corefoundation.CGAffineTransform) error

TryCGContextConcatCTM is like CGContextConcatCTM but returns an error instead of panicking if CGContextConcatCTM is unavailable at run time.

func TryCGContextConvertPointToDeviceSpace

func TryCGContextConvertPointToDeviceSpace(c CGContextRef, point corefoundation.CGPoint) (corefoundation.CGPoint, error)

TryCGContextConvertPointToDeviceSpace is like CGContextConvertPointToDeviceSpace but returns an error instead of panicking if CGContextConvertPointToDeviceSpace is unavailable at run time.

func TryCGContextConvertPointToUserSpace

func TryCGContextConvertPointToUserSpace(c CGContextRef, point corefoundation.CGPoint) (corefoundation.CGPoint, error)

TryCGContextConvertPointToUserSpace is like CGContextConvertPointToUserSpace but returns an error instead of panicking if CGContextConvertPointToUserSpace is unavailable at run time.

func TryCGContextConvertRectToDeviceSpace

func TryCGContextConvertRectToDeviceSpace(c CGContextRef, rect corefoundation.CGRect) (corefoundation.CGRect, error)

TryCGContextConvertRectToDeviceSpace is like CGContextConvertRectToDeviceSpace but returns an error instead of panicking if CGContextConvertRectToDeviceSpace is unavailable at run time.

func TryCGContextConvertRectToUserSpace

func TryCGContextConvertRectToUserSpace(c CGContextRef, rect corefoundation.CGRect) (corefoundation.CGRect, error)

TryCGContextConvertRectToUserSpace is like CGContextConvertRectToUserSpace but returns an error instead of panicking if CGContextConvertRectToUserSpace is unavailable at run time.

func TryCGContextConvertSizeToDeviceSpace

func TryCGContextConvertSizeToDeviceSpace(c CGContextRef, size corefoundation.CGSize) (corefoundation.CGSize, error)

TryCGContextConvertSizeToDeviceSpace is like CGContextConvertSizeToDeviceSpace but returns an error instead of panicking if CGContextConvertSizeToDeviceSpace is unavailable at run time.

func TryCGContextConvertSizeToUserSpace

func TryCGContextConvertSizeToUserSpace(c CGContextRef, size corefoundation.CGSize) (corefoundation.CGSize, error)

TryCGContextConvertSizeToUserSpace is like CGContextConvertSizeToUserSpace but returns an error instead of panicking if CGContextConvertSizeToUserSpace is unavailable at run time.

func TryCGContextDrawConicGradient

func TryCGContextDrawConicGradient(c CGContextRef, gradient CGGradientRef, center corefoundation.CGPoint, angle float64) error

TryCGContextDrawConicGradient is like CGContextDrawConicGradient but returns an error instead of panicking if CGContextDrawConicGradient is unavailable at run time.

func TryCGContextDrawImage

func TryCGContextDrawImage(c CGContextRef, rect corefoundation.CGRect, image CGImageRef) error

TryCGContextDrawImage is like CGContextDrawImage but returns an error instead of panicking if CGContextDrawImage is unavailable at run time.

func TryCGContextDrawImageApplyingToneMapping

func TryCGContextDrawImageApplyingToneMapping(c CGContextRef, r corefoundation.CGRect, image CGImageRef, method CGToneMapping, options corefoundation.CFDictionaryRef) (bool, error)

TryCGContextDrawImageApplyingToneMapping is like CGContextDrawImageApplyingToneMapping but returns an error instead of panicking if CGContextDrawImageApplyingToneMapping is unavailable at run time.

func TryCGContextDrawLayerAtPoint

func TryCGContextDrawLayerAtPoint(context CGContextRef, point corefoundation.CGPoint, layer CGLayerRef) error

TryCGContextDrawLayerAtPoint is like CGContextDrawLayerAtPoint but returns an error instead of panicking if CGContextDrawLayerAtPoint is unavailable at run time.

func TryCGContextDrawLayerInRect

func TryCGContextDrawLayerInRect(context CGContextRef, rect corefoundation.CGRect, layer CGLayerRef) error

TryCGContextDrawLayerInRect is like CGContextDrawLayerInRect but returns an error instead of panicking if CGContextDrawLayerInRect is unavailable at run time.

func TryCGContextDrawLinearGradient

func TryCGContextDrawLinearGradient(c CGContextRef, gradient CGGradientRef, startPoint corefoundation.CGPoint, endPoint corefoundation.CGPoint, options CGGradientDrawingOptions) error

TryCGContextDrawLinearGradient is like CGContextDrawLinearGradient but returns an error instead of panicking if CGContextDrawLinearGradient is unavailable at run time.

func TryCGContextDrawPDFDocument

func TryCGContextDrawPDFDocument(c CGContextRef, rect corefoundation.CGRect, document CGPDFDocumentRef, page int32) error

TryCGContextDrawPDFDocument is like CGContextDrawPDFDocument but returns an error instead of panicking if CGContextDrawPDFDocument is unavailable at run time.

func TryCGContextDrawPDFPage

func TryCGContextDrawPDFPage(c CGContextRef, page CGPDFPageRef) error

TryCGContextDrawPDFPage is like CGContextDrawPDFPage but returns an error instead of panicking if CGContextDrawPDFPage is unavailable at run time.

func TryCGContextDrawPath

func TryCGContextDrawPath(c CGContextRef, mode CGPathDrawingMode) error

TryCGContextDrawPath is like CGContextDrawPath but returns an error instead of panicking if CGContextDrawPath is unavailable at run time.

func TryCGContextDrawRadialGradient

func TryCGContextDrawRadialGradient(c CGContextRef, gradient CGGradientRef, startCenter corefoundation.CGPoint, startRadius float64, endCenter corefoundation.CGPoint, endRadius float64, options CGGradientDrawingOptions) error

TryCGContextDrawRadialGradient is like CGContextDrawRadialGradient but returns an error instead of panicking if CGContextDrawRadialGradient is unavailable at run time.

func TryCGContextDrawShading

func TryCGContextDrawShading(c CGContextRef, shading CGShadingRef) error

TryCGContextDrawShading is like CGContextDrawShading but returns an error instead of panicking if CGContextDrawShading is unavailable at run time.

func TryCGContextDrawTiledImage

func TryCGContextDrawTiledImage(c CGContextRef, rect corefoundation.CGRect, image CGImageRef) error

TryCGContextDrawTiledImage is like CGContextDrawTiledImage but returns an error instead of panicking if CGContextDrawTiledImage is unavailable at run time.

func TryCGContextEOClip

func TryCGContextEOClip(c CGContextRef) error

TryCGContextEOClip is like CGContextEOClip but returns an error instead of panicking if CGContextEOClip is unavailable at run time.

func TryCGContextEOFillPath

func TryCGContextEOFillPath(c CGContextRef) error

TryCGContextEOFillPath is like CGContextEOFillPath but returns an error instead of panicking if CGContextEOFillPath is unavailable at run time.

func TryCGContextEndPage

func TryCGContextEndPage(c CGContextRef) error

TryCGContextEndPage is like CGContextEndPage but returns an error instead of panicking if CGContextEndPage is unavailable at run time.

func TryCGContextEndTransparencyLayer

func TryCGContextEndTransparencyLayer(c CGContextRef) error

TryCGContextEndTransparencyLayer is like CGContextEndTransparencyLayer but returns an error instead of panicking if CGContextEndTransparencyLayer is unavailable at run time.

func TryCGContextFillEllipseInRect

func TryCGContextFillEllipseInRect(c CGContextRef, rect corefoundation.CGRect) error

TryCGContextFillEllipseInRect is like CGContextFillEllipseInRect but returns an error instead of panicking if CGContextFillEllipseInRect is unavailable at run time.

func TryCGContextFillPath

func TryCGContextFillPath(c CGContextRef) error

TryCGContextFillPath is like CGContextFillPath but returns an error instead of panicking if CGContextFillPath is unavailable at run time.

func TryCGContextFillRect

func TryCGContextFillRect(c CGContextRef, rect corefoundation.CGRect) error

TryCGContextFillRect is like CGContextFillRect but returns an error instead of panicking if CGContextFillRect is unavailable at run time.

func TryCGContextFillRects

func TryCGContextFillRects(c CGContextRef, rects *corefoundation.CGRect, count uintptr) error

TryCGContextFillRects is like CGContextFillRects but returns an error instead of panicking if CGContextFillRects is unavailable at run time.

func TryCGContextFlush

func TryCGContextFlush(c CGContextRef) error

TryCGContextFlush is like CGContextFlush but returns an error instead of panicking if CGContextFlush is unavailable at run time.

func TryCGContextGetCTM

func TryCGContextGetCTM(c CGContextRef) (corefoundation.CGAffineTransform, error)

TryCGContextGetCTM is like CGContextGetCTM but returns an error instead of panicking if CGContextGetCTM is unavailable at run time.

func TryCGContextGetClipBoundingBox

func TryCGContextGetClipBoundingBox(c CGContextRef) (corefoundation.CGRect, error)

TryCGContextGetClipBoundingBox is like CGContextGetClipBoundingBox but returns an error instead of panicking if CGContextGetClipBoundingBox is unavailable at run time.

func TryCGContextGetEDRTargetHeadroom

func TryCGContextGetEDRTargetHeadroom(c CGContextRef) (float32, error)

TryCGContextGetEDRTargetHeadroom is like CGContextGetEDRTargetHeadroom but returns an error instead of panicking if CGContextGetEDRTargetHeadroom is unavailable at run time.

func TryCGContextGetPathBoundingBox

func TryCGContextGetPathBoundingBox(c CGContextRef) (corefoundation.CGRect, error)

TryCGContextGetPathBoundingBox is like CGContextGetPathBoundingBox but returns an error instead of panicking if CGContextGetPathBoundingBox is unavailable at run time.

func TryCGContextGetPathCurrentPoint

func TryCGContextGetPathCurrentPoint(c CGContextRef) (corefoundation.CGPoint, error)

TryCGContextGetPathCurrentPoint is like CGContextGetPathCurrentPoint but returns an error instead of panicking if CGContextGetPathCurrentPoint is unavailable at run time.

func TryCGContextGetTextMatrix

func TryCGContextGetTextMatrix(c CGContextRef) (corefoundation.CGAffineTransform, error)

TryCGContextGetTextMatrix is like CGContextGetTextMatrix but returns an error instead of panicking if CGContextGetTextMatrix is unavailable at run time.

func TryCGContextGetTextPosition

func TryCGContextGetTextPosition(c CGContextRef) (corefoundation.CGPoint, error)

TryCGContextGetTextPosition is like CGContextGetTextPosition but returns an error instead of panicking if CGContextGetTextPosition is unavailable at run time.

func TryCGContextGetTypeID

func TryCGContextGetTypeID() (uint, error)

TryCGContextGetTypeID is like CGContextGetTypeID but returns an error instead of panicking if CGContextGetTypeID is unavailable at run time.

func TryCGContextGetUserSpaceToDeviceSpaceTransform

func TryCGContextGetUserSpaceToDeviceSpaceTransform(c CGContextRef) (corefoundation.CGAffineTransform, error)

TryCGContextGetUserSpaceToDeviceSpaceTransform is like CGContextGetUserSpaceToDeviceSpaceTransform but returns an error instead of panicking if CGContextGetUserSpaceToDeviceSpaceTransform is unavailable at run time.

func TryCGContextIsPathEmpty

func TryCGContextIsPathEmpty(c CGContextRef) (bool, error)

TryCGContextIsPathEmpty is like CGContextIsPathEmpty but returns an error instead of panicking if CGContextIsPathEmpty is unavailable at run time.

func TryCGContextMoveToPoint

func TryCGContextMoveToPoint(c CGContextRef, x float64, y float64) error

TryCGContextMoveToPoint is like CGContextMoveToPoint but returns an error instead of panicking if CGContextMoveToPoint is unavailable at run time.

func TryCGContextPathContainsPoint

func TryCGContextPathContainsPoint(c CGContextRef, point corefoundation.CGPoint, mode CGPathDrawingMode) (bool, error)

TryCGContextPathContainsPoint is like CGContextPathContainsPoint but returns an error instead of panicking if CGContextPathContainsPoint is unavailable at run time.

func TryCGContextRelease

func TryCGContextRelease(c CGContextRef) error

TryCGContextRelease is like CGContextRelease but returns an error instead of panicking if CGContextRelease is unavailable at run time.

func TryCGContextReplacePathWithStrokedPath

func TryCGContextReplacePathWithStrokedPath(c CGContextRef) error

TryCGContextReplacePathWithStrokedPath is like CGContextReplacePathWithStrokedPath but returns an error instead of panicking if CGContextReplacePathWithStrokedPath is unavailable at run time.

func TryCGContextResetClip

func TryCGContextResetClip(c CGContextRef) error

TryCGContextResetClip is like CGContextResetClip but returns an error instead of panicking if CGContextResetClip is unavailable at run time.

func TryCGContextRestoreGState

func TryCGContextRestoreGState(c CGContextRef) error

TryCGContextRestoreGState is like CGContextRestoreGState but returns an error instead of panicking if CGContextRestoreGState is unavailable at run time.

func TryCGContextRotateCTM

func TryCGContextRotateCTM(c CGContextRef, angle float64) error

TryCGContextRotateCTM is like CGContextRotateCTM but returns an error instead of panicking if CGContextRotateCTM is unavailable at run time.

func TryCGContextSaveGState

func TryCGContextSaveGState(c CGContextRef) error

TryCGContextSaveGState is like CGContextSaveGState but returns an error instead of panicking if CGContextSaveGState is unavailable at run time.

func TryCGContextScaleCTM

func TryCGContextScaleCTM(c CGContextRef, sx float64, sy float64) error

TryCGContextScaleCTM is like CGContextScaleCTM but returns an error instead of panicking if CGContextScaleCTM is unavailable at run time.

func TryCGContextSetAllowsAntialiasing

func TryCGContextSetAllowsAntialiasing(c CGContextRef, allowsAntialiasing bool) error

TryCGContextSetAllowsAntialiasing is like CGContextSetAllowsAntialiasing but returns an error instead of panicking if CGContextSetAllowsAntialiasing is unavailable at run time.

func TryCGContextSetAllowsFontSmoothing

func TryCGContextSetAllowsFontSmoothing(c CGContextRef, allowsFontSmoothing bool) error

TryCGContextSetAllowsFontSmoothing is like CGContextSetAllowsFontSmoothing but returns an error instead of panicking if CGContextSetAllowsFontSmoothing is unavailable at run time.

func TryCGContextSetAllowsFontSubpixelPositioning

func TryCGContextSetAllowsFontSubpixelPositioning(c CGContextRef, allowsFontSubpixelPositioning bool) error

TryCGContextSetAllowsFontSubpixelPositioning is like CGContextSetAllowsFontSubpixelPositioning but returns an error instead of panicking if CGContextSetAllowsFontSubpixelPositioning is unavailable at run time.

func TryCGContextSetAllowsFontSubpixelQuantization

func TryCGContextSetAllowsFontSubpixelQuantization(c CGContextRef, allowsFontSubpixelQuantization bool) error

TryCGContextSetAllowsFontSubpixelQuantization is like CGContextSetAllowsFontSubpixelQuantization but returns an error instead of panicking if CGContextSetAllowsFontSubpixelQuantization is unavailable at run time.

func TryCGContextSetAlpha

func TryCGContextSetAlpha(c CGContextRef, alpha float64) error

TryCGContextSetAlpha is like CGContextSetAlpha but returns an error instead of panicking if CGContextSetAlpha is unavailable at run time.

func TryCGContextSetBlendMode

func TryCGContextSetBlendMode(c CGContextRef, mode CGBlendMode) error

TryCGContextSetBlendMode is like CGContextSetBlendMode but returns an error instead of panicking if CGContextSetBlendMode is unavailable at run time.

func TryCGContextSetCMYKFillColor

func TryCGContextSetCMYKFillColor(c CGContextRef, cyan float64, magenta float64, yellow float64, black float64, alpha float64) error

TryCGContextSetCMYKFillColor is like CGContextSetCMYKFillColor but returns an error instead of panicking if CGContextSetCMYKFillColor is unavailable at run time.

func TryCGContextSetCMYKStrokeColor

func TryCGContextSetCMYKStrokeColor(c CGContextRef, cyan float64, magenta float64, yellow float64, black float64, alpha float64) error

TryCGContextSetCMYKStrokeColor is like CGContextSetCMYKStrokeColor but returns an error instead of panicking if CGContextSetCMYKStrokeColor is unavailable at run time.

func TryCGContextSetCharacterSpacing

func TryCGContextSetCharacterSpacing(c CGContextRef, spacing float64) error

TryCGContextSetCharacterSpacing is like CGContextSetCharacterSpacing but returns an error instead of panicking if CGContextSetCharacterSpacing is unavailable at run time.

func TryCGContextSetContentToneMappingInfo

func TryCGContextSetContentToneMappingInfo(c CGContextRef, info CGContentToneMappingInfo) error

TryCGContextSetContentToneMappingInfo is like CGContextSetContentToneMappingInfo but returns an error instead of panicking if CGContextSetContentToneMappingInfo is unavailable at run time.

func TryCGContextSetEDRTargetHeadroom

func TryCGContextSetEDRTargetHeadroom(c CGContextRef, headroom float32) (bool, error)

TryCGContextSetEDRTargetHeadroom is like CGContextSetEDRTargetHeadroom but returns an error instead of panicking if CGContextSetEDRTargetHeadroom is unavailable at run time.

func TryCGContextSetFillColor

func TryCGContextSetFillColor(c CGContextRef, components *float64) error

TryCGContextSetFillColor is like CGContextSetFillColor but returns an error instead of panicking if CGContextSetFillColor is unavailable at run time.

func TryCGContextSetFillColorSpace

func TryCGContextSetFillColorSpace(c CGContextRef, space CGColorSpaceRef) error

TryCGContextSetFillColorSpace is like CGContextSetFillColorSpace but returns an error instead of panicking if CGContextSetFillColorSpace is unavailable at run time.

func TryCGContextSetFillColorWithColor

func TryCGContextSetFillColorWithColor(c CGContextRef, color CGColorRef) error

TryCGContextSetFillColorWithColor is like CGContextSetFillColorWithColor but returns an error instead of panicking if CGContextSetFillColorWithColor is unavailable at run time.

func TryCGContextSetFillPattern

func TryCGContextSetFillPattern(c CGContextRef, pattern CGPatternRef, components *float64) error

TryCGContextSetFillPattern is like CGContextSetFillPattern but returns an error instead of panicking if CGContextSetFillPattern is unavailable at run time.

func TryCGContextSetFlatness

func TryCGContextSetFlatness(c CGContextRef, flatness float64) error

TryCGContextSetFlatness is like CGContextSetFlatness but returns an error instead of panicking if CGContextSetFlatness is unavailable at run time.

func TryCGContextSetFont

func TryCGContextSetFont(c CGContextRef, font CGFontRef) error

TryCGContextSetFont is like CGContextSetFont but returns an error instead of panicking if CGContextSetFont is unavailable at run time.

func TryCGContextSetFontSize

func TryCGContextSetFontSize(c CGContextRef, size float64) error

TryCGContextSetFontSize is like CGContextSetFontSize but returns an error instead of panicking if CGContextSetFontSize is unavailable at run time.

func TryCGContextSetGrayFillColor

func TryCGContextSetGrayFillColor(c CGContextRef, gray float64, alpha float64) error

TryCGContextSetGrayFillColor is like CGContextSetGrayFillColor but returns an error instead of panicking if CGContextSetGrayFillColor is unavailable at run time.

func TryCGContextSetGrayStrokeColor

func TryCGContextSetGrayStrokeColor(c CGContextRef, gray float64, alpha float64) error

TryCGContextSetGrayStrokeColor is like CGContextSetGrayStrokeColor but returns an error instead of panicking if CGContextSetGrayStrokeColor is unavailable at run time.

func TryCGContextSetInterpolationQuality

func TryCGContextSetInterpolationQuality(c CGContextRef, quality CGInterpolationQuality) error

TryCGContextSetInterpolationQuality is like CGContextSetInterpolationQuality but returns an error instead of panicking if CGContextSetInterpolationQuality is unavailable at run time.

func TryCGContextSetLineCap

func TryCGContextSetLineCap(c CGContextRef, cap_ CGLineCap) error

TryCGContextSetLineCap is like CGContextSetLineCap but returns an error instead of panicking if CGContextSetLineCap is unavailable at run time.

func TryCGContextSetLineDash

func TryCGContextSetLineDash(c CGContextRef, phase float64, lengths *float64, count uintptr) error

TryCGContextSetLineDash is like CGContextSetLineDash but returns an error instead of panicking if CGContextSetLineDash is unavailable at run time.

func TryCGContextSetLineJoin

func TryCGContextSetLineJoin(c CGContextRef, join CGLineJoin) error

TryCGContextSetLineJoin is like CGContextSetLineJoin but returns an error instead of panicking if CGContextSetLineJoin is unavailable at run time.

func TryCGContextSetLineWidth

func TryCGContextSetLineWidth(c CGContextRef, width float64) error

TryCGContextSetLineWidth is like CGContextSetLineWidth but returns an error instead of panicking if CGContextSetLineWidth is unavailable at run time.

func TryCGContextSetMiterLimit

func TryCGContextSetMiterLimit(c CGContextRef, limit float64) error

TryCGContextSetMiterLimit is like CGContextSetMiterLimit but returns an error instead of panicking if CGContextSetMiterLimit is unavailable at run time.

func TryCGContextSetPatternPhase

func TryCGContextSetPatternPhase(c CGContextRef, phase corefoundation.CGSize) error

TryCGContextSetPatternPhase is like CGContextSetPatternPhase but returns an error instead of panicking if CGContextSetPatternPhase is unavailable at run time.

func TryCGContextSetRGBFillColor

func TryCGContextSetRGBFillColor(c CGContextRef, red float64, green float64, blue float64, alpha float64) error

TryCGContextSetRGBFillColor is like CGContextSetRGBFillColor but returns an error instead of panicking if CGContextSetRGBFillColor is unavailable at run time.

func TryCGContextSetRGBStrokeColor

func TryCGContextSetRGBStrokeColor(c CGContextRef, red float64, green float64, blue float64, alpha float64) error

TryCGContextSetRGBStrokeColor is like CGContextSetRGBStrokeColor but returns an error instead of panicking if CGContextSetRGBStrokeColor is unavailable at run time.

func TryCGContextSetRenderingIntent

func TryCGContextSetRenderingIntent(c CGContextRef, intent CGColorRenderingIntent) error

TryCGContextSetRenderingIntent is like CGContextSetRenderingIntent but returns an error instead of panicking if CGContextSetRenderingIntent is unavailable at run time.

func TryCGContextSetShadow

func TryCGContextSetShadow(c CGContextRef, offset corefoundation.CGSize, blur float64) error

TryCGContextSetShadow is like CGContextSetShadow but returns an error instead of panicking if CGContextSetShadow is unavailable at run time.

func TryCGContextSetShadowWithColor

func TryCGContextSetShadowWithColor(c CGContextRef, offset corefoundation.CGSize, blur float64, color CGColorRef) error

TryCGContextSetShadowWithColor is like CGContextSetShadowWithColor but returns an error instead of panicking if CGContextSetShadowWithColor is unavailable at run time.

func TryCGContextSetShouldAntialias

func TryCGContextSetShouldAntialias(c CGContextRef, shouldAntialias bool) error

TryCGContextSetShouldAntialias is like CGContextSetShouldAntialias but returns an error instead of panicking if CGContextSetShouldAntialias is unavailable at run time.

func TryCGContextSetShouldSmoothFonts

func TryCGContextSetShouldSmoothFonts(c CGContextRef, shouldSmoothFonts bool) error

TryCGContextSetShouldSmoothFonts is like CGContextSetShouldSmoothFonts but returns an error instead of panicking if CGContextSetShouldSmoothFonts is unavailable at run time.

func TryCGContextSetShouldSubpixelPositionFonts

func TryCGContextSetShouldSubpixelPositionFonts(c CGContextRef, shouldSubpixelPositionFonts bool) error

TryCGContextSetShouldSubpixelPositionFonts is like CGContextSetShouldSubpixelPositionFonts but returns an error instead of panicking if CGContextSetShouldSubpixelPositionFonts is unavailable at run time.

func TryCGContextSetShouldSubpixelQuantizeFonts

func TryCGContextSetShouldSubpixelQuantizeFonts(c CGContextRef, shouldSubpixelQuantizeFonts bool) error

TryCGContextSetShouldSubpixelQuantizeFonts is like CGContextSetShouldSubpixelQuantizeFonts but returns an error instead of panicking if CGContextSetShouldSubpixelQuantizeFonts is unavailable at run time.

func TryCGContextSetStrokeColor

func TryCGContextSetStrokeColor(c CGContextRef, components *float64) error

TryCGContextSetStrokeColor is like CGContextSetStrokeColor but returns an error instead of panicking if CGContextSetStrokeColor is unavailable at run time.

func TryCGContextSetStrokeColorSpace

func TryCGContextSetStrokeColorSpace(c CGContextRef, space CGColorSpaceRef) error

TryCGContextSetStrokeColorSpace is like CGContextSetStrokeColorSpace but returns an error instead of panicking if CGContextSetStrokeColorSpace is unavailable at run time.

func TryCGContextSetStrokeColorWithColor

func TryCGContextSetStrokeColorWithColor(c CGContextRef, color CGColorRef) error

TryCGContextSetStrokeColorWithColor is like CGContextSetStrokeColorWithColor but returns an error instead of panicking if CGContextSetStrokeColorWithColor is unavailable at run time.

func TryCGContextSetStrokePattern

func TryCGContextSetStrokePattern(c CGContextRef, pattern CGPatternRef, components *float64) error

TryCGContextSetStrokePattern is like CGContextSetStrokePattern but returns an error instead of panicking if CGContextSetStrokePattern is unavailable at run time.

func TryCGContextSetTextDrawingMode

func TryCGContextSetTextDrawingMode(c CGContextRef, mode CGTextDrawingMode) error

TryCGContextSetTextDrawingMode is like CGContextSetTextDrawingMode but returns an error instead of panicking if CGContextSetTextDrawingMode is unavailable at run time.

func TryCGContextSetTextMatrix

func TryCGContextSetTextMatrix(c CGContextRef, t corefoundation.CGAffineTransform) error

TryCGContextSetTextMatrix is like CGContextSetTextMatrix but returns an error instead of panicking if CGContextSetTextMatrix is unavailable at run time.

func TryCGContextSetTextPosition

func TryCGContextSetTextPosition(c CGContextRef, x float64, y float64) error

TryCGContextSetTextPosition is like CGContextSetTextPosition but returns an error instead of panicking if CGContextSetTextPosition is unavailable at run time.

func TryCGContextShowGlyphsAtPositions

func TryCGContextShowGlyphsAtPositions(c CGContextRef, glyphs *CGGlyph, Lpositions *corefoundation.CGPoint, count uintptr) error

TryCGContextShowGlyphsAtPositions is like CGContextShowGlyphsAtPositions but returns an error instead of panicking if CGContextShowGlyphsAtPositions is unavailable at run time.

func TryCGContextStrokeEllipseInRect

func TryCGContextStrokeEllipseInRect(c CGContextRef, rect corefoundation.CGRect) error

TryCGContextStrokeEllipseInRect is like CGContextStrokeEllipseInRect but returns an error instead of panicking if CGContextStrokeEllipseInRect is unavailable at run time.

func TryCGContextStrokeLineSegments

func TryCGContextStrokeLineSegments(c CGContextRef, points *corefoundation.CGPoint, count uintptr) error

TryCGContextStrokeLineSegments is like CGContextStrokeLineSegments but returns an error instead of panicking if CGContextStrokeLineSegments is unavailable at run time.

func TryCGContextStrokePath

func TryCGContextStrokePath(c CGContextRef) error

TryCGContextStrokePath is like CGContextStrokePath but returns an error instead of panicking if CGContextStrokePath is unavailable at run time.

func TryCGContextStrokeRect

func TryCGContextStrokeRect(c CGContextRef, rect corefoundation.CGRect) error

TryCGContextStrokeRect is like CGContextStrokeRect but returns an error instead of panicking if CGContextStrokeRect is unavailable at run time.

func TryCGContextStrokeRectWithWidth

func TryCGContextStrokeRectWithWidth(c CGContextRef, rect corefoundation.CGRect, width float64) error

TryCGContextStrokeRectWithWidth is like CGContextStrokeRectWithWidth but returns an error instead of panicking if CGContextStrokeRectWithWidth is unavailable at run time.

func TryCGContextSynchronize

func TryCGContextSynchronize(c CGContextRef) error

TryCGContextSynchronize is like CGContextSynchronize but returns an error instead of panicking if CGContextSynchronize is unavailable at run time.

func TryCGContextSynchronizeAttributes

func TryCGContextSynchronizeAttributes(c CGContextRef) error

TryCGContextSynchronizeAttributes is like CGContextSynchronizeAttributes but returns an error instead of panicking if CGContextSynchronizeAttributes is unavailable at run time.

func TryCGContextTranslateCTM

func TryCGContextTranslateCTM(c CGContextRef, tx float64, ty float64) error

TryCGContextTranslateCTM is like CGContextTranslateCTM but returns an error instead of panicking if CGContextTranslateCTM is unavailable at run time.

func TryCGConvertColorDataWithFormat

func TryCGConvertColorDataWithFormat(width uintptr, height uintptr, dst_data unsafe.Pointer, dst_format CGColorDataFormat, src_data unsafe.Pointer, src_format CGColorDataFormat, options corefoundation.CFDictionaryRef) (bool, error)

TryCGConvertColorDataWithFormat is like CGConvertColorDataWithFormat but returns an error instead of panicking if CGConvertColorDataWithFormat is unavailable at run time.

func TryCGDataConsumerGetTypeID

func TryCGDataConsumerGetTypeID() (uint, error)

TryCGDataConsumerGetTypeID is like CGDataConsumerGetTypeID but returns an error instead of panicking if CGDataConsumerGetTypeID is unavailable at run time.

func TryCGDataConsumerRelease

func TryCGDataConsumerRelease(consumer CGDataConsumerRef) error

TryCGDataConsumerRelease is like CGDataConsumerRelease but returns an error instead of panicking if CGDataConsumerRelease is unavailable at run time.

func TryCGDataProviderCopyData

func TryCGDataProviderCopyData(provider CGDataProviderRef) (corefoundation.CFDataRef, error)

TryCGDataProviderCopyData is like CGDataProviderCopyData but returns an error instead of panicking if CGDataProviderCopyData is unavailable at run time.

func TryCGDataProviderGetInfo

func TryCGDataProviderGetInfo(provider CGDataProviderRef) (unsafe.Pointer, error)

TryCGDataProviderGetInfo is like CGDataProviderGetInfo but returns an error instead of panicking if CGDataProviderGetInfo is unavailable at run time.

func TryCGDataProviderGetTypeID

func TryCGDataProviderGetTypeID() (uint, error)

TryCGDataProviderGetTypeID is like CGDataProviderGetTypeID but returns an error instead of panicking if CGDataProviderGetTypeID is unavailable at run time.

func TryCGDataProviderRelease

func TryCGDataProviderRelease(provider CGDataProviderRef) error

TryCGDataProviderRelease is like CGDataProviderRelease but returns an error instead of panicking if CGDataProviderRelease is unavailable at run time.

func TryCGDirectDisplayCopyCurrentMetalDevice

func TryCGDirectDisplayCopyCurrentMetalDevice(display CGDirectDisplayID) (objectivec.IObject, error)

TryCGDirectDisplayCopyCurrentMetalDevice is like CGDirectDisplayCopyCurrentMetalDevice but returns an error instead of panicking if CGDirectDisplayCopyCurrentMetalDevice is unavailable at run time.

func TryCGDisplayBounds

func TryCGDisplayBounds(display CGDirectDisplayID) (corefoundation.CGRect, error)

TryCGDisplayBounds is like CGDisplayBounds but returns an error instead of panicking if CGDisplayBounds is unavailable at run time.

func TryCGDisplayCopyAllDisplayModes

func TryCGDisplayCopyAllDisplayModes(display CGDirectDisplayID, options corefoundation.CFDictionaryRef) (corefoundation.CFArrayRef, error)

TryCGDisplayCopyAllDisplayModes is like CGDisplayCopyAllDisplayModes but returns an error instead of panicking if CGDisplayCopyAllDisplayModes is unavailable at run time.

func TryCGDisplayGammaTableCapacity

func TryCGDisplayGammaTableCapacity(display CGDirectDisplayID) (uint32, error)

TryCGDisplayGammaTableCapacity is like CGDisplayGammaTableCapacity but returns an error instead of panicking if CGDisplayGammaTableCapacity is unavailable at run time.

func TryCGDisplayIsActive

func TryCGDisplayIsActive(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsActive is like CGDisplayIsActive but returns an error instead of panicking if CGDisplayIsActive is unavailable at run time.

func TryCGDisplayIsAlwaysInMirrorSet

func TryCGDisplayIsAlwaysInMirrorSet(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsAlwaysInMirrorSet is like CGDisplayIsAlwaysInMirrorSet but returns an error instead of panicking if CGDisplayIsAlwaysInMirrorSet is unavailable at run time.

func TryCGDisplayIsAsleep

func TryCGDisplayIsAsleep(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsAsleep is like CGDisplayIsAsleep but returns an error instead of panicking if CGDisplayIsAsleep is unavailable at run time.

func TryCGDisplayIsBuiltin

func TryCGDisplayIsBuiltin(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsBuiltin is like CGDisplayIsBuiltin but returns an error instead of panicking if CGDisplayIsBuiltin is unavailable at run time.

func TryCGDisplayIsInHWMirrorSet

func TryCGDisplayIsInHWMirrorSet(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsInHWMirrorSet is like CGDisplayIsInHWMirrorSet but returns an error instead of panicking if CGDisplayIsInHWMirrorSet is unavailable at run time.

func TryCGDisplayIsInMirrorSet

func TryCGDisplayIsInMirrorSet(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsInMirrorSet is like CGDisplayIsInMirrorSet but returns an error instead of panicking if CGDisplayIsInMirrorSet is unavailable at run time.

func TryCGDisplayIsMain

func TryCGDisplayIsMain(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsMain is like CGDisplayIsMain but returns an error instead of panicking if CGDisplayIsMain is unavailable at run time.

func TryCGDisplayIsOnline

func TryCGDisplayIsOnline(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsOnline is like CGDisplayIsOnline but returns an error instead of panicking if CGDisplayIsOnline is unavailable at run time.

func TryCGDisplayIsStereo

func TryCGDisplayIsStereo(display CGDirectDisplayID) (int32, error)

TryCGDisplayIsStereo is like CGDisplayIsStereo but returns an error instead of panicking if CGDisplayIsStereo is unavailable at run time.

func TryCGDisplayModeCopyPixelEncoding

func TryCGDisplayModeCopyPixelEncoding(mode CGDisplayModeRef) (corefoundation.CFStringRef, error)

TryCGDisplayModeCopyPixelEncoding is like CGDisplayModeCopyPixelEncoding but returns an error instead of panicking if CGDisplayModeCopyPixelEncoding is unavailable at run time.

func TryCGDisplayModeGetHeight

func TryCGDisplayModeGetHeight(mode CGDisplayModeRef) (uintptr, error)

TryCGDisplayModeGetHeight is like CGDisplayModeGetHeight but returns an error instead of panicking if CGDisplayModeGetHeight is unavailable at run time.

func TryCGDisplayModeGetIODisplayModeID

func TryCGDisplayModeGetIODisplayModeID(mode CGDisplayModeRef) (int32, error)

TryCGDisplayModeGetIODisplayModeID is like CGDisplayModeGetIODisplayModeID but returns an error instead of panicking if CGDisplayModeGetIODisplayModeID is unavailable at run time.

func TryCGDisplayModeGetIOFlags

func TryCGDisplayModeGetIOFlags(mode CGDisplayModeRef) (uint32, error)

TryCGDisplayModeGetIOFlags is like CGDisplayModeGetIOFlags but returns an error instead of panicking if CGDisplayModeGetIOFlags is unavailable at run time.

func TryCGDisplayModeGetPixelHeight

func TryCGDisplayModeGetPixelHeight(mode CGDisplayModeRef) (uintptr, error)

TryCGDisplayModeGetPixelHeight is like CGDisplayModeGetPixelHeight but returns an error instead of panicking if CGDisplayModeGetPixelHeight is unavailable at run time.

func TryCGDisplayModeGetPixelWidth

func TryCGDisplayModeGetPixelWidth(mode CGDisplayModeRef) (uintptr, error)

TryCGDisplayModeGetPixelWidth is like CGDisplayModeGetPixelWidth but returns an error instead of panicking if CGDisplayModeGetPixelWidth is unavailable at run time.

func TryCGDisplayModeGetRefreshRate

func TryCGDisplayModeGetRefreshRate(mode CGDisplayModeRef) (float64, error)

TryCGDisplayModeGetRefreshRate is like CGDisplayModeGetRefreshRate but returns an error instead of panicking if CGDisplayModeGetRefreshRate is unavailable at run time.

func TryCGDisplayModeGetTypeID

func TryCGDisplayModeGetTypeID() (uint, error)

TryCGDisplayModeGetTypeID is like CGDisplayModeGetTypeID but returns an error instead of panicking if CGDisplayModeGetTypeID is unavailable at run time.

func TryCGDisplayModeGetWidth

func TryCGDisplayModeGetWidth(mode CGDisplayModeRef) (uintptr, error)

TryCGDisplayModeGetWidth is like CGDisplayModeGetWidth but returns an error instead of panicking if CGDisplayModeGetWidth is unavailable at run time.

func TryCGDisplayModeIsUsableForDesktopGUI

func TryCGDisplayModeIsUsableForDesktopGUI(mode CGDisplayModeRef) (bool, error)

TryCGDisplayModeIsUsableForDesktopGUI is like CGDisplayModeIsUsableForDesktopGUI but returns an error instead of panicking if CGDisplayModeIsUsableForDesktopGUI is unavailable at run time.

func TryCGDisplayModeRelease

func TryCGDisplayModeRelease(mode CGDisplayModeRef) error

TryCGDisplayModeRelease is like CGDisplayModeRelease but returns an error instead of panicking if CGDisplayModeRelease is unavailable at run time.

func TryCGDisplayModelNumber

func TryCGDisplayModelNumber(display CGDirectDisplayID) (uint32, error)

TryCGDisplayModelNumber is like CGDisplayModelNumber but returns an error instead of panicking if CGDisplayModelNumber is unavailable at run time.

func TryCGDisplayPixelsHigh

func TryCGDisplayPixelsHigh(display CGDirectDisplayID) (uintptr, error)

TryCGDisplayPixelsHigh is like CGDisplayPixelsHigh but returns an error instead of panicking if CGDisplayPixelsHigh is unavailable at run time.

func TryCGDisplayPixelsWide

func TryCGDisplayPixelsWide(display CGDirectDisplayID) (uintptr, error)

TryCGDisplayPixelsWide is like CGDisplayPixelsWide but returns an error instead of panicking if CGDisplayPixelsWide is unavailable at run time.

func TryCGDisplayRestoreColorSyncSettings

func TryCGDisplayRestoreColorSyncSettings() error

TryCGDisplayRestoreColorSyncSettings is like CGDisplayRestoreColorSyncSettings but returns an error instead of panicking if CGDisplayRestoreColorSyncSettings is unavailable at run time.

func TryCGDisplayRotation

func TryCGDisplayRotation(display CGDirectDisplayID) (float64, error)

TryCGDisplayRotation is like CGDisplayRotation but returns an error instead of panicking if CGDisplayRotation is unavailable at run time.

func TryCGDisplayScreenSize

func TryCGDisplayScreenSize(display CGDirectDisplayID) (corefoundation.CGSize, error)

TryCGDisplayScreenSize is like CGDisplayScreenSize but returns an error instead of panicking if CGDisplayScreenSize is unavailable at run time.

func TryCGDisplaySerialNumber

func TryCGDisplaySerialNumber(display CGDirectDisplayID) (uint32, error)

TryCGDisplaySerialNumber is like CGDisplaySerialNumber but returns an error instead of panicking if CGDisplaySerialNumber is unavailable at run time.

func TryCGDisplayStreamGetRunLoopSource

func TryCGDisplayStreamGetRunLoopSource(displayStream CGDisplayStreamRef) (corefoundation.CFRunLoopSourceRef, error)

TryCGDisplayStreamGetRunLoopSource is like CGDisplayStreamGetRunLoopSource but returns an error instead of panicking if CGDisplayStreamGetRunLoopSource is unavailable at run time.

func TryCGDisplayStreamGetTypeID

func TryCGDisplayStreamGetTypeID() (uint, error)

TryCGDisplayStreamGetTypeID is like CGDisplayStreamGetTypeID but returns an error instead of panicking if CGDisplayStreamGetTypeID is unavailable at run time.

func TryCGDisplayStreamUpdateGetDropCount

func TryCGDisplayStreamUpdateGetDropCount(updateRef CGDisplayStreamUpdateRef) (uintptr, error)

TryCGDisplayStreamUpdateGetDropCount is like CGDisplayStreamUpdateGetDropCount but returns an error instead of panicking if CGDisplayStreamUpdateGetDropCount is unavailable at run time.

func TryCGDisplayStreamUpdateGetMovedRectsDelta

func TryCGDisplayStreamUpdateGetMovedRectsDelta(updateRef CGDisplayStreamUpdateRef, dx *float64, dy *float64) error

TryCGDisplayStreamUpdateGetMovedRectsDelta is like CGDisplayStreamUpdateGetMovedRectsDelta but returns an error instead of panicking if CGDisplayStreamUpdateGetMovedRectsDelta is unavailable at run time.

func TryCGDisplayStreamUpdateGetRects

func TryCGDisplayStreamUpdateGetRects(updateRef CGDisplayStreamUpdateRef, rectType CGDisplayStreamUpdateRectType, rectCount *uintptr) (*corefoundation.CGRect, error)

TryCGDisplayStreamUpdateGetRects is like CGDisplayStreamUpdateGetRects but returns an error instead of panicking if CGDisplayStreamUpdateGetRects is unavailable at run time.

func TryCGDisplayStreamUpdateGetTypeID

func TryCGDisplayStreamUpdateGetTypeID() (uint, error)

TryCGDisplayStreamUpdateGetTypeID is like CGDisplayStreamUpdateGetTypeID but returns an error instead of panicking if CGDisplayStreamUpdateGetTypeID is unavailable at run time.

func TryCGDisplayUnitNumber

func TryCGDisplayUnitNumber(display CGDirectDisplayID) (uint32, error)

TryCGDisplayUnitNumber is like CGDisplayUnitNumber but returns an error instead of panicking if CGDisplayUnitNumber is unavailable at run time.

func TryCGDisplayUsesOpenGLAcceleration

func TryCGDisplayUsesOpenGLAcceleration(display CGDirectDisplayID) (int32, error)

TryCGDisplayUsesOpenGLAcceleration is like CGDisplayUsesOpenGLAcceleration but returns an error instead of panicking if CGDisplayUsesOpenGLAcceleration is unavailable at run time.

func TryCGDisplayVendorNumber

func TryCGDisplayVendorNumber(display CGDirectDisplayID) (uint32, error)

TryCGDisplayVendorNumber is like CGDisplayVendorNumber but returns an error instead of panicking if CGDisplayVendorNumber is unavailable at run time.

func TryCGEXRToneMappingGammaGetDefaultOptions

func TryCGEXRToneMappingGammaGetDefaultOptions() (corefoundation.CFDictionaryRef, error)

TryCGEXRToneMappingGammaGetDefaultOptions is like CGEXRToneMappingGammaGetDefaultOptions but returns an error instead of panicking if CGEXRToneMappingGammaGetDefaultOptions is unavailable at run time.

func TryCGErrorSetCallback

func TryCGErrorSetCallback(callback CGErrorCallback) error

TryCGErrorSetCallback is like CGErrorSetCallback but returns an error instead of panicking if CGErrorSetCallback is unavailable at run time.

func TryCGEventCreateData

func TryCGEventCreateData(allocator corefoundation.CFAllocatorRef, event CGEventRef) (corefoundation.CFDataRef, error)

TryCGEventCreateData is like CGEventCreateData but returns an error instead of panicking if CGEventCreateData is unavailable at run time.

func TryCGEventGetDoubleValueField

func TryCGEventGetDoubleValueField(event CGEventRef, field CGEventField) (float64, error)

TryCGEventGetDoubleValueField is like CGEventGetDoubleValueField but returns an error instead of panicking if CGEventGetDoubleValueField is unavailable at run time.

func TryCGEventGetIntegerValueField

func TryCGEventGetIntegerValueField(event CGEventRef, field CGEventField) (int64, error)

TryCGEventGetIntegerValueField is like CGEventGetIntegerValueField but returns an error instead of panicking if CGEventGetIntegerValueField is unavailable at run time.

func TryCGEventGetLocation

func TryCGEventGetLocation(event CGEventRef) (corefoundation.CGPoint, error)

TryCGEventGetLocation is like CGEventGetLocation but returns an error instead of panicking if CGEventGetLocation is unavailable at run time.

func TryCGEventGetTypeID

func TryCGEventGetTypeID() (uint, error)

TryCGEventGetTypeID is like CGEventGetTypeID but returns an error instead of panicking if CGEventGetTypeID is unavailable at run time.

func TryCGEventGetUnflippedLocation

func TryCGEventGetUnflippedLocation(event CGEventRef) (corefoundation.CGPoint, error)

TryCGEventGetUnflippedLocation is like CGEventGetUnflippedLocation but returns an error instead of panicking if CGEventGetUnflippedLocation is unavailable at run time.

func TryCGEventKeyboardGetUnicodeString

func TryCGEventKeyboardGetUnicodeString(event CGEventRef, maxStringLength uint, actualStringLength *uint, unicodeString *uint16) error

TryCGEventKeyboardGetUnicodeString is like CGEventKeyboardGetUnicodeString but returns an error instead of panicking if CGEventKeyboardGetUnicodeString is unavailable at run time.

func TryCGEventKeyboardSetUnicodeString

func TryCGEventKeyboardSetUnicodeString(event CGEventRef, stringLength uint, unicodeString *uint16) error

TryCGEventKeyboardSetUnicodeString is like CGEventKeyboardSetUnicodeString but returns an error instead of panicking if CGEventKeyboardSetUnicodeString is unavailable at run time.

func TryCGEventPost

func TryCGEventPost(tap CGEventTapLocation, event CGEventRef) error

TryCGEventPost is like CGEventPost but returns an error instead of panicking if CGEventPost is unavailable at run time.

func TryCGEventPostToPSN

func TryCGEventPostToPSN(processSerialNumber unsafe.Pointer, event CGEventRef) error

TryCGEventPostToPSN is like CGEventPostToPSN but returns an error instead of panicking if CGEventPostToPSN is unavailable at run time.

func TryCGEventPostToPid

func TryCGEventPostToPid(pid int32, event CGEventRef) error

TryCGEventPostToPid is like CGEventPostToPid but returns an error instead of panicking if CGEventPostToPid is unavailable at run time.

func TryCGEventSetDoubleValueField

func TryCGEventSetDoubleValueField(event CGEventRef, field CGEventField, value float64) error

TryCGEventSetDoubleValueField is like CGEventSetDoubleValueField but returns an error instead of panicking if CGEventSetDoubleValueField is unavailable at run time.

func TryCGEventSetFlags

func TryCGEventSetFlags(event CGEventRef, flags CGEventFlags) error

TryCGEventSetFlags is like CGEventSetFlags but returns an error instead of panicking if CGEventSetFlags is unavailable at run time.

func TryCGEventSetIntegerValueField

func TryCGEventSetIntegerValueField(event CGEventRef, field CGEventField, value int64) error

TryCGEventSetIntegerValueField is like CGEventSetIntegerValueField but returns an error instead of panicking if CGEventSetIntegerValueField is unavailable at run time.

func TryCGEventSetLocation

func TryCGEventSetLocation(event CGEventRef, location corefoundation.CGPoint) error

TryCGEventSetLocation is like CGEventSetLocation but returns an error instead of panicking if CGEventSetLocation is unavailable at run time.

func TryCGEventSetSource

func TryCGEventSetSource(event CGEventRef, source CGEventSourceRef) error

TryCGEventSetSource is like CGEventSetSource but returns an error instead of panicking if CGEventSetSource is unavailable at run time.

func TryCGEventSetTimestamp

func TryCGEventSetTimestamp(event CGEventRef, timestamp CGEventTimestamp) error

TryCGEventSetTimestamp is like CGEventSetTimestamp but returns an error instead of panicking if CGEventSetTimestamp is unavailable at run time.

func TryCGEventSetType

func TryCGEventSetType(event CGEventRef, type_ CGEventType) error

TryCGEventSetType is like CGEventSetType but returns an error instead of panicking if CGEventSetType is unavailable at run time.

func TryCGEventSourceButtonState

func TryCGEventSourceButtonState(stateID CGEventSourceStateID, button CGMouseButton) (bool, error)

TryCGEventSourceButtonState is like CGEventSourceButtonState but returns an error instead of panicking if CGEventSourceButtonState is unavailable at run time.

func TryCGEventSourceCounterForEventType

func TryCGEventSourceCounterForEventType(stateID CGEventSourceStateID, eventType CGEventType) (uint32, error)

TryCGEventSourceCounterForEventType is like CGEventSourceCounterForEventType but returns an error instead of panicking if CGEventSourceCounterForEventType is unavailable at run time.

func TryCGEventSourceGetLocalEventsSuppressionInterval

func TryCGEventSourceGetLocalEventsSuppressionInterval(source CGEventSourceRef) (corefoundation.CFTimeInterval, error)

TryCGEventSourceGetLocalEventsSuppressionInterval is like CGEventSourceGetLocalEventsSuppressionInterval but returns an error instead of panicking if CGEventSourceGetLocalEventsSuppressionInterval is unavailable at run time.

func TryCGEventSourceGetPixelsPerLine

func TryCGEventSourceGetPixelsPerLine(source CGEventSourceRef) (float64, error)

TryCGEventSourceGetPixelsPerLine is like CGEventSourceGetPixelsPerLine but returns an error instead of panicking if CGEventSourceGetPixelsPerLine is unavailable at run time.

func TryCGEventSourceGetTypeID

func TryCGEventSourceGetTypeID() (uint, error)

TryCGEventSourceGetTypeID is like CGEventSourceGetTypeID but returns an error instead of panicking if CGEventSourceGetTypeID is unavailable at run time.

func TryCGEventSourceGetUserData

func TryCGEventSourceGetUserData(source CGEventSourceRef) (int64, error)

TryCGEventSourceGetUserData is like CGEventSourceGetUserData but returns an error instead of panicking if CGEventSourceGetUserData is unavailable at run time.

func TryCGEventSourceKeyState

func TryCGEventSourceKeyState(stateID CGEventSourceStateID, key CGKeyCode) (bool, error)

TryCGEventSourceKeyState is like CGEventSourceKeyState but returns an error instead of panicking if CGEventSourceKeyState is unavailable at run time.

func TryCGEventSourceSecondsSinceLastEventType

func TryCGEventSourceSecondsSinceLastEventType(stateID CGEventSourceStateID, eventType CGEventType) (corefoundation.CFTimeInterval, error)

TryCGEventSourceSecondsSinceLastEventType is like CGEventSourceSecondsSinceLastEventType but returns an error instead of panicking if CGEventSourceSecondsSinceLastEventType is unavailable at run time.

func TryCGEventSourceSetKeyboardType

func TryCGEventSourceSetKeyboardType(source CGEventSourceRef, keyboardType CGEventSourceKeyboardType) error

TryCGEventSourceSetKeyboardType is like CGEventSourceSetKeyboardType but returns an error instead of panicking if CGEventSourceSetKeyboardType is unavailable at run time.

func TryCGEventSourceSetLocalEventsFilterDuringSuppressionState

func TryCGEventSourceSetLocalEventsFilterDuringSuppressionState(source CGEventSourceRef, filter CGEventFilterMask, state CGEventSuppressionState) error

TryCGEventSourceSetLocalEventsFilterDuringSuppressionState is like CGEventSourceSetLocalEventsFilterDuringSuppressionState but returns an error instead of panicking if CGEventSourceSetLocalEventsFilterDuringSuppressionState is unavailable at run time.

func TryCGEventSourceSetLocalEventsSuppressionInterval

func TryCGEventSourceSetLocalEventsSuppressionInterval(source CGEventSourceRef, seconds corefoundation.CFTimeInterval) error

TryCGEventSourceSetLocalEventsSuppressionInterval is like CGEventSourceSetLocalEventsSuppressionInterval but returns an error instead of panicking if CGEventSourceSetLocalEventsSuppressionInterval is unavailable at run time.

func TryCGEventSourceSetPixelsPerLine

func TryCGEventSourceSetPixelsPerLine(source CGEventSourceRef, pixelsPerLine float64) error

TryCGEventSourceSetPixelsPerLine is like CGEventSourceSetPixelsPerLine but returns an error instead of panicking if CGEventSourceSetPixelsPerLine is unavailable at run time.

func TryCGEventSourceSetUserData

func TryCGEventSourceSetUserData(source CGEventSourceRef, userData int64) error

TryCGEventSourceSetUserData is like CGEventSourceSetUserData but returns an error instead of panicking if CGEventSourceSetUserData is unavailable at run time.

func TryCGEventTapCreate

func TryCGEventTapCreate(tap CGEventTapLocation, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest CGEventMask, callback CGEventTapCallBack, userInfo unsafe.Pointer) (corefoundation.CFMachPort, error)

TryCGEventTapCreate is like CGEventTapCreate but returns an error instead of panicking if CGEventTapCreate is unavailable at run time.

func TryCGEventTapCreateForPSN

func TryCGEventTapCreateForPSN(processSerialNumber unsafe.Pointer, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest CGEventMask, callback CGEventTapCallBack, userInfo unsafe.Pointer) (corefoundation.CFMachPort, error)

TryCGEventTapCreateForPSN is like CGEventTapCreateForPSN but returns an error instead of panicking if CGEventTapCreateForPSN is unavailable at run time.

func TryCGEventTapCreateForPid

func TryCGEventTapCreateForPid(pid int32, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest CGEventMask, callback CGEventTapCallBack, userInfo unsafe.Pointer) (corefoundation.CFMachPort, error)

TryCGEventTapCreateForPid is like CGEventTapCreateForPid but returns an error instead of panicking if CGEventTapCreateForPid is unavailable at run time.

func TryCGEventTapEnable

func TryCGEventTapEnable(tap corefoundation.CFMachPortRef, enable bool) error

TryCGEventTapEnable is like CGEventTapEnable but returns an error instead of panicking if CGEventTapEnable is unavailable at run time.

func TryCGEventTapIsEnabled

func TryCGEventTapIsEnabled(tap corefoundation.CFMachPortRef) (bool, error)

TryCGEventTapIsEnabled is like CGEventTapIsEnabled but returns an error instead of panicking if CGEventTapIsEnabled is unavailable at run time.

func TryCGEventTapPostEvent

func TryCGEventTapPostEvent(proxy CGEventTapProxy, event CGEventRef) error

TryCGEventTapPostEvent is like CGEventTapPostEvent but returns an error instead of panicking if CGEventTapPostEvent is unavailable at run time.

func TryCGFontCanCreatePostScriptSubset

func TryCGFontCanCreatePostScriptSubset(font CGFontRef, format CGFontPostScriptFormat) (bool, error)

TryCGFontCanCreatePostScriptSubset is like CGFontCanCreatePostScriptSubset but returns an error instead of panicking if CGFontCanCreatePostScriptSubset is unavailable at run time.

func TryCGFontCopyFullName

func TryCGFontCopyFullName(font CGFontRef) (corefoundation.CFStringRef, error)

TryCGFontCopyFullName is like CGFontCopyFullName but returns an error instead of panicking if CGFontCopyFullName is unavailable at run time.

func TryCGFontCopyGlyphNameForGlyph

func TryCGFontCopyGlyphNameForGlyph(font CGFontRef, glyph CGGlyph) (corefoundation.CFStringRef, error)

TryCGFontCopyGlyphNameForGlyph is like CGFontCopyGlyphNameForGlyph but returns an error instead of panicking if CGFontCopyGlyphNameForGlyph is unavailable at run time.

func TryCGFontCopyPostScriptName

func TryCGFontCopyPostScriptName(font CGFontRef) (corefoundation.CFStringRef, error)

TryCGFontCopyPostScriptName is like CGFontCopyPostScriptName but returns an error instead of panicking if CGFontCopyPostScriptName is unavailable at run time.

func TryCGFontCopyTableForTag

func TryCGFontCopyTableForTag(font CGFontRef, tag uint32) (corefoundation.CFDataRef, error)

TryCGFontCopyTableForTag is like CGFontCopyTableForTag but returns an error instead of panicking if CGFontCopyTableForTag is unavailable at run time.

func TryCGFontCopyTableTags

func TryCGFontCopyTableTags(font CGFontRef) (corefoundation.CFArrayRef, error)

TryCGFontCopyTableTags is like CGFontCopyTableTags but returns an error instead of panicking if CGFontCopyTableTags is unavailable at run time.

func TryCGFontCopyVariationAxes

func TryCGFontCopyVariationAxes(font CGFontRef) (corefoundation.CFArrayRef, error)

TryCGFontCopyVariationAxes is like CGFontCopyVariationAxes but returns an error instead of panicking if CGFontCopyVariationAxes is unavailable at run time.

func TryCGFontCopyVariations

func TryCGFontCopyVariations(font CGFontRef) (corefoundation.CFDictionaryRef, error)

TryCGFontCopyVariations is like CGFontCopyVariations but returns an error instead of panicking if CGFontCopyVariations is unavailable at run time.

func TryCGFontCreatePostScriptEncoding

func TryCGFontCreatePostScriptEncoding(font CGFontRef, encoding CGGlyph) (corefoundation.CFDataRef, error)

TryCGFontCreatePostScriptEncoding is like CGFontCreatePostScriptEncoding but returns an error instead of panicking if CGFontCreatePostScriptEncoding is unavailable at run time.

func TryCGFontCreatePostScriptSubset

func TryCGFontCreatePostScriptSubset(font CGFontRef, subsetName corefoundation.CFStringRef, format CGFontPostScriptFormat, glyphs *CGGlyph, count uintptr, encoding CGGlyph) (corefoundation.CFDataRef, error)

TryCGFontCreatePostScriptSubset is like CGFontCreatePostScriptSubset but returns an error instead of panicking if CGFontCreatePostScriptSubset is unavailable at run time.

func TryCGFontGetAscent

func TryCGFontGetAscent(font CGFontRef) (int32, error)

TryCGFontGetAscent is like CGFontGetAscent but returns an error instead of panicking if CGFontGetAscent is unavailable at run time.

func TryCGFontGetCapHeight

func TryCGFontGetCapHeight(font CGFontRef) (int32, error)

TryCGFontGetCapHeight is like CGFontGetCapHeight but returns an error instead of panicking if CGFontGetCapHeight is unavailable at run time.

func TryCGFontGetDescent

func TryCGFontGetDescent(font CGFontRef) (int32, error)

TryCGFontGetDescent is like CGFontGetDescent but returns an error instead of panicking if CGFontGetDescent is unavailable at run time.

func TryCGFontGetFontBBox

func TryCGFontGetFontBBox(font CGFontRef) (corefoundation.CGRect, error)

TryCGFontGetFontBBox is like CGFontGetFontBBox but returns an error instead of panicking if CGFontGetFontBBox is unavailable at run time.

func TryCGFontGetGlyphAdvances

func TryCGFontGetGlyphAdvances(font CGFontRef, glyphs *CGGlyph, count uintptr, advances *int32) (bool, error)

TryCGFontGetGlyphAdvances is like CGFontGetGlyphAdvances but returns an error instead of panicking if CGFontGetGlyphAdvances is unavailable at run time.

func TryCGFontGetGlyphBBoxes

func TryCGFontGetGlyphBBoxes(font CGFontRef, glyphs *CGGlyph, count uintptr, bboxes *corefoundation.CGRect) (bool, error)

TryCGFontGetGlyphBBoxes is like CGFontGetGlyphBBoxes but returns an error instead of panicking if CGFontGetGlyphBBoxes is unavailable at run time.

func TryCGFontGetItalicAngle

func TryCGFontGetItalicAngle(font CGFontRef) (float64, error)

TryCGFontGetItalicAngle is like CGFontGetItalicAngle but returns an error instead of panicking if CGFontGetItalicAngle is unavailable at run time.

func TryCGFontGetLeading

func TryCGFontGetLeading(font CGFontRef) (int32, error)

TryCGFontGetLeading is like CGFontGetLeading but returns an error instead of panicking if CGFontGetLeading is unavailable at run time.

func TryCGFontGetNumberOfGlyphs

func TryCGFontGetNumberOfGlyphs(font CGFontRef) (uintptr, error)

TryCGFontGetNumberOfGlyphs is like CGFontGetNumberOfGlyphs but returns an error instead of panicking if CGFontGetNumberOfGlyphs is unavailable at run time.

func TryCGFontGetStemV

func TryCGFontGetStemV(font CGFontRef) (float64, error)

TryCGFontGetStemV is like CGFontGetStemV but returns an error instead of panicking if CGFontGetStemV is unavailable at run time.

func TryCGFontGetTypeID

func TryCGFontGetTypeID() (uint, error)

TryCGFontGetTypeID is like CGFontGetTypeID but returns an error instead of panicking if CGFontGetTypeID is unavailable at run time.

func TryCGFontGetUnitsPerEm

func TryCGFontGetUnitsPerEm(font CGFontRef) (int32, error)

TryCGFontGetUnitsPerEm is like CGFontGetUnitsPerEm but returns an error instead of panicking if CGFontGetUnitsPerEm is unavailable at run time.

func TryCGFontGetXHeight

func TryCGFontGetXHeight(font CGFontRef) (int32, error)

TryCGFontGetXHeight is like CGFontGetXHeight but returns an error instead of panicking if CGFontGetXHeight is unavailable at run time.

func TryCGFontRelease

func TryCGFontRelease(font CGFontRef) error

TryCGFontRelease is like CGFontRelease but returns an error instead of panicking if CGFontRelease is unavailable at run time.

func TryCGFunctionGetTypeID

func TryCGFunctionGetTypeID() (uint, error)

TryCGFunctionGetTypeID is like CGFunctionGetTypeID but returns an error instead of panicking if CGFunctionGetTypeID is unavailable at run time.

func TryCGFunctionRelease

func TryCGFunctionRelease(function CGFunctionRef) error

TryCGFunctionRelease is like CGFunctionRelease but returns an error instead of panicking if CGFunctionRelease is unavailable at run time.

func TryCGGetLastMouseDelta

func TryCGGetLastMouseDelta(deltaX *int32, deltaY *int32) error

TryCGGetLastMouseDelta is like CGGetLastMouseDelta but returns an error instead of panicking if CGGetLastMouseDelta is unavailable at run time.

func TryCGGradientGetContentHeadroom

func TryCGGradientGetContentHeadroom(gradient CGGradientRef) (float32, error)

TryCGGradientGetContentHeadroom is like CGGradientGetContentHeadroom but returns an error instead of panicking if CGGradientGetContentHeadroom is unavailable at run time.

func TryCGGradientGetTypeID

func TryCGGradientGetTypeID() (uint, error)

TryCGGradientGetTypeID is like CGGradientGetTypeID but returns an error instead of panicking if CGGradientGetTypeID is unavailable at run time.

func TryCGGradientRelease

func TryCGGradientRelease(gradient CGGradientRef) error

TryCGGradientRelease is like CGGradientRelease but returns an error instead of panicking if CGGradientRelease is unavailable at run time.

func TryCGImageCalculateContentAverageLightLevel

func TryCGImageCalculateContentAverageLightLevel(image CGImageRef) (float32, error)

TryCGImageCalculateContentAverageLightLevel is like CGImageCalculateContentAverageLightLevel but returns an error instead of panicking if CGImageCalculateContentAverageLightLevel is unavailable at run time.

func TryCGImageCalculateContentHeadroom

func TryCGImageCalculateContentHeadroom(image CGImageRef) (float32, error)

TryCGImageCalculateContentHeadroom is like CGImageCalculateContentHeadroom but returns an error instead of panicking if CGImageCalculateContentHeadroom is unavailable at run time.

func TryCGImageContainsImageSpecificToneMappingMetadata

func TryCGImageContainsImageSpecificToneMappingMetadata(image CGImageRef) (bool, error)

TryCGImageContainsImageSpecificToneMappingMetadata is like CGImageContainsImageSpecificToneMappingMetadata but returns an error instead of panicking if CGImageContainsImageSpecificToneMappingMetadata is unavailable at run time.

func TryCGImageGetBitsPerComponent

func TryCGImageGetBitsPerComponent(image CGImageRef) (uintptr, error)

TryCGImageGetBitsPerComponent is like CGImageGetBitsPerComponent but returns an error instead of panicking if CGImageGetBitsPerComponent is unavailable at run time.

func TryCGImageGetBitsPerPixel

func TryCGImageGetBitsPerPixel(image CGImageRef) (uintptr, error)

TryCGImageGetBitsPerPixel is like CGImageGetBitsPerPixel but returns an error instead of panicking if CGImageGetBitsPerPixel is unavailable at run time.

func TryCGImageGetBytesPerRow

func TryCGImageGetBytesPerRow(image CGImageRef) (uintptr, error)

TryCGImageGetBytesPerRow is like CGImageGetBytesPerRow but returns an error instead of panicking if CGImageGetBytesPerRow is unavailable at run time.

func TryCGImageGetContentAverageLightLevel

func TryCGImageGetContentAverageLightLevel(image CGImageRef) (float32, error)

TryCGImageGetContentAverageLightLevel is like CGImageGetContentAverageLightLevel but returns an error instead of panicking if CGImageGetContentAverageLightLevel is unavailable at run time.

func TryCGImageGetContentHeadroom

func TryCGImageGetContentHeadroom(image CGImageRef) (float32, error)

TryCGImageGetContentHeadroom is like CGImageGetContentHeadroom but returns an error instead of panicking if CGImageGetContentHeadroom is unavailable at run time.

func TryCGImageGetDecode

func TryCGImageGetDecode(image CGImageRef) (*float64, error)

TryCGImageGetDecode is like CGImageGetDecode but returns an error instead of panicking if CGImageGetDecode is unavailable at run time.

func TryCGImageGetHeight

func TryCGImageGetHeight(image CGImageRef) (uintptr, error)

TryCGImageGetHeight is like CGImageGetHeight but returns an error instead of panicking if CGImageGetHeight is unavailable at run time.

func TryCGImageGetShouldInterpolate

func TryCGImageGetShouldInterpolate(image CGImageRef) (bool, error)

TryCGImageGetShouldInterpolate is like CGImageGetShouldInterpolate but returns an error instead of panicking if CGImageGetShouldInterpolate is unavailable at run time.

func TryCGImageGetTypeID

func TryCGImageGetTypeID() (uint, error)

TryCGImageGetTypeID is like CGImageGetTypeID but returns an error instead of panicking if CGImageGetTypeID is unavailable at run time.

func TryCGImageGetUTType

func TryCGImageGetUTType(image CGImageRef) (corefoundation.CFStringRef, error)

TryCGImageGetUTType is like CGImageGetUTType but returns an error instead of panicking if CGImageGetUTType is unavailable at run time.

func TryCGImageGetWidth

func TryCGImageGetWidth(image CGImageRef) (uintptr, error)

TryCGImageGetWidth is like CGImageGetWidth but returns an error instead of panicking if CGImageGetWidth is unavailable at run time.

func TryCGImageIsMask

func TryCGImageIsMask(image CGImageRef) (bool, error)

TryCGImageIsMask is like CGImageIsMask but returns an error instead of panicking if CGImageIsMask is unavailable at run time.

func TryCGImageRelease

func TryCGImageRelease(image CGImageRef) error

TryCGImageRelease is like CGImageRelease but returns an error instead of panicking if CGImageRelease is unavailable at run time.

func TryCGImageShouldToneMap

func TryCGImageShouldToneMap(image CGImageRef) (bool, error)

TryCGImageShouldToneMap is like CGImageShouldToneMap but returns an error instead of panicking if CGImageShouldToneMap is unavailable at run time.

func TryCGLayerGetSize

func TryCGLayerGetSize(layer CGLayerRef) (corefoundation.CGSize, error)

TryCGLayerGetSize is like CGLayerGetSize but returns an error instead of panicking if CGLayerGetSize is unavailable at run time.

func TryCGLayerGetTypeID

func TryCGLayerGetTypeID() (uint, error)

TryCGLayerGetTypeID is like CGLayerGetTypeID but returns an error instead of panicking if CGLayerGetTypeID is unavailable at run time.

func TryCGLayerRelease

func TryCGLayerRelease(layer CGLayerRef) error

TryCGLayerRelease is like CGLayerRelease but returns an error instead of panicking if CGLayerRelease is unavailable at run time.

func TryCGPDFArrayApplyBlock

func TryCGPDFArrayApplyBlock(array CGPDFArrayRef, block CGPDFArrayApplierBlock, info unsafe.Pointer) error

TryCGPDFArrayApplyBlock is like CGPDFArrayApplyBlock but returns an error instead of panicking if CGPDFArrayApplyBlock is unavailable at run time.

func TryCGPDFArrayGetArray

func TryCGPDFArrayGetArray(array CGPDFArrayRef, index uintptr, value *CGPDFArrayRef) (bool, error)

TryCGPDFArrayGetArray is like CGPDFArrayGetArray but returns an error instead of panicking if CGPDFArrayGetArray is unavailable at run time.

func TryCGPDFArrayGetBoolean

func TryCGPDFArrayGetBoolean(array CGPDFArrayRef, index uintptr, value *CGPDFBoolean) (bool, error)

TryCGPDFArrayGetBoolean is like CGPDFArrayGetBoolean but returns an error instead of panicking if CGPDFArrayGetBoolean is unavailable at run time.

func TryCGPDFArrayGetCount

func TryCGPDFArrayGetCount(array CGPDFArrayRef) (uintptr, error)

TryCGPDFArrayGetCount is like CGPDFArrayGetCount but returns an error instead of panicking if CGPDFArrayGetCount is unavailable at run time.

func TryCGPDFArrayGetDictionary

func TryCGPDFArrayGetDictionary(array CGPDFArrayRef, index uintptr, value *CGPDFDictionaryRef) (bool, error)

TryCGPDFArrayGetDictionary is like CGPDFArrayGetDictionary but returns an error instead of panicking if CGPDFArrayGetDictionary is unavailable at run time.

func TryCGPDFArrayGetInteger

func TryCGPDFArrayGetInteger(array CGPDFArrayRef, index uintptr, value *CGPDFInteger) (bool, error)

TryCGPDFArrayGetInteger is like CGPDFArrayGetInteger but returns an error instead of panicking if CGPDFArrayGetInteger is unavailable at run time.

func TryCGPDFArrayGetName

func TryCGPDFArrayGetName(array CGPDFArrayRef, index uintptr, value **byte) (bool, error)

TryCGPDFArrayGetName is like CGPDFArrayGetName but returns an error instead of panicking if CGPDFArrayGetName is unavailable at run time.

func TryCGPDFArrayGetNull

func TryCGPDFArrayGetNull(array CGPDFArrayRef, index uintptr) (bool, error)

TryCGPDFArrayGetNull is like CGPDFArrayGetNull but returns an error instead of panicking if CGPDFArrayGetNull is unavailable at run time.

func TryCGPDFArrayGetNumber

func TryCGPDFArrayGetNumber(array CGPDFArrayRef, index uintptr, value *CGPDFReal) (bool, error)

TryCGPDFArrayGetNumber is like CGPDFArrayGetNumber but returns an error instead of panicking if CGPDFArrayGetNumber is unavailable at run time.

func TryCGPDFArrayGetObject

func TryCGPDFArrayGetObject(array CGPDFArrayRef, index uintptr, value *CGPDFObjectRef) (bool, error)

TryCGPDFArrayGetObject is like CGPDFArrayGetObject but returns an error instead of panicking if CGPDFArrayGetObject is unavailable at run time.

func TryCGPDFArrayGetStream

func TryCGPDFArrayGetStream(array CGPDFArrayRef, index uintptr, value *CGPDFStreamRef) (bool, error)

TryCGPDFArrayGetStream is like CGPDFArrayGetStream but returns an error instead of panicking if CGPDFArrayGetStream is unavailable at run time.

func TryCGPDFArrayGetString

func TryCGPDFArrayGetString(array CGPDFArrayRef, index uintptr, value *CGPDFStringRef) (bool, error)

TryCGPDFArrayGetString is like CGPDFArrayGetString but returns an error instead of panicking if CGPDFArrayGetString is unavailable at run time.

func TryCGPDFContentStreamGetStreams

func TryCGPDFContentStreamGetStreams(cs CGPDFContentStreamRef) (corefoundation.CFArrayRef, error)

TryCGPDFContentStreamGetStreams is like CGPDFContentStreamGetStreams but returns an error instead of panicking if CGPDFContentStreamGetStreams is unavailable at run time.

func TryCGPDFContentStreamRelease

func TryCGPDFContentStreamRelease(cs CGPDFContentStreamRef) error

TryCGPDFContentStreamRelease is like CGPDFContentStreamRelease but returns an error instead of panicking if CGPDFContentStreamRelease is unavailable at run time.

func TryCGPDFContextAddDestinationAtPoint

func TryCGPDFContextAddDestinationAtPoint(context CGContextRef, name corefoundation.CFStringRef, point corefoundation.CGPoint) error

TryCGPDFContextAddDestinationAtPoint is like CGPDFContextAddDestinationAtPoint but returns an error instead of panicking if CGPDFContextAddDestinationAtPoint is unavailable at run time.

func TryCGPDFContextAddDocumentMetadata

func TryCGPDFContextAddDocumentMetadata(context CGContextRef, metadata corefoundation.CFDataRef) error

TryCGPDFContextAddDocumentMetadata is like CGPDFContextAddDocumentMetadata but returns an error instead of panicking if CGPDFContextAddDocumentMetadata is unavailable at run time.

func TryCGPDFContextBeginPage

func TryCGPDFContextBeginPage(context CGContextRef, pageInfo corefoundation.CFDictionaryRef) error

TryCGPDFContextBeginPage is like CGPDFContextBeginPage but returns an error instead of panicking if CGPDFContextBeginPage is unavailable at run time.

func TryCGPDFContextBeginTag

func TryCGPDFContextBeginTag(context CGContextRef, tagType CGPDFTagType, tagProperties corefoundation.CFDictionaryRef) error

TryCGPDFContextBeginTag is like CGPDFContextBeginTag but returns an error instead of panicking if CGPDFContextBeginTag is unavailable at run time.

func TryCGPDFContextClose

func TryCGPDFContextClose(context CGContextRef) error

TryCGPDFContextClose is like CGPDFContextClose but returns an error instead of panicking if CGPDFContextClose is unavailable at run time.

func TryCGPDFContextEndPage

func TryCGPDFContextEndPage(context CGContextRef) error

TryCGPDFContextEndPage is like CGPDFContextEndPage but returns an error instead of panicking if CGPDFContextEndPage is unavailable at run time.

func TryCGPDFContextEndTag

func TryCGPDFContextEndTag(context CGContextRef) error

TryCGPDFContextEndTag is like CGPDFContextEndTag but returns an error instead of panicking if CGPDFContextEndTag is unavailable at run time.

func TryCGPDFContextSetDestinationForRect

func TryCGPDFContextSetDestinationForRect(context CGContextRef, name corefoundation.CFStringRef, rect corefoundation.CGRect) error

TryCGPDFContextSetDestinationForRect is like CGPDFContextSetDestinationForRect but returns an error instead of panicking if CGPDFContextSetDestinationForRect is unavailable at run time.

func TryCGPDFContextSetIDTree

func TryCGPDFContextSetIDTree(context CGContextRef, IDTreeDictionary CGPDFDictionaryRef) error

TryCGPDFContextSetIDTree is like CGPDFContextSetIDTree but returns an error instead of panicking if CGPDFContextSetIDTree is unavailable at run time.

func TryCGPDFContextSetOutline

func TryCGPDFContextSetOutline(context CGContextRef, outline corefoundation.CFDictionaryRef) error

TryCGPDFContextSetOutline is like CGPDFContextSetOutline but returns an error instead of panicking if CGPDFContextSetOutline is unavailable at run time.

func TryCGPDFContextSetPageTagStructureTree

func TryCGPDFContextSetPageTagStructureTree(context CGContextRef, pageTagStructureTreeDictionary corefoundation.CFDictionaryRef) error

TryCGPDFContextSetPageTagStructureTree is like CGPDFContextSetPageTagStructureTree but returns an error instead of panicking if CGPDFContextSetPageTagStructureTree is unavailable at run time.

func TryCGPDFContextSetParentTree

func TryCGPDFContextSetParentTree(context CGContextRef, parentTreeDictionary CGPDFDictionaryRef) error

TryCGPDFContextSetParentTree is like CGPDFContextSetParentTree but returns an error instead of panicking if CGPDFContextSetParentTree is unavailable at run time.

func TryCGPDFContextSetURLForRect

func TryCGPDFContextSetURLForRect(context CGContextRef, url corefoundation.CFURLRef, rect corefoundation.CGRect) error

TryCGPDFContextSetURLForRect is like CGPDFContextSetURLForRect but returns an error instead of panicking if CGPDFContextSetURLForRect is unavailable at run time.

func TryCGPDFDictionaryApplyBlock

func TryCGPDFDictionaryApplyBlock(dict CGPDFDictionaryRef, block CGPDFDictionaryApplierBlock, info unsafe.Pointer) error

TryCGPDFDictionaryApplyBlock is like CGPDFDictionaryApplyBlock but returns an error instead of panicking if CGPDFDictionaryApplyBlock is unavailable at run time.

func TryCGPDFDictionaryApplyFunction

func TryCGPDFDictionaryApplyFunction(dict CGPDFDictionaryRef, function CGPDFDictionaryApplierFunction, info unsafe.Pointer) error

TryCGPDFDictionaryApplyFunction is like CGPDFDictionaryApplyFunction but returns an error instead of panicking if CGPDFDictionaryApplyFunction is unavailable at run time.

func TryCGPDFDictionaryGetArray

func TryCGPDFDictionaryGetArray(dict CGPDFDictionaryRef, key string, value *CGPDFArrayRef) (bool, error)

TryCGPDFDictionaryGetArray is like CGPDFDictionaryGetArray but returns an error instead of panicking if CGPDFDictionaryGetArray is unavailable at run time.

func TryCGPDFDictionaryGetBoolean

func TryCGPDFDictionaryGetBoolean(dict CGPDFDictionaryRef, key string, value *CGPDFBoolean) (bool, error)

TryCGPDFDictionaryGetBoolean is like CGPDFDictionaryGetBoolean but returns an error instead of panicking if CGPDFDictionaryGetBoolean is unavailable at run time.

func TryCGPDFDictionaryGetCount

func TryCGPDFDictionaryGetCount(dict CGPDFDictionaryRef) (uintptr, error)

TryCGPDFDictionaryGetCount is like CGPDFDictionaryGetCount but returns an error instead of panicking if CGPDFDictionaryGetCount is unavailable at run time.

func TryCGPDFDictionaryGetDictionary

func TryCGPDFDictionaryGetDictionary(dict CGPDFDictionaryRef, key string, value *CGPDFDictionaryRef) (bool, error)

TryCGPDFDictionaryGetDictionary is like CGPDFDictionaryGetDictionary but returns an error instead of panicking if CGPDFDictionaryGetDictionary is unavailable at run time.

func TryCGPDFDictionaryGetInteger

func TryCGPDFDictionaryGetInteger(dict CGPDFDictionaryRef, key string, value *CGPDFInteger) (bool, error)

TryCGPDFDictionaryGetInteger is like CGPDFDictionaryGetInteger but returns an error instead of panicking if CGPDFDictionaryGetInteger is unavailable at run time.

func TryCGPDFDictionaryGetName

func TryCGPDFDictionaryGetName(dict CGPDFDictionaryRef, key string, value **byte) (bool, error)

TryCGPDFDictionaryGetName is like CGPDFDictionaryGetName but returns an error instead of panicking if CGPDFDictionaryGetName is unavailable at run time.

func TryCGPDFDictionaryGetNumber

func TryCGPDFDictionaryGetNumber(dict CGPDFDictionaryRef, key string, value *CGPDFReal) (bool, error)

TryCGPDFDictionaryGetNumber is like CGPDFDictionaryGetNumber but returns an error instead of panicking if CGPDFDictionaryGetNumber is unavailable at run time.

func TryCGPDFDictionaryGetObject

func TryCGPDFDictionaryGetObject(dict CGPDFDictionaryRef, key string, value *CGPDFObjectRef) (bool, error)

TryCGPDFDictionaryGetObject is like CGPDFDictionaryGetObject but returns an error instead of panicking if CGPDFDictionaryGetObject is unavailable at run time.

func TryCGPDFDictionaryGetStream

func TryCGPDFDictionaryGetStream(dict CGPDFDictionaryRef, key string, value *CGPDFStreamRef) (bool, error)

TryCGPDFDictionaryGetStream is like CGPDFDictionaryGetStream but returns an error instead of panicking if CGPDFDictionaryGetStream is unavailable at run time.

func TryCGPDFDictionaryGetString

func TryCGPDFDictionaryGetString(dict CGPDFDictionaryRef, key string, value *CGPDFStringRef) (bool, error)

TryCGPDFDictionaryGetString is like CGPDFDictionaryGetString but returns an error instead of panicking if CGPDFDictionaryGetString is unavailable at run time.

func TryCGPDFDocumentAllowsCopying

func TryCGPDFDocumentAllowsCopying(document CGPDFDocumentRef) (bool, error)

TryCGPDFDocumentAllowsCopying is like CGPDFDocumentAllowsCopying but returns an error instead of panicking if CGPDFDocumentAllowsCopying is unavailable at run time.

func TryCGPDFDocumentAllowsPrinting

func TryCGPDFDocumentAllowsPrinting(document CGPDFDocumentRef) (bool, error)

TryCGPDFDocumentAllowsPrinting is like CGPDFDocumentAllowsPrinting but returns an error instead of panicking if CGPDFDocumentAllowsPrinting is unavailable at run time.

func TryCGPDFDocumentGetArtBox

func TryCGPDFDocumentGetArtBox(document CGPDFDocumentRef, page int32) (corefoundation.CGRect, error)

TryCGPDFDocumentGetArtBox is like CGPDFDocumentGetArtBox but returns an error instead of panicking if CGPDFDocumentGetArtBox is unavailable at run time.

func TryCGPDFDocumentGetBleedBox

func TryCGPDFDocumentGetBleedBox(document CGPDFDocumentRef, page int32) (corefoundation.CGRect, error)

TryCGPDFDocumentGetBleedBox is like CGPDFDocumentGetBleedBox but returns an error instead of panicking if CGPDFDocumentGetBleedBox is unavailable at run time.

func TryCGPDFDocumentGetCropBox

func TryCGPDFDocumentGetCropBox(document CGPDFDocumentRef, page int32) (corefoundation.CGRect, error)

TryCGPDFDocumentGetCropBox is like CGPDFDocumentGetCropBox but returns an error instead of panicking if CGPDFDocumentGetCropBox is unavailable at run time.

func TryCGPDFDocumentGetMediaBox

func TryCGPDFDocumentGetMediaBox(document CGPDFDocumentRef, page int32) (corefoundation.CGRect, error)

TryCGPDFDocumentGetMediaBox is like CGPDFDocumentGetMediaBox but returns an error instead of panicking if CGPDFDocumentGetMediaBox is unavailable at run time.

func TryCGPDFDocumentGetNumberOfPages

func TryCGPDFDocumentGetNumberOfPages(document CGPDFDocumentRef) (uintptr, error)

TryCGPDFDocumentGetNumberOfPages is like CGPDFDocumentGetNumberOfPages but returns an error instead of panicking if CGPDFDocumentGetNumberOfPages is unavailable at run time.

func TryCGPDFDocumentGetOutline

func TryCGPDFDocumentGetOutline(document CGPDFDocumentRef) (corefoundation.CFDictionaryRef, error)

TryCGPDFDocumentGetOutline is like CGPDFDocumentGetOutline but returns an error instead of panicking if CGPDFDocumentGetOutline is unavailable at run time.

func TryCGPDFDocumentGetRotationAngle

func TryCGPDFDocumentGetRotationAngle(document CGPDFDocumentRef, page int32) (int32, error)

TryCGPDFDocumentGetRotationAngle is like CGPDFDocumentGetRotationAngle but returns an error instead of panicking if CGPDFDocumentGetRotationAngle is unavailable at run time.

func TryCGPDFDocumentGetTrimBox

func TryCGPDFDocumentGetTrimBox(document CGPDFDocumentRef, page int32) (corefoundation.CGRect, error)

TryCGPDFDocumentGetTrimBox is like CGPDFDocumentGetTrimBox but returns an error instead of panicking if CGPDFDocumentGetTrimBox is unavailable at run time.

func TryCGPDFDocumentGetTypeID

func TryCGPDFDocumentGetTypeID() (uint, error)

TryCGPDFDocumentGetTypeID is like CGPDFDocumentGetTypeID but returns an error instead of panicking if CGPDFDocumentGetTypeID is unavailable at run time.

func TryCGPDFDocumentGetVersion

func TryCGPDFDocumentGetVersion(document CGPDFDocumentRef, majorVersion *int32, minorVersion *int32) error

TryCGPDFDocumentGetVersion is like CGPDFDocumentGetVersion but returns an error instead of panicking if CGPDFDocumentGetVersion is unavailable at run time.

func TryCGPDFDocumentIsEncrypted

func TryCGPDFDocumentIsEncrypted(document CGPDFDocumentRef) (bool, error)

TryCGPDFDocumentIsEncrypted is like CGPDFDocumentIsEncrypted but returns an error instead of panicking if CGPDFDocumentIsEncrypted is unavailable at run time.

func TryCGPDFDocumentIsUnlocked

func TryCGPDFDocumentIsUnlocked(document CGPDFDocumentRef) (bool, error)

TryCGPDFDocumentIsUnlocked is like CGPDFDocumentIsUnlocked but returns an error instead of panicking if CGPDFDocumentIsUnlocked is unavailable at run time.

func TryCGPDFDocumentRelease

func TryCGPDFDocumentRelease(document CGPDFDocumentRef) error

TryCGPDFDocumentRelease is like CGPDFDocumentRelease but returns an error instead of panicking if CGPDFDocumentRelease is unavailable at run time.

func TryCGPDFDocumentUnlockWithPassword

func TryCGPDFDocumentUnlockWithPassword(document CGPDFDocumentRef, password string) (bool, error)

TryCGPDFDocumentUnlockWithPassword is like CGPDFDocumentUnlockWithPassword but returns an error instead of panicking if CGPDFDocumentUnlockWithPassword is unavailable at run time.

func TryCGPDFObjectGetValue

func TryCGPDFObjectGetValue(object CGPDFObjectRef, type_ CGPDFObjectType, value unsafe.Pointer) (bool, error)

TryCGPDFObjectGetValue is like CGPDFObjectGetValue but returns an error instead of panicking if CGPDFObjectGetValue is unavailable at run time.

func TryCGPDFOperatorTableRelease

func TryCGPDFOperatorTableRelease(table CGPDFOperatorTableRef) error

TryCGPDFOperatorTableRelease is like CGPDFOperatorTableRelease but returns an error instead of panicking if CGPDFOperatorTableRelease is unavailable at run time.

func TryCGPDFOperatorTableSetCallback

func TryCGPDFOperatorTableSetCallback(table CGPDFOperatorTableRef, name string, callback CGPDFOperatorCallback) error

TryCGPDFOperatorTableSetCallback is like CGPDFOperatorTableSetCallback but returns an error instead of panicking if CGPDFOperatorTableSetCallback is unavailable at run time.

func TryCGPDFPageGetBoxRect

func TryCGPDFPageGetBoxRect(page CGPDFPageRef, box CGPDFBox) (corefoundation.CGRect, error)

TryCGPDFPageGetBoxRect is like CGPDFPageGetBoxRect but returns an error instead of panicking if CGPDFPageGetBoxRect is unavailable at run time.

func TryCGPDFPageGetDrawingTransform

func TryCGPDFPageGetDrawingTransform(page CGPDFPageRef, box CGPDFBox, rect corefoundation.CGRect, rotate int32, preserveAspectRatio bool) (corefoundation.CGAffineTransform, error)

TryCGPDFPageGetDrawingTransform is like CGPDFPageGetDrawingTransform but returns an error instead of panicking if CGPDFPageGetDrawingTransform is unavailable at run time.

func TryCGPDFPageGetPageNumber

func TryCGPDFPageGetPageNumber(page CGPDFPageRef) (uintptr, error)

TryCGPDFPageGetPageNumber is like CGPDFPageGetPageNumber but returns an error instead of panicking if CGPDFPageGetPageNumber is unavailable at run time.

func TryCGPDFPageGetRotationAngle

func TryCGPDFPageGetRotationAngle(page CGPDFPageRef) (int32, error)

TryCGPDFPageGetRotationAngle is like CGPDFPageGetRotationAngle but returns an error instead of panicking if CGPDFPageGetRotationAngle is unavailable at run time.

func TryCGPDFPageGetTypeID

func TryCGPDFPageGetTypeID() (uint, error)

TryCGPDFPageGetTypeID is like CGPDFPageGetTypeID but returns an error instead of panicking if CGPDFPageGetTypeID is unavailable at run time.

func TryCGPDFPageRelease

func TryCGPDFPageRelease(page CGPDFPageRef) error

TryCGPDFPageRelease is like CGPDFPageRelease but returns an error instead of panicking if CGPDFPageRelease is unavailable at run time.

func TryCGPDFScannerPopArray

func TryCGPDFScannerPopArray(scanner CGPDFScannerRef, value *CGPDFArrayRef) (bool, error)

TryCGPDFScannerPopArray is like CGPDFScannerPopArray but returns an error instead of panicking if CGPDFScannerPopArray is unavailable at run time.

func TryCGPDFScannerPopBoolean

func TryCGPDFScannerPopBoolean(scanner CGPDFScannerRef, value *CGPDFBoolean) (bool, error)

TryCGPDFScannerPopBoolean is like CGPDFScannerPopBoolean but returns an error instead of panicking if CGPDFScannerPopBoolean is unavailable at run time.

func TryCGPDFScannerPopDictionary

func TryCGPDFScannerPopDictionary(scanner CGPDFScannerRef, value *CGPDFDictionaryRef) (bool, error)

TryCGPDFScannerPopDictionary is like CGPDFScannerPopDictionary but returns an error instead of panicking if CGPDFScannerPopDictionary is unavailable at run time.

func TryCGPDFScannerPopInteger

func TryCGPDFScannerPopInteger(scanner CGPDFScannerRef, value *CGPDFInteger) (bool, error)

TryCGPDFScannerPopInteger is like CGPDFScannerPopInteger but returns an error instead of panicking if CGPDFScannerPopInteger is unavailable at run time.

func TryCGPDFScannerPopName

func TryCGPDFScannerPopName(scanner CGPDFScannerRef, value **byte) (bool, error)

TryCGPDFScannerPopName is like CGPDFScannerPopName but returns an error instead of panicking if CGPDFScannerPopName is unavailable at run time.

func TryCGPDFScannerPopNumber

func TryCGPDFScannerPopNumber(scanner CGPDFScannerRef, value *CGPDFReal) (bool, error)

TryCGPDFScannerPopNumber is like CGPDFScannerPopNumber but returns an error instead of panicking if CGPDFScannerPopNumber is unavailable at run time.

func TryCGPDFScannerPopObject

func TryCGPDFScannerPopObject(scanner CGPDFScannerRef, value *CGPDFObjectRef) (bool, error)

TryCGPDFScannerPopObject is like CGPDFScannerPopObject but returns an error instead of panicking if CGPDFScannerPopObject is unavailable at run time.

func TryCGPDFScannerPopStream

func TryCGPDFScannerPopStream(scanner CGPDFScannerRef, value *CGPDFStreamRef) (bool, error)

TryCGPDFScannerPopStream is like CGPDFScannerPopStream but returns an error instead of panicking if CGPDFScannerPopStream is unavailable at run time.

func TryCGPDFScannerPopString

func TryCGPDFScannerPopString(scanner CGPDFScannerRef, value *CGPDFStringRef) (bool, error)

TryCGPDFScannerPopString is like CGPDFScannerPopString but returns an error instead of panicking if CGPDFScannerPopString is unavailable at run time.

func TryCGPDFScannerRelease

func TryCGPDFScannerRelease(scanner CGPDFScannerRef) error

TryCGPDFScannerRelease is like CGPDFScannerRelease but returns an error instead of panicking if CGPDFScannerRelease is unavailable at run time.

func TryCGPDFScannerScan

func TryCGPDFScannerScan(scanner CGPDFScannerRef) (bool, error)

TryCGPDFScannerScan is like CGPDFScannerScan but returns an error instead of panicking if CGPDFScannerScan is unavailable at run time.

func TryCGPDFScannerStop

func TryCGPDFScannerStop(s CGPDFScannerRef) error

TryCGPDFScannerStop is like CGPDFScannerStop but returns an error instead of panicking if CGPDFScannerStop is unavailable at run time.

func TryCGPDFStreamCopyData

func TryCGPDFStreamCopyData(stream CGPDFStreamRef, format *CGPDFDataFormat) (corefoundation.CFDataRef, error)

TryCGPDFStreamCopyData is like CGPDFStreamCopyData but returns an error instead of panicking if CGPDFStreamCopyData is unavailable at run time.

func TryCGPDFStringCopyDate

func TryCGPDFStringCopyDate(string_ CGPDFStringRef) (corefoundation.CFDateRef, error)

TryCGPDFStringCopyDate is like CGPDFStringCopyDate but returns an error instead of panicking if CGPDFStringCopyDate is unavailable at run time.

func TryCGPDFStringCopyTextString

func TryCGPDFStringCopyTextString(string_ CGPDFStringRef) (corefoundation.CFStringRef, error)

TryCGPDFStringCopyTextString is like CGPDFStringCopyTextString but returns an error instead of panicking if CGPDFStringCopyTextString is unavailable at run time.

func TryCGPDFStringGetBytePtr

func TryCGPDFStringGetBytePtr(string_ CGPDFStringRef) (*byte, error)

TryCGPDFStringGetBytePtr is like CGPDFStringGetBytePtr but returns an error instead of panicking if CGPDFStringGetBytePtr is unavailable at run time.

func TryCGPDFStringGetLength

func TryCGPDFStringGetLength(string_ CGPDFStringRef) (uintptr, error)

TryCGPDFStringGetLength is like CGPDFStringGetLength but returns an error instead of panicking if CGPDFStringGetLength is unavailable at run time.

func TryCGPDFTagTypeGetName

func TryCGPDFTagTypeGetName(tagType CGPDFTagType) (*byte, error)

TryCGPDFTagTypeGetName is like CGPDFTagTypeGetName but returns an error instead of panicking if CGPDFTagTypeGetName is unavailable at run time.

func TryCGPSConverterAbort

func TryCGPSConverterAbort(converter CGPSConverterRef) (bool, error)

TryCGPSConverterAbort is like CGPSConverterAbort but returns an error instead of panicking if CGPSConverterAbort is unavailable at run time.

func TryCGPSConverterConvert

func TryCGPSConverterConvert(converter CGPSConverterRef, provider CGDataProviderRef, consumer CGDataConsumerRef, options corefoundation.CFDictionaryRef) (bool, error)

TryCGPSConverterConvert is like CGPSConverterConvert but returns an error instead of panicking if CGPSConverterConvert is unavailable at run time.

func TryCGPSConverterGetTypeID

func TryCGPSConverterGetTypeID() (uint, error)

TryCGPSConverterGetTypeID is like CGPSConverterGetTypeID but returns an error instead of panicking if CGPSConverterGetTypeID is unavailable at run time.

func TryCGPSConverterIsConverting

func TryCGPSConverterIsConverting(converter CGPSConverterRef) (bool, error)

TryCGPSConverterIsConverting is like CGPSConverterIsConverting but returns an error instead of panicking if CGPSConverterIsConverting is unavailable at run time.

func TryCGPathAddArc

func TryCGPathAddArc(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64, radius float64, startAngle float64, endAngle float64, clockwise bool) error

TryCGPathAddArc is like CGPathAddArc but returns an error instead of panicking if CGPathAddArc is unavailable at run time.

func TryCGPathAddArcToPoint

func TryCGPathAddArcToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x1 float64, y1 float64, x2 float64, y2 float64, radius float64) error

TryCGPathAddArcToPoint is like CGPathAddArcToPoint but returns an error instead of panicking if CGPathAddArcToPoint is unavailable at run time.

func TryCGPathAddCurveToPoint

func TryCGPathAddCurveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64) error

TryCGPathAddCurveToPoint is like CGPathAddCurveToPoint but returns an error instead of panicking if CGPathAddCurveToPoint is unavailable at run time.

func TryCGPathAddEllipseInRect

func TryCGPathAddEllipseInRect(path CGMutablePathRef, m *corefoundation.CGAffineTransform, rect corefoundation.CGRect) error

TryCGPathAddEllipseInRect is like CGPathAddEllipseInRect but returns an error instead of panicking if CGPathAddEllipseInRect is unavailable at run time.

func TryCGPathAddLineToPoint

func TryCGPathAddLineToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64) error

TryCGPathAddLineToPoint is like CGPathAddLineToPoint but returns an error instead of panicking if CGPathAddLineToPoint is unavailable at run time.

func TryCGPathAddLines

func TryCGPathAddLines(path CGMutablePathRef, m *corefoundation.CGAffineTransform, points *corefoundation.CGPoint, count uintptr) error

TryCGPathAddLines is like CGPathAddLines but returns an error instead of panicking if CGPathAddLines is unavailable at run time.

func TryCGPathAddPath

func TryCGPathAddPath(path1 CGMutablePathRef, m *corefoundation.CGAffineTransform, path2 CGPathRef) error

TryCGPathAddPath is like CGPathAddPath but returns an error instead of panicking if CGPathAddPath is unavailable at run time.

func TryCGPathAddQuadCurveToPoint

func TryCGPathAddQuadCurveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, cpx float64, cpy float64, x float64, y float64) error

TryCGPathAddQuadCurveToPoint is like CGPathAddQuadCurveToPoint but returns an error instead of panicking if CGPathAddQuadCurveToPoint is unavailable at run time.

func TryCGPathAddRect

TryCGPathAddRect is like CGPathAddRect but returns an error instead of panicking if CGPathAddRect is unavailable at run time.

func TryCGPathAddRects

func TryCGPathAddRects(path CGMutablePathRef, m *corefoundation.CGAffineTransform, rects *corefoundation.CGRect, count uintptr) error

TryCGPathAddRects is like CGPathAddRects but returns an error instead of panicking if CGPathAddRects is unavailable at run time.

func TryCGPathAddRelativeArc

func TryCGPathAddRelativeArc(path CGMutablePathRef, matrix *corefoundation.CGAffineTransform, x float64, y float64, radius float64, startAngle float64, delta float64) error

TryCGPathAddRelativeArc is like CGPathAddRelativeArc but returns an error instead of panicking if CGPathAddRelativeArc is unavailable at run time.

func TryCGPathAddRoundedRect

func TryCGPathAddRoundedRect(path CGMutablePathRef, transform *corefoundation.CGAffineTransform, rect corefoundation.CGRect, cornerWidth float64, cornerHeight float64) error

TryCGPathAddRoundedRect is like CGPathAddRoundedRect but returns an error instead of panicking if CGPathAddRoundedRect is unavailable at run time.

func TryCGPathApply

func TryCGPathApply(path CGPathRef, info unsafe.Pointer, function CGPathApplierFunction) error

TryCGPathApply is like CGPathApply but returns an error instead of panicking if CGPathApply is unavailable at run time.

func TryCGPathApplyWithBlock

func TryCGPathApplyWithBlock(path CGPathRef, block CGPathApplyBlock) error

TryCGPathApplyWithBlock is like CGPathApplyWithBlock but returns an error instead of panicking if CGPathApplyWithBlock is unavailable at run time.

func TryCGPathCloseSubpath

func TryCGPathCloseSubpath(path CGMutablePathRef) error

TryCGPathCloseSubpath is like CGPathCloseSubpath but returns an error instead of panicking if CGPathCloseSubpath is unavailable at run time.

func TryCGPathContainsPoint

func TryCGPathContainsPoint(path CGPathRef, m *corefoundation.CGAffineTransform, point corefoundation.CGPoint, eoFill bool) (bool, error)

TryCGPathContainsPoint is like CGPathContainsPoint but returns an error instead of panicking if CGPathContainsPoint is unavailable at run time.

func TryCGPathCreateSeparateComponents

func TryCGPathCreateSeparateComponents(path CGPathRef, evenOddFillRule bool) (corefoundation.CFArrayRef, error)

TryCGPathCreateSeparateComponents is like CGPathCreateSeparateComponents but returns an error instead of panicking if CGPathCreateSeparateComponents is unavailable at run time.

func TryCGPathEqualToPath

func TryCGPathEqualToPath(path1 CGPathRef, path2 CGPathRef) (bool, error)

TryCGPathEqualToPath is like CGPathEqualToPath but returns an error instead of panicking if CGPathEqualToPath is unavailable at run time.

func TryCGPathGetBoundingBox

func TryCGPathGetBoundingBox(path CGPathRef) (corefoundation.CGRect, error)

TryCGPathGetBoundingBox is like CGPathGetBoundingBox but returns an error instead of panicking if CGPathGetBoundingBox is unavailable at run time.

func TryCGPathGetCurrentPoint

func TryCGPathGetCurrentPoint(path CGPathRef) (corefoundation.CGPoint, error)

TryCGPathGetCurrentPoint is like CGPathGetCurrentPoint but returns an error instead of panicking if CGPathGetCurrentPoint is unavailable at run time.

func TryCGPathGetPathBoundingBox

func TryCGPathGetPathBoundingBox(path CGPathRef) (corefoundation.CGRect, error)

TryCGPathGetPathBoundingBox is like CGPathGetPathBoundingBox but returns an error instead of panicking if CGPathGetPathBoundingBox is unavailable at run time.

func TryCGPathGetTypeID

func TryCGPathGetTypeID() (uint, error)

TryCGPathGetTypeID is like CGPathGetTypeID but returns an error instead of panicking if CGPathGetTypeID is unavailable at run time.

func TryCGPathIntersectsPath

func TryCGPathIntersectsPath(path1 CGPathRef, path2 CGPathRef, evenOddFillRule bool) (bool, error)

TryCGPathIntersectsPath is like CGPathIntersectsPath but returns an error instead of panicking if CGPathIntersectsPath is unavailable at run time.

func TryCGPathIsEmpty

func TryCGPathIsEmpty(path CGPathRef) (bool, error)

TryCGPathIsEmpty is like CGPathIsEmpty but returns an error instead of panicking if CGPathIsEmpty is unavailable at run time.

func TryCGPathIsRect

func TryCGPathIsRect(path CGPathRef, rect *corefoundation.CGRect) (bool, error)

TryCGPathIsRect is like CGPathIsRect but returns an error instead of panicking if CGPathIsRect is unavailable at run time.

func TryCGPathMoveToPoint

func TryCGPathMoveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64) error

TryCGPathMoveToPoint is like CGPathMoveToPoint but returns an error instead of panicking if CGPathMoveToPoint is unavailable at run time.

func TryCGPathRelease

func TryCGPathRelease(path CGPathRef) error

TryCGPathRelease is like CGPathRelease but returns an error instead of panicking if CGPathRelease is unavailable at run time.

func TryCGPatternGetTypeID

func TryCGPatternGetTypeID() (uint, error)

TryCGPatternGetTypeID is like CGPatternGetTypeID but returns an error instead of panicking if CGPatternGetTypeID is unavailable at run time.

func TryCGPatternRelease

func TryCGPatternRelease(pattern CGPatternRef) error

TryCGPatternRelease is like CGPatternRelease but returns an error instead of panicking if CGPatternRelease is unavailable at run time.

func TryCGPointApplyAffineTransform

func TryCGPointApplyAffineTransform(point corefoundation.CGPoint, t corefoundation.CGAffineTransform) (corefoundation.CGPoint, error)

TryCGPointApplyAffineTransform is like CGPointApplyAffineTransform but returns an error instead of panicking if CGPointApplyAffineTransform is unavailable at run time.

func TryCGPointCreateDictionaryRepresentation

func TryCGPointCreateDictionaryRepresentation(point corefoundation.CGPoint) (corefoundation.CFDictionaryRef, error)

TryCGPointCreateDictionaryRepresentation is like CGPointCreateDictionaryRepresentation but returns an error instead of panicking if CGPointCreateDictionaryRepresentation is unavailable at run time.

func TryCGPointEqualToPoint

func TryCGPointEqualToPoint(point1 corefoundation.CGPoint, point2 corefoundation.CGPoint) (bool, error)

TryCGPointEqualToPoint is like CGPointEqualToPoint but returns an error instead of panicking if CGPointEqualToPoint is unavailable at run time.

func TryCGPointMakeWithDictionaryRepresentation

func TryCGPointMakeWithDictionaryRepresentation(dict corefoundation.CFDictionaryRef, point *corefoundation.CGPoint) (bool, error)

TryCGPointMakeWithDictionaryRepresentation is like CGPointMakeWithDictionaryRepresentation but returns an error instead of panicking if CGPointMakeWithDictionaryRepresentation is unavailable at run time.

func TryCGPreflightListenEventAccess

func TryCGPreflightListenEventAccess() (bool, error)

TryCGPreflightListenEventAccess is like CGPreflightListenEventAccess but returns an error instead of panicking if CGPreflightListenEventAccess is unavailable at run time.

func TryCGPreflightPostEventAccess

func TryCGPreflightPostEventAccess() (bool, error)

TryCGPreflightPostEventAccess is like CGPreflightPostEventAccess but returns an error instead of panicking if CGPreflightPostEventAccess is unavailable at run time.

func TryCGPreflightScreenCaptureAccess

func TryCGPreflightScreenCaptureAccess() (bool, error)

TryCGPreflightScreenCaptureAccess is like CGPreflightScreenCaptureAccess but returns an error instead of panicking if CGPreflightScreenCaptureAccess is unavailable at run time.

func TryCGRectApplyAffineTransform

func TryCGRectApplyAffineTransform(rect corefoundation.CGRect, t corefoundation.CGAffineTransform) (corefoundation.CGRect, error)

TryCGRectApplyAffineTransform is like CGRectApplyAffineTransform but returns an error instead of panicking if CGRectApplyAffineTransform is unavailable at run time.

func TryCGRectContainsPoint

func TryCGRectContainsPoint(rect corefoundation.CGRect, point corefoundation.CGPoint) (bool, error)

TryCGRectContainsPoint is like CGRectContainsPoint but returns an error instead of panicking if CGRectContainsPoint is unavailable at run time.

func TryCGRectContainsRect

func TryCGRectContainsRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) (bool, error)

TryCGRectContainsRect is like CGRectContainsRect but returns an error instead of panicking if CGRectContainsRect is unavailable at run time.

func TryCGRectCreateDictionaryRepresentation

func TryCGRectCreateDictionaryRepresentation(arg0 corefoundation.CGRect) (corefoundation.CFDictionaryRef, error)

TryCGRectCreateDictionaryRepresentation is like CGRectCreateDictionaryRepresentation but returns an error instead of panicking if CGRectCreateDictionaryRepresentation is unavailable at run time.

func TryCGRectDivide

func TryCGRectDivide(rect corefoundation.CGRect, slice *corefoundation.CGRect, remainder *corefoundation.CGRect, amount float64, edge CGRectEdge) error

TryCGRectDivide is like CGRectDivide but returns an error instead of panicking if CGRectDivide is unavailable at run time.

func TryCGRectEqualToRect

func TryCGRectEqualToRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) (bool, error)

TryCGRectEqualToRect is like CGRectEqualToRect but returns an error instead of panicking if CGRectEqualToRect is unavailable at run time.

func TryCGRectGetHeight

func TryCGRectGetHeight(rect corefoundation.CGRect) (float64, error)

TryCGRectGetHeight is like CGRectGetHeight but returns an error instead of panicking if CGRectGetHeight is unavailable at run time.

func TryCGRectGetMaxX

func TryCGRectGetMaxX(rect corefoundation.CGRect) (float64, error)

TryCGRectGetMaxX is like CGRectGetMaxX but returns an error instead of panicking if CGRectGetMaxX is unavailable at run time.

func TryCGRectGetMaxY

func TryCGRectGetMaxY(rect corefoundation.CGRect) (float64, error)

TryCGRectGetMaxY is like CGRectGetMaxY but returns an error instead of panicking if CGRectGetMaxY is unavailable at run time.

func TryCGRectGetMidX

func TryCGRectGetMidX(rect corefoundation.CGRect) (float64, error)

TryCGRectGetMidX is like CGRectGetMidX but returns an error instead of panicking if CGRectGetMidX is unavailable at run time.

func TryCGRectGetMidY

func TryCGRectGetMidY(rect corefoundation.CGRect) (float64, error)

TryCGRectGetMidY is like CGRectGetMidY but returns an error instead of panicking if CGRectGetMidY is unavailable at run time.

func TryCGRectGetMinX

func TryCGRectGetMinX(rect corefoundation.CGRect) (float64, error)

TryCGRectGetMinX is like CGRectGetMinX but returns an error instead of panicking if CGRectGetMinX is unavailable at run time.

func TryCGRectGetMinY

func TryCGRectGetMinY(rect corefoundation.CGRect) (float64, error)

TryCGRectGetMinY is like CGRectGetMinY but returns an error instead of panicking if CGRectGetMinY is unavailable at run time.

func TryCGRectGetWidth

func TryCGRectGetWidth(rect corefoundation.CGRect) (float64, error)

TryCGRectGetWidth is like CGRectGetWidth but returns an error instead of panicking if CGRectGetWidth is unavailable at run time.

func TryCGRectInset

func TryCGRectInset(rect corefoundation.CGRect, dx float64, dy float64) (corefoundation.CGRect, error)

TryCGRectInset is like CGRectInset but returns an error instead of panicking if CGRectInset is unavailable at run time.

func TryCGRectIntegral

func TryCGRectIntegral(rect corefoundation.CGRect) (corefoundation.CGRect, error)

TryCGRectIntegral is like CGRectIntegral but returns an error instead of panicking if CGRectIntegral is unavailable at run time.

func TryCGRectIntersection

func TryCGRectIntersection(r1 corefoundation.CGRect, r2 corefoundation.CGRect) (corefoundation.CGRect, error)

TryCGRectIntersection is like CGRectIntersection but returns an error instead of panicking if CGRectIntersection is unavailable at run time.

func TryCGRectIntersectsRect

func TryCGRectIntersectsRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) (bool, error)

TryCGRectIntersectsRect is like CGRectIntersectsRect but returns an error instead of panicking if CGRectIntersectsRect is unavailable at run time.

func TryCGRectIsEmpty

func TryCGRectIsEmpty(rect corefoundation.CGRect) (bool, error)

TryCGRectIsEmpty is like CGRectIsEmpty but returns an error instead of panicking if CGRectIsEmpty is unavailable at run time.

func TryCGRectIsInfinite

func TryCGRectIsInfinite(rect corefoundation.CGRect) (bool, error)

TryCGRectIsInfinite is like CGRectIsInfinite but returns an error instead of panicking if CGRectIsInfinite is unavailable at run time.

func TryCGRectIsNull

func TryCGRectIsNull(rect corefoundation.CGRect) (bool, error)

TryCGRectIsNull is like CGRectIsNull but returns an error instead of panicking if CGRectIsNull is unavailable at run time.

func TryCGRectMakeWithDictionaryRepresentation

func TryCGRectMakeWithDictionaryRepresentation(dict corefoundation.CFDictionaryRef, rect *corefoundation.CGRect) (bool, error)

TryCGRectMakeWithDictionaryRepresentation is like CGRectMakeWithDictionaryRepresentation but returns an error instead of panicking if CGRectMakeWithDictionaryRepresentation is unavailable at run time.

func TryCGRectOffset

func TryCGRectOffset(rect corefoundation.CGRect, dx float64, dy float64) (corefoundation.CGRect, error)

TryCGRectOffset is like CGRectOffset but returns an error instead of panicking if CGRectOffset is unavailable at run time.

func TryCGRectStandardize

func TryCGRectStandardize(rect corefoundation.CGRect) (corefoundation.CGRect, error)

TryCGRectStandardize is like CGRectStandardize but returns an error instead of panicking if CGRectStandardize is unavailable at run time.

func TryCGRectUnion

TryCGRectUnion is like CGRectUnion but returns an error instead of panicking if CGRectUnion is unavailable at run time.

func TryCGRenderingBufferLockBytePtr

func TryCGRenderingBufferLockBytePtr(provider CGRenderingBufferProviderRef) (unsafe.Pointer, error)

TryCGRenderingBufferLockBytePtr is like CGRenderingBufferLockBytePtr but returns an error instead of panicking if CGRenderingBufferLockBytePtr is unavailable at run time.

func TryCGRenderingBufferProviderGetSize

func TryCGRenderingBufferProviderGetSize(provider CGRenderingBufferProviderRef) (uintptr, error)

TryCGRenderingBufferProviderGetSize is like CGRenderingBufferProviderGetSize but returns an error instead of panicking if CGRenderingBufferProviderGetSize is unavailable at run time.

func TryCGRenderingBufferProviderGetTypeID

func TryCGRenderingBufferProviderGetTypeID() (uint, error)

TryCGRenderingBufferProviderGetTypeID is like CGRenderingBufferProviderGetTypeID but returns an error instead of panicking if CGRenderingBufferProviderGetTypeID is unavailable at run time.

func TryCGRenderingBufferUnlockBytePtr

func TryCGRenderingBufferUnlockBytePtr(provider CGRenderingBufferProviderRef) error

TryCGRenderingBufferUnlockBytePtr is like CGRenderingBufferUnlockBytePtr but returns an error instead of panicking if CGRenderingBufferUnlockBytePtr is unavailable at run time.

func TryCGRequestListenEventAccess

func TryCGRequestListenEventAccess() (bool, error)

TryCGRequestListenEventAccess is like CGRequestListenEventAccess but returns an error instead of panicking if CGRequestListenEventAccess is unavailable at run time.

func TryCGRequestPostEventAccess

func TryCGRequestPostEventAccess() (bool, error)

TryCGRequestPostEventAccess is like CGRequestPostEventAccess but returns an error instead of panicking if CGRequestPostEventAccess is unavailable at run time.

func TryCGRequestScreenCaptureAccess

func TryCGRequestScreenCaptureAccess() (bool, error)

TryCGRequestScreenCaptureAccess is like CGRequestScreenCaptureAccess but returns an error instead of panicking if CGRequestScreenCaptureAccess is unavailable at run time.

func TryCGRestorePermanentDisplayConfiguration

func TryCGRestorePermanentDisplayConfiguration() error

TryCGRestorePermanentDisplayConfiguration is like CGRestorePermanentDisplayConfiguration but returns an error instead of panicking if CGRestorePermanentDisplayConfiguration is unavailable at run time.

func TryCGSessionCopyCurrentDictionary

func TryCGSessionCopyCurrentDictionary() (corefoundation.CFDictionaryRef, error)

TryCGSessionCopyCurrentDictionary is like CGSessionCopyCurrentDictionary but returns an error instead of panicking if CGSessionCopyCurrentDictionary is unavailable at run time.

func TryCGShadingGetContentHeadroom

func TryCGShadingGetContentHeadroom(shading CGShadingRef) (float32, error)

TryCGShadingGetContentHeadroom is like CGShadingGetContentHeadroom but returns an error instead of panicking if CGShadingGetContentHeadroom is unavailable at run time.

func TryCGShadingGetTypeID

func TryCGShadingGetTypeID() (uint, error)

TryCGShadingGetTypeID is like CGShadingGetTypeID but returns an error instead of panicking if CGShadingGetTypeID is unavailable at run time.

func TryCGShadingRelease

func TryCGShadingRelease(shading CGShadingRef) error

TryCGShadingRelease is like CGShadingRelease but returns an error instead of panicking if CGShadingRelease is unavailable at run time.

func TryCGSizeApplyAffineTransform

func TryCGSizeApplyAffineTransform(size corefoundation.CGSize, t corefoundation.CGAffineTransform) (corefoundation.CGSize, error)

TryCGSizeApplyAffineTransform is like CGSizeApplyAffineTransform but returns an error instead of panicking if CGSizeApplyAffineTransform is unavailable at run time.

func TryCGSizeCreateDictionaryRepresentation

func TryCGSizeCreateDictionaryRepresentation(size corefoundation.CGSize) (corefoundation.CFDictionaryRef, error)

TryCGSizeCreateDictionaryRepresentation is like CGSizeCreateDictionaryRepresentation but returns an error instead of panicking if CGSizeCreateDictionaryRepresentation is unavailable at run time.

func TryCGSizeEqualToSize

func TryCGSizeEqualToSize(size1 corefoundation.CGSize, size2 corefoundation.CGSize) (bool, error)

TryCGSizeEqualToSize is like CGSizeEqualToSize but returns an error instead of panicking if CGSizeEqualToSize is unavailable at run time.

func TryCGSizeMakeWithDictionaryRepresentation

func TryCGSizeMakeWithDictionaryRepresentation(dict corefoundation.CFDictionaryRef, size *corefoundation.CGSize) (bool, error)

TryCGSizeMakeWithDictionaryRepresentation is like CGSizeMakeWithDictionaryRepresentation but returns an error instead of panicking if CGSizeMakeWithDictionaryRepresentation is unavailable at run time.

func TryCGWindowListCopyWindowInfo

func TryCGWindowListCopyWindowInfo(option CGWindowListOption, relativeToWindow CGWindowID) (corefoundation.CFArrayRef, error)

TryCGWindowListCopyWindowInfo is like CGWindowListCopyWindowInfo but returns an error instead of panicking if CGWindowListCopyWindowInfo is unavailable at run time.

func TryCGWindowListCreate

func TryCGWindowListCreate(option CGWindowListOption, relativeToWindow CGWindowID) (corefoundation.CFArrayRef, error)

TryCGWindowListCreate is like CGWindowListCreate but returns an error instead of panicking if CGWindowListCreate is unavailable at run time.

func TryCGWindowListCreateDescriptionFromArray

func TryCGWindowListCreateDescriptionFromArray(windowArray corefoundation.CFArrayRef) (corefoundation.CFArrayRef, error)

TryCGWindowListCreateDescriptionFromArray is like CGWindowListCreateDescriptionFromArray but returns an error instead of panicking if CGWindowListCreateDescriptionFromArray is unavailable at run time.

func TryCGWindowServerCreateServerPort

func TryCGWindowServerCreateServerPort() (corefoundation.CFMachPort, error)

TryCGWindowServerCreateServerPort is like CGWindowServerCreateServerPort but returns an error instead of panicking if CGWindowServerCreateServerPort is unavailable at run time.

Types

type CGBitmapContextReleaseDataCallback

type CGBitmapContextReleaseDataCallback = func(unsafe.Pointer, unsafe.Pointer)

CGBitmapContextReleaseDataCallback is a callback function used to release data associate with the bitmap context.

See: https://developer.apple.com/documentation/CoreGraphics/CGBitmapContextReleaseDataCallback

type CGBitmapInfo

type CGBitmapInfo uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGBitmapInfo

const (
	KCGBitmapAlphaInfoMask       CGBitmapInfo = 0x1f
	KCGBitmapByteOrderInfoMask   CGBitmapInfo = 0x7000
	KCGBitmapComponentInfoMask   CGBitmapInfo = 0xf00
	KCGBitmapPixelFormatInfoMask CGBitmapInfo = 0xf0000
	// Deprecated: use CGImageByteOrderInfo.order16Big.
	KCGBitmapByteOrder16Big CGBitmapInfo = 12288
	// Deprecated: use CGImageByteOrderInfo.order16Little.
	KCGBitmapByteOrder16Little CGBitmapInfo = 4096
	// Deprecated: use CGImageByteOrderInfo.order32Big.
	KCGBitmapByteOrder32Big CGBitmapInfo = 16384
	// Deprecated: use CGImageByteOrderInfo.order32Little.
	KCGBitmapByteOrder32Little CGBitmapInfo = 8192
	// Deprecated: use CGImageByteOrderInfo.orderDefault.
	KCGBitmapByteOrderDefault CGBitmapInfo = 0
	// Deprecated.
	KCGBitmapByteOrderMask CGBitmapInfo = 28672
	// Deprecated: use CGImageComponentInfo.float.
	KCGBitmapFloatComponents CGBitmapInfo = 256
	// Deprecated.
	KCGBitmapFloatInfoMask CGBitmapInfo = 3840
)
const KCGBitmapByteOrder16Host CGBitmapInfo = 4096

KCGBitmapByteOrder16Host is 16-bit, host endian format.

Deprecated: Deprecated since macOS 26.2.

See: https://developer.apple.com/documentation/CoreGraphics/kCGBitmapByteOrder16Host

const KCGBitmapByteOrder32Host CGBitmapInfo = 8192

KCGBitmapByteOrder32Host is 32-bit, host endian format.

Deprecated: Deprecated since macOS 26.2.

See: https://developer.apple.com/documentation/CoreGraphics/kCGBitmapByteOrder32Host

func CGBitmapContextGetBitmapInfo

func CGBitmapContextGetBitmapInfo(context CGContextRef) CGBitmapInfo

CGBitmapContextGetBitmapInfo obtains the bitmap information associated with a bitmap graphics context.

It panics if CGBitmapContextGetBitmapInfo is unavailable at run time; use TryCGBitmapContextGetBitmapInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/bitmapInfo

func CGImageGetBitmapInfo

func CGImageGetBitmapInfo(image CGImageRef) CGBitmapInfo

CGImageGetBitmapInfo returns the bitmap information for a bitmap image.

It panics if CGImageGetBitmapInfo is unavailable at run time; use TryCGImageGetBitmapInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/bitmapInfo

func TryCGBitmapContextGetBitmapInfo

func TryCGBitmapContextGetBitmapInfo(context CGContextRef) (CGBitmapInfo, error)

TryCGBitmapContextGetBitmapInfo is like CGBitmapContextGetBitmapInfo but returns an error instead of panicking if CGBitmapContextGetBitmapInfo is unavailable at run time.

func TryCGImageGetBitmapInfo

func TryCGImageGetBitmapInfo(image CGImageRef) (CGBitmapInfo, error)

TryCGImageGetBitmapInfo is like CGImageGetBitmapInfo but returns an error instead of panicking if CGImageGetBitmapInfo is unavailable at run time.

func (CGBitmapInfo) String

func (e CGBitmapInfo) String() string

type CGBitmapLayout

type CGBitmapLayout uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGBitmapLayout

const (
	KCGBitmapLayoutABGR      CGBitmapLayout = 9
	KCGBitmapLayoutARGB      CGBitmapLayout = 4
	KCGBitmapLayoutAlphaOnly CGBitmapLayout = 0
	KCGBitmapLayoutBGRA      CGBitmapLayout = 7
	KCGBitmapLayoutBGRX      CGBitmapLayout = 8
	KCGBitmapLayoutCMYK      CGBitmapLayout = 11
	KCGBitmapLayoutGray      CGBitmapLayout = 1
	KCGBitmapLayoutGrayAlpha CGBitmapLayout = 2
	KCGBitmapLayoutRGBA      CGBitmapLayout = 3
	KCGBitmapLayoutRGBX      CGBitmapLayout = 5
	KCGBitmapLayoutXBGR      CGBitmapLayout = 10
	KCGBitmapLayoutXRGB      CGBitmapLayout = 6
)

func (CGBitmapLayout) String added in v0.5.1

func (e CGBitmapLayout) String() string

type CGBitmapParameters

type CGBitmapParameters struct {
	Width                 uintptr
	Height                uintptr
	BytesPerPixel         uintptr
	AlignedBytesPerRow    uintptr
	Component             CGComponent
	Layout                CGBitmapLayout
	Format                CGImagePixelFormatInfo
	ColorSpace            CGColorSpaceRef
	HasPremultipliedAlpha bool
	ByteOrder             int
	EdrTargetHeadroom     float32
}

CGBitmapParameters

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGBitmapParameters-1cm7j

type CGBlendMode

type CGBlendMode int32

See: https://developer.apple.com/documentation/CoreGraphics/CGBlendMode

const (
	// KCGBlendModeClear: `R = 0`
	KCGBlendModeClear CGBlendMode = 16
	// KCGBlendModeColor: Uses the luminance values of the background with the hue and saturation values of the source image.
	KCGBlendModeColor CGBlendMode = 14
	// KCGBlendModeColorBurn: Darkens the background image samples to reflect the source image samples.
	KCGBlendModeColorBurn CGBlendMode = 7
	// KCGBlendModeColorDodge: Brightens the background image samples to reflect the source image samples.
	KCGBlendModeColorDodge CGBlendMode = 6
	// KCGBlendModeCopy: `R = S`
	KCGBlendModeCopy CGBlendMode = 17
	// KCGBlendModeDarken: # Discussion
	KCGBlendModeDarken CGBlendMode = 4
	// KCGBlendModeDestinationAtop: `R = S*(1 - Da) + D*Sa`
	KCGBlendModeDestinationAtop CGBlendMode = 24
	// KCGBlendModeDestinationIn: `R = D*Sa`
	KCGBlendModeDestinationIn CGBlendMode = 22
	// KCGBlendModeDestinationOut: `R = D*(1 - Sa)`
	KCGBlendModeDestinationOut CGBlendMode = 23
	// KCGBlendModeDestinationOver: `R = S*(1 - Da) + D`
	KCGBlendModeDestinationOver CGBlendMode = 21
	// KCGBlendModeDifference: # Discussion
	KCGBlendModeDifference CGBlendMode = 10
	// KCGBlendModeExclusion: Produces an effect similar to that produced by CGBlendMode.difference, but with lower contrast.
	KCGBlendModeExclusion CGBlendMode = 11
	// KCGBlendModeHardLight: # Discussion
	KCGBlendModeHardLight CGBlendMode = 9
	// KCGBlendModeHue: Uses the luminance and saturation values of the background with the hue of the source image.
	KCGBlendModeHue CGBlendMode = 12
	// KCGBlendModeLighten: # Discussion
	KCGBlendModeLighten CGBlendMode = 5
	// KCGBlendModeLuminosity: Uses the hue and saturation of the background with the luminance of the source image.
	KCGBlendModeLuminosity CGBlendMode = 15
	// KCGBlendModeMultiply: Multiplies the source image samples with the background image samples.
	KCGBlendModeMultiply CGBlendMode = 1
	// KCGBlendModeNormal: Paints the source image samples over the background image samples.
	KCGBlendModeNormal CGBlendMode = 0
	// KCGBlendModeOverlay: # Discussion
	KCGBlendModeOverlay CGBlendMode = 3
	// KCGBlendModePlusDarker: `R = MAX(0, 1 - ((1 - D) + (1 - S)))`
	KCGBlendModePlusDarker CGBlendMode = 26
	// KCGBlendModePlusLighter: `R = MIN(1, S + D)`
	KCGBlendModePlusLighter CGBlendMode = 27
	// KCGBlendModeSaturation: Uses the luminance and hue values of the background with the saturation of the source image.
	KCGBlendModeSaturation CGBlendMode = 13
	// KCGBlendModeScreen: Multiplies the inverse of the source image samples with the inverse of the background image samples, resulting in colors that are at least as light as either of the two contributing sample colors.
	KCGBlendModeScreen CGBlendMode = 2
	// KCGBlendModeSoftLight: # Discussion
	KCGBlendModeSoftLight CGBlendMode = 8
	// KCGBlendModeSourceAtop: `R = S*Da + D*(1 - Sa)`
	KCGBlendModeSourceAtop CGBlendMode = 20
	// KCGBlendModeSourceIn: `R = S*Da`
	KCGBlendModeSourceIn CGBlendMode = 18
	// KCGBlendModeSourceOut: `R = S*(1 - Da)`
	KCGBlendModeSourceOut CGBlendMode = 19
	// KCGBlendModeXOR: `R = S*(1 - Da) + D*(1 - Sa)`.
	KCGBlendModeXOR CGBlendMode = 25
)

func (CGBlendMode) String

func (e CGBlendMode) String() string

type CGButtonCount

type CGButtonCount = uint32

CGButtonCount is represents the number of buttons being set in a synthetic mouse event.

See: https://developer.apple.com/documentation/CoreGraphics/CGButtonCount

type CGCaptureOptions

type CGCaptureOptions uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGCaptureOptions

const (
	// KCGCaptureNoFill: Disables fill with black.
	KCGCaptureNoFill CGCaptureOptions = 1
	// KCGCaptureNoOptions: The system should use the default fill behavior, which is fill with black.
	KCGCaptureNoOptions CGCaptureOptions = 0
)

func (CGCaptureOptions) String

func (e CGCaptureOptions) String() string

type CGCharCode

type CGCharCode = uint16

CGCharCode is represents a character generated by pressing one or more keys on a keyboard.

See: https://developer.apple.com/documentation/CoreGraphics/CGCharCode

type CGColorBufferFormat

type CGColorBufferFormat struct {
	Version          uint32
	BitmapInfo       CGBitmapInfo
	BitsPerComponent uintptr
	BitsPerPixel     uintptr
	BytesPerRow      uintptr
}

CGColorBufferFormat

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGColorBufferFormat

type CGColorConversionInfoRef

type CGColorConversionInfoRef uintptr

CGColorConversionInfoRef is an object that describes how to convert between color spaces for use by other system services.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfo

func CGColorConversionInfoCreate

func CGColorConversionInfoCreate(src CGColorSpaceRef, dst CGColorSpaceRef) CGColorConversionInfoRef

CGColorConversionInfoCreate creates a conversion between two specified color spaces.

It panics if CGColorConversionInfoCreate is unavailable at run time; use TryCGColorConversionInfoCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfo/init(src:dst:)

func CGColorConversionInfoCreateForToneMapping

func CGColorConversionInfoCreateForToneMapping(from CGColorSpaceRef, source_headroom float32, to CGColorSpaceRef, target_headroom float32, method CGToneMapping, options corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) CGColorConversionInfoRef

CGColorConversionInfoCreateForToneMapping.

It panics if CGColorConversionInfoCreateForToneMapping is unavailable at run time; use TryCGColorConversionInfoCreateForToneMapping to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfo/init(src:srcHeadroom:dst:dstHeadroom:toneMapping:options:_:)

func CGColorConversionInfoCreateFromList

CGColorConversionInfoCreateFromList creates a conversion between an arbitrary number of specified color spaces.

It panics if CGColorConversionInfoCreateFromList is unavailable at run time; use TryCGColorConversionInfoCreateFromList to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfoCreateFromList

func CGColorConversionInfoCreateFromListWithArguments added in v0.2.0

func CGColorConversionInfoCreateFromListWithArguments(options corefoundation.CFDictionaryRef, arg1 CGColorSpaceRef, arg2 CGColorConversionInfoTransformType, arg3 CGColorRenderingIntent, arg4 kernel.Va_list) CGColorConversionInfoRef

CGColorConversionInfoCreateFromListWithArguments.

It panics if CGColorConversionInfoCreateFromListWithArguments is unavailable at run time; use TryCGColorConversionInfoCreateFromListWithArguments to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfoCreateFromListWithArguments

func CGColorConversionInfoCreateWithOptions

func CGColorConversionInfoCreateWithOptions(src CGColorSpaceRef, dst CGColorSpaceRef, options corefoundation.CFDictionaryRef) CGColorConversionInfoRef

CGColorConversionInfoCreateWithOptions.

It panics if CGColorConversionInfoCreateWithOptions is unavailable at run time; use TryCGColorConversionInfoCreateWithOptions to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfo/init(optionsSrc:dst:options:)

func TryCGColorConversionInfoCreate

func TryCGColorConversionInfoCreate(src CGColorSpaceRef, dst CGColorSpaceRef) (CGColorConversionInfoRef, error)

TryCGColorConversionInfoCreate is like CGColorConversionInfoCreate but returns an error instead of panicking if CGColorConversionInfoCreate is unavailable at run time.

func TryCGColorConversionInfoCreateForToneMapping

func TryCGColorConversionInfoCreateForToneMapping(from CGColorSpaceRef, source_headroom float32, to CGColorSpaceRef, target_headroom float32, method CGToneMapping, options corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) (CGColorConversionInfoRef, error)

TryCGColorConversionInfoCreateForToneMapping is like CGColorConversionInfoCreateForToneMapping but returns an error instead of panicking if CGColorConversionInfoCreateForToneMapping is unavailable at run time.

func TryCGColorConversionInfoCreateFromList

TryCGColorConversionInfoCreateFromList is like CGColorConversionInfoCreateFromList but returns an error instead of panicking if CGColorConversionInfoCreateFromList is unavailable at run time.

func TryCGColorConversionInfoCreateFromListWithArguments

func TryCGColorConversionInfoCreateFromListWithArguments(options corefoundation.CFDictionaryRef, arg1 CGColorSpaceRef, arg2 CGColorConversionInfoTransformType, arg3 CGColorRenderingIntent, arg4 kernel.Va_list) (CGColorConversionInfoRef, error)

TryCGColorConversionInfoCreateFromListWithArguments is like CGColorConversionInfoCreateFromListWithArguments but returns an error instead of panicking if CGColorConversionInfoCreateFromListWithArguments is unavailable at run time.

func TryCGColorConversionInfoCreateWithOptions

func TryCGColorConversionInfoCreateWithOptions(src CGColorSpaceRef, dst CGColorSpaceRef, options corefoundation.CFDictionaryRef) (CGColorConversionInfoRef, error)

TryCGColorConversionInfoCreateWithOptions is like CGColorConversionInfoCreateWithOptions but returns an error instead of panicking if CGColorConversionInfoCreateWithOptions is unavailable at run time.

type CGColorConversionInfoTransformType

type CGColorConversionInfoTransformType uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfoTransformType

const (
	// KCGColorConversionTransformApplySpace: Specifies a color conversion between one color profile and another.
	KCGColorConversionTransformApplySpace CGColorConversionInfoTransformType = 2
	// KCGColorConversionTransformFromSpace: Specifies a color conversion from a device color space to a color profile.
	KCGColorConversionTransformFromSpace CGColorConversionInfoTransformType = 0
	// KCGColorConversionTransformToSpace: Specifies a color conversion from a color profile to a device color space.
	KCGColorConversionTransformToSpace CGColorConversionInfoTransformType = 1
)

func (CGColorConversionInfoTransformType) String

type CGColorDataFormat

type CGColorDataFormat struct {
	Version            uint32
	Colorspace_info    corefoundation.CFTypeRef
	Bitmap_info        CGBitmapInfo
	Bits_per_component uintptr
	Bytes_per_row      uintptr
	Intent             CGColorRenderingIntent
	Decode             *float64
}

CGColorDataFormat

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGColorDataFormat

type CGColorModel

type CGColorModel uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGColorModel

const (
	KCGColorModelCMYK       CGColorModel = 4
	KCGColorModelDeviceN    CGColorModel = 16
	KCGColorModelGray       CGColorModel = 1
	KCGColorModelLab        CGColorModel = 8
	KCGColorModelNoColorant CGColorModel = 0
	KCGColorModelRGB        CGColorModel = 2
)

func (CGColorModel) String

func (e CGColorModel) String() string

type CGColorRef

type CGColorRef uintptr

CGColorRef is a set of components that define a color, with a color space specifying how to interpret them.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor

func CGColorCreate

func CGColorCreate(space CGColorSpaceRef, components *float64) CGColorRef

CGColorCreate creates a color using a list of intensity values (including alpha) and an associated color space.

It panics if CGColorCreate is unavailable at run time; use TryCGColorCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(colorSpace:components:)

func CGColorCreateCopy

func CGColorCreateCopy(color CGColorRef) CGColorRef

CGColorCreateCopy creates a copy of an existing color.

It panics if CGColorCreateCopy is unavailable at run time; use TryCGColorCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/copy()

func CGColorCreateCopyByMatchingToColorSpace

func CGColorCreateCopyByMatchingToColorSpace(arg0 CGColorSpaceRef, intent CGColorRenderingIntent, color CGColorRef, options corefoundation.CFDictionaryRef) CGColorRef

CGColorCreateCopyByMatchingToColorSpace creates a new color in a different color space that matches the provided color.

It panics if CGColorCreateCopyByMatchingToColorSpace is unavailable at run time; use TryCGColorCreateCopyByMatchingToColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/converted(to:intent:options:)

func CGColorCreateCopyWithAlpha

func CGColorCreateCopyWithAlpha(color CGColorRef, alpha float64) CGColorRef

CGColorCreateCopyWithAlpha creates a copy of an existing color, substituting a new alpha value.

It panics if CGColorCreateCopyWithAlpha is unavailable at run time; use TryCGColorCreateCopyWithAlpha to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/copy(alpha:)

func CGColorCreateGenericCMYK

func CGColorCreateGenericCMYK(cyan float64, magenta float64, yellow float64, black float64, alpha float64) CGColorRef

CGColorCreateGenericCMYK creates a color in the Generic CMYK color space.

It panics if CGColorCreateGenericCMYK is unavailable at run time; use TryCGColorCreateGenericCMYK to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(genericCMYKCyan:magenta:yellow:black:alpha:)

func CGColorCreateGenericGray

func CGColorCreateGenericGray(gray float64, alpha float64) CGColorRef

CGColorCreateGenericGray creates a color in the Generic gray color space.

It panics if CGColorCreateGenericGray is unavailable at run time; use TryCGColorCreateGenericGray to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(gray:alpha:)

func CGColorCreateGenericGrayGamma2_2

func CGColorCreateGenericGrayGamma2_2(gray float64, alpha float64) CGColorRef

CGColorCreateGenericGrayGamma2_2 creates a color in the Generic gray color space with a gamma ramp of 2.2.

It panics if CGColorCreateGenericGrayGamma2_2 is unavailable at run time; use TryCGColorCreateGenericGrayGamma2_2 to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(genericGrayGamma2_2Gray:alpha:)

func CGColorCreateGenericRGB

func CGColorCreateGenericRGB(red float64, green float64, blue float64, alpha float64) CGColorRef

CGColorCreateGenericRGB creates a color in the Generic RGB color space.

It panics if CGColorCreateGenericRGB is unavailable at run time; use TryCGColorCreateGenericRGB to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(red:green:blue:alpha:)

func CGColorCreateSRGB

func CGColorCreateSRGB(red float64, green float64, blue float64, alpha float64) CGColorRef

CGColorCreateSRGB creates a color in the sRGB color space.

It panics if CGColorCreateSRGB is unavailable at run time; use TryCGColorCreateSRGB to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(srgbRed:green:blue:alpha:)

func CGColorCreateWithContentHeadroom

func CGColorCreateWithContentHeadroom(headroom float32, space CGColorSpaceRef, red float64, green float64, blue float64, alpha float64) CGColorRef

CGColorCreateWithContentHeadroom.

It panics if CGColorCreateWithContentHeadroom is unavailable at run time; use TryCGColorCreateWithContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(headroom:colorSpace:red:green:blue:alpha:)

func CGColorCreateWithPattern

func CGColorCreateWithPattern(space CGColorSpaceRef, pattern CGPatternRef, components *float64) CGColorRef

CGColorCreateWithPattern creates a color using a list of intensity values (including alpha), a pattern color space, and a pattern.

It panics if CGColorCreateWithPattern is unavailable at run time; use TryCGColorCreateWithPattern to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(patternSpace:pattern:components:)

func CGColorGetConstantColor

func CGColorGetConstantColor(colorName corefoundation.CFStringRef) CGColorRef

CGColorGetConstantColor returns a color object that represents a constant color.

It panics if CGColorGetConstantColor is unavailable at run time; use TryCGColorGetConstantColor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorGetConstantColor

func CGColorRetain

func CGColorRetain(color CGColorRef) CGColorRef

CGColorRetain increments the retain count of a color.

It panics if CGColorRetain is unavailable at run time; use TryCGColorRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorRetain

func TryCGColorCreate

func TryCGColorCreate(space CGColorSpaceRef, components *float64) (CGColorRef, error)

TryCGColorCreate is like CGColorCreate but returns an error instead of panicking if CGColorCreate is unavailable at run time.

func TryCGColorCreateCopy

func TryCGColorCreateCopy(color CGColorRef) (CGColorRef, error)

TryCGColorCreateCopy is like CGColorCreateCopy but returns an error instead of panicking if CGColorCreateCopy is unavailable at run time.

func TryCGColorCreateCopyByMatchingToColorSpace

func TryCGColorCreateCopyByMatchingToColorSpace(arg0 CGColorSpaceRef, intent CGColorRenderingIntent, color CGColorRef, options corefoundation.CFDictionaryRef) (CGColorRef, error)

TryCGColorCreateCopyByMatchingToColorSpace is like CGColorCreateCopyByMatchingToColorSpace but returns an error instead of panicking if CGColorCreateCopyByMatchingToColorSpace is unavailable at run time.

func TryCGColorCreateCopyWithAlpha

func TryCGColorCreateCopyWithAlpha(color CGColorRef, alpha float64) (CGColorRef, error)

TryCGColorCreateCopyWithAlpha is like CGColorCreateCopyWithAlpha but returns an error instead of panicking if CGColorCreateCopyWithAlpha is unavailable at run time.

func TryCGColorCreateGenericCMYK

func TryCGColorCreateGenericCMYK(cyan float64, magenta float64, yellow float64, black float64, alpha float64) (CGColorRef, error)

TryCGColorCreateGenericCMYK is like CGColorCreateGenericCMYK but returns an error instead of panicking if CGColorCreateGenericCMYK is unavailable at run time.

func TryCGColorCreateGenericGray

func TryCGColorCreateGenericGray(gray float64, alpha float64) (CGColorRef, error)

TryCGColorCreateGenericGray is like CGColorCreateGenericGray but returns an error instead of panicking if CGColorCreateGenericGray is unavailable at run time.

func TryCGColorCreateGenericGrayGamma2_2

func TryCGColorCreateGenericGrayGamma2_2(gray float64, alpha float64) (CGColorRef, error)

TryCGColorCreateGenericGrayGamma2_2 is like CGColorCreateGenericGrayGamma2_2 but returns an error instead of panicking if CGColorCreateGenericGrayGamma2_2 is unavailable at run time.

func TryCGColorCreateGenericRGB

func TryCGColorCreateGenericRGB(red float64, green float64, blue float64, alpha float64) (CGColorRef, error)

TryCGColorCreateGenericRGB is like CGColorCreateGenericRGB but returns an error instead of panicking if CGColorCreateGenericRGB is unavailable at run time.

func TryCGColorCreateSRGB

func TryCGColorCreateSRGB(red float64, green float64, blue float64, alpha float64) (CGColorRef, error)

TryCGColorCreateSRGB is like CGColorCreateSRGB but returns an error instead of panicking if CGColorCreateSRGB is unavailable at run time.

func TryCGColorCreateWithContentHeadroom

func TryCGColorCreateWithContentHeadroom(headroom float32, space CGColorSpaceRef, red float64, green float64, blue float64, alpha float64) (CGColorRef, error)

TryCGColorCreateWithContentHeadroom is like CGColorCreateWithContentHeadroom but returns an error instead of panicking if CGColorCreateWithContentHeadroom is unavailable at run time.

func TryCGColorCreateWithPattern

func TryCGColorCreateWithPattern(space CGColorSpaceRef, pattern CGPatternRef, components *float64) (CGColorRef, error)

TryCGColorCreateWithPattern is like CGColorCreateWithPattern but returns an error instead of panicking if CGColorCreateWithPattern is unavailable at run time.

func TryCGColorGetConstantColor

func TryCGColorGetConstantColor(colorName corefoundation.CFStringRef) (CGColorRef, error)

TryCGColorGetConstantColor is like CGColorGetConstantColor but returns an error instead of panicking if CGColorGetConstantColor is unavailable at run time.

func TryCGColorRetain

func TryCGColorRetain(color CGColorRef) (CGColorRef, error)

TryCGColorRetain is like CGColorRetain but returns an error instead of panicking if CGColorRetain is unavailable at run time.

type CGColorRenderingIntent

type CGColorRenderingIntent int32

See: https://developer.apple.com/documentation/CoreGraphics/CGColorRenderingIntent

const (
	// KCGRenderingIntentAbsoluteColorimetric: # Discussion
	KCGRenderingIntentAbsoluteColorimetric CGColorRenderingIntent = 1
	// KCGRenderingIntentDefault: The default rendering intent for the graphics context.
	KCGRenderingIntentDefault CGColorRenderingIntent = 0
	// KCGRenderingIntentPerceptual: Preserve the visual relationship between colors by compressing the gamut of the graphics context to fit inside the gamut of the output device.
	KCGRenderingIntentPerceptual CGColorRenderingIntent = 3
	// KCGRenderingIntentRelativeColorimetric: # Discussion
	KCGRenderingIntentRelativeColorimetric CGColorRenderingIntent = 2
	// KCGRenderingIntentSaturation: # Discussion
	KCGRenderingIntentSaturation CGColorRenderingIntent = 4
)

func CGImageGetRenderingIntent

func CGImageGetRenderingIntent(image CGImageRef) CGColorRenderingIntent

CGImageGetRenderingIntent returns the rendering intent setting for a bitmap image.

It panics if CGImageGetRenderingIntent is unavailable at run time; use TryCGImageGetRenderingIntent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/renderingIntent

func TryCGImageGetRenderingIntent

func TryCGImageGetRenderingIntent(image CGImageRef) (CGColorRenderingIntent, error)

TryCGImageGetRenderingIntent is like CGImageGetRenderingIntent but returns an error instead of panicking if CGImageGetRenderingIntent is unavailable at run time.

func (CGColorRenderingIntent) String

func (e CGColorRenderingIntent) String() string

type CGColorSpaceModel

type CGColorSpaceModel int32

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceModel

const (
	// KCGColorSpaceModelCMYK: A CMYK color space model.
	KCGColorSpaceModelCMYK CGColorSpaceModel = 2
	// KCGColorSpaceModelDeviceN: A DeviceN color space model.
	KCGColorSpaceModelDeviceN CGColorSpaceModel = 4
	// KCGColorSpaceModelIndexed: An indexed color space model.
	KCGColorSpaceModelIndexed CGColorSpaceModel = 5
	// KCGColorSpaceModelLab: A Lab color space model.
	KCGColorSpaceModelLab CGColorSpaceModel = 3
	// KCGColorSpaceModelMonochrome: A monochrome color space model.
	KCGColorSpaceModelMonochrome CGColorSpaceModel = 0
	// KCGColorSpaceModelPattern: A pattern color space model.
	KCGColorSpaceModelPattern CGColorSpaceModel = 6
	// KCGColorSpaceModelRGB: An RGB color space model.
	KCGColorSpaceModelRGB CGColorSpaceModel = 1
	// KCGColorSpaceModelUnknown: An unknown color space model.
	KCGColorSpaceModelUnknown CGColorSpaceModel = -1
	// KCGColorSpaceModelXYZ: An XYZ color space model.
	KCGColorSpaceModelXYZ CGColorSpaceModel = 7
)

func CGColorSpaceGetModel

func CGColorSpaceGetModel(space CGColorSpaceRef) CGColorSpaceModel

CGColorSpaceGetModel returns the color space model of the provided color space.

It panics if CGColorSpaceGetModel is unavailable at run time; use TryCGColorSpaceGetModel to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/model

func TryCGColorSpaceGetModel

func TryCGColorSpaceGetModel(space CGColorSpaceRef) (CGColorSpaceModel, error)

TryCGColorSpaceGetModel is like CGColorSpaceGetModel but returns an error instead of panicking if CGColorSpaceGetModel is unavailable at run time.

func (CGColorSpaceModel) String

func (e CGColorSpaceModel) String() string

type CGColorSpaceRef

type CGColorSpaceRef uintptr

CGColorSpaceRef is a profile that specifies how to interpret a color value for display.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace

func CGBitmapContextGetColorSpace

func CGBitmapContextGetColorSpace(context CGContextRef) CGColorSpaceRef

CGBitmapContextGetColorSpace returns the color space of a bitmap context.

It panics if CGBitmapContextGetColorSpace is unavailable at run time; use TryCGBitmapContextGetColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/colorSpace

func CGColorGetColorSpace

func CGColorGetColorSpace(color CGColorRef) CGColorSpaceRef

CGColorGetColorSpace returns the color space associated with a color.

It panics if CGColorGetColorSpace is unavailable at run time; use TryCGColorGetColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/colorSpace

func CGColorSpaceCopyBaseColorSpace

func CGColorSpaceCopyBaseColorSpace(space CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceCopyBaseColorSpace.

It panics if CGColorSpaceCopyBaseColorSpace is unavailable at run time; use TryCGColorSpaceCopyBaseColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCopyBaseColorSpace(_:)

func CGColorSpaceCreateCalibratedGray

func CGColorSpaceCreateCalibratedGray(whitePoint float64, blackPoint float64, gamma float64) CGColorSpaceRef

CGColorSpaceCreateCalibratedGray creates a calibrated grayscale color space.

It panics if CGColorSpaceCreateCalibratedGray is unavailable at run time; use TryCGColorSpaceCreateCalibratedGray to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(calibratedGrayWhitePoint:blackPoint:gamma:)

func CGColorSpaceCreateCalibratedRGB

func CGColorSpaceCreateCalibratedRGB(whitePoint float64, blackPoint float64, gamma float64, matrix float64) CGColorSpaceRef

CGColorSpaceCreateCalibratedRGB creates a calibrated RGB color space.

It panics if CGColorSpaceCreateCalibratedRGB is unavailable at run time; use TryCGColorSpaceCreateCalibratedRGB to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(calibratedRGBWhitePoint:blackPoint:gamma:matrix:)

func CGColorSpaceCreateCopyWithStandardRange

func CGColorSpaceCreateCopyWithStandardRange(space CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceCreateCopyWithStandardRange.

It panics if CGColorSpaceCreateCopyWithStandardRange is unavailable at run time; use TryCGColorSpaceCreateCopyWithStandardRange to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCreateCopyWithStandardRange(_:)

func CGColorSpaceCreateDeviceCMYK

func CGColorSpaceCreateDeviceCMYK() CGColorSpaceRef

CGColorSpaceCreateDeviceCMYK creates a device-dependent CMYK color space.

It panics if CGColorSpaceCreateDeviceCMYK is unavailable at run time; use TryCGColorSpaceCreateDeviceCMYK to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCreateDeviceCMYK()

func CGColorSpaceCreateDeviceGray

func CGColorSpaceCreateDeviceGray() CGColorSpaceRef

CGColorSpaceCreateDeviceGray creates a device-dependent grayscale color space.

It panics if CGColorSpaceCreateDeviceGray is unavailable at run time; use TryCGColorSpaceCreateDeviceGray to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCreateDeviceGray()

func CGColorSpaceCreateDeviceRGB

func CGColorSpaceCreateDeviceRGB() CGColorSpaceRef

CGColorSpaceCreateDeviceRGB creates a device-dependent RGB color space.

It panics if CGColorSpaceCreateDeviceRGB is unavailable at run time; use TryCGColorSpaceCreateDeviceRGB to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCreateDeviceRGB()

func CGColorSpaceCreateExtended

func CGColorSpaceCreateExtended(space CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceCreateExtended.

It panics if CGColorSpaceCreateExtended is unavailable at run time; use TryCGColorSpaceCreateExtended to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCreateExtended(_:)

func CGColorSpaceCreateExtendedLinearized

func CGColorSpaceCreateExtendedLinearized(space CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceCreateExtendedLinearized.

It panics if CGColorSpaceCreateExtendedLinearized is unavailable at run time; use TryCGColorSpaceCreateExtendedLinearized to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCreateExtendedLinearized(_:)

func CGColorSpaceCreateICCBased

func CGColorSpaceCreateICCBased(nComponents uintptr, range_ *float64, profile CGDataProviderRef, alternate CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceCreateICCBased creates a device-independent color space that is defined according to the ICC color profile specification.

It panics if CGColorSpaceCreateICCBased is unavailable at run time; use TryCGColorSpaceCreateICCBased to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(iccBasedNComponents:range:profile:alternate:)

func CGColorSpaceCreateIndexed

func CGColorSpaceCreateIndexed(baseSpace CGColorSpaceRef, lastIndex uintptr, colorTable []byte) CGColorSpaceRef

CGColorSpaceCreateIndexed creates an indexed color space, consisting of colors specified by a color lookup table.

It panics if CGColorSpaceCreateIndexed is unavailable at run time; use TryCGColorSpaceCreateIndexed to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(indexedBaseSpace:last:colorTable:)

func CGColorSpaceCreateLab

func CGColorSpaceCreateLab(whitePoint float64, blackPoint float64, range_ float64) CGColorSpaceRef

CGColorSpaceCreateLab creates a device-independent color space that is relative to human color perception, according to the CIE L*a*b* standard.

It panics if CGColorSpaceCreateLab is unavailable at run time; use TryCGColorSpaceCreateLab to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(labWhitePoint:blackPoint:range:)

func CGColorSpaceCreateLinearized

func CGColorSpaceCreateLinearized(space CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceCreateLinearized.

It panics if CGColorSpaceCreateLinearized is unavailable at run time; use TryCGColorSpaceCreateLinearized to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCreateLinearized(_:)

func CGColorSpaceCreatePattern

func CGColorSpaceCreatePattern(baseSpace CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceCreatePattern creates a pattern color space.

It panics if CGColorSpaceCreatePattern is unavailable at run time; use TryCGColorSpaceCreatePattern to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(patternBaseSpace:)

func CGColorSpaceCreateWithColorSyncProfile

func CGColorSpaceCreateWithColorSyncProfile(arg0 ColorSyncProfileRef, options corefoundation.CFDictionaryRef) CGColorSpaceRef

CGColorSpaceCreateWithColorSyncProfile.

It panics if CGColorSpaceCreateWithColorSyncProfile is unavailable at run time; use TryCGColorSpaceCreateWithColorSyncProfile to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceCreateWithColorSyncProfile(_:_:)

func CGColorSpaceCreateWithICCData

func CGColorSpaceCreateWithICCData(data corefoundation.CFTypeRef) CGColorSpaceRef

CGColorSpaceCreateWithICCData creates an ICC-based color space using the ICC profile contained in the specified data.

It panics if CGColorSpaceCreateWithICCData is unavailable at run time; use TryCGColorSpaceCreateWithICCData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(iccData:)

func CGColorSpaceCreateWithICCProfile deprecated

func CGColorSpaceCreateWithICCProfile(data corefoundation.CFDataRef) CGColorSpaceRef

CGColorSpaceCreateWithICCProfile creates an ICC-based color space using the ICC profile contained in the specified data.

It panics if CGColorSpaceCreateWithICCProfile is unavailable at run time; use TryCGColorSpaceCreateWithICCProfile to get an error instead.

Deprecated: Deprecated since macOS 10.13. Use [init(iccData:)](<https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(iccData:)>) instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(iccProfileData:)

func CGColorSpaceCreateWithName

func CGColorSpaceCreateWithName(name corefoundation.CFStringRef) CGColorSpaceRef

CGColorSpaceCreateWithName creates a specified type of Quartz color space.

It panics if CGColorSpaceCreateWithName is unavailable at run time; use TryCGColorSpaceCreateWithName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(name:)

func CGColorSpaceCreateWithPlatformColorSpace deprecated

func CGColorSpaceCreateWithPlatformColorSpace(ref unsafe.Pointer) CGColorSpaceRef

CGColorSpaceCreateWithPlatformColorSpace creates a platform-specific color space.

It panics if CGColorSpaceCreateWithPlatformColorSpace is unavailable at run time; use TryCGColorSpaceCreateWithPlatformColorSpace to get an error instead.

Deprecated: Deprecated since macOS 12.0. No longer supported

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(platformColorSpaceRef:)

func CGColorSpaceCreateWithPropertyList

func CGColorSpaceCreateWithPropertyList(plist corefoundation.CFPropertyListRef) CGColorSpaceRef

CGColorSpaceCreateWithPropertyList creates a color space from a property list.

It panics if CGColorSpaceCreateWithPropertyList is unavailable at run time; use TryCGColorSpaceCreateWithPropertyList to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(propertyListPlist:)

func CGColorSpaceGetBaseColorSpace

func CGColorSpaceGetBaseColorSpace(space CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceGetBaseColorSpace returns the base color space of a pattern or indexed color space.

It panics if CGColorSpaceGetBaseColorSpace is unavailable at run time; use TryCGColorSpaceGetBaseColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/baseColorSpace

func CGColorSpaceRetain

func CGColorSpaceRetain(space CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceRetain increments the retain count of a color space.

It panics if CGColorSpaceRetain is unavailable at run time; use TryCGColorSpaceRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpaceRetain

func CGDisplayCopyColorSpace

func CGDisplayCopyColorSpace(display CGDirectDisplayID) CGColorSpaceRef

CGDisplayCopyColorSpace returns the color space for a display.

It panics if CGDisplayCopyColorSpace is unavailable at run time; use TryCGDisplayCopyColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayCopyColorSpace(_:)

func CGImageGetColorSpace

func CGImageGetColorSpace(image CGImageRef) CGColorSpaceRef

CGImageGetColorSpace return the color space for a bitmap image.

It panics if CGImageGetColorSpace is unavailable at run time; use TryCGImageGetColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/colorSpace

func TryCGBitmapContextGetColorSpace

func TryCGBitmapContextGetColorSpace(context CGContextRef) (CGColorSpaceRef, error)

TryCGBitmapContextGetColorSpace is like CGBitmapContextGetColorSpace but returns an error instead of panicking if CGBitmapContextGetColorSpace is unavailable at run time.

func TryCGColorGetColorSpace

func TryCGColorGetColorSpace(color CGColorRef) (CGColorSpaceRef, error)

TryCGColorGetColorSpace is like CGColorGetColorSpace but returns an error instead of panicking if CGColorGetColorSpace is unavailable at run time.

func TryCGColorSpaceCopyBaseColorSpace

func TryCGColorSpaceCopyBaseColorSpace(space CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceCopyBaseColorSpace is like CGColorSpaceCopyBaseColorSpace but returns an error instead of panicking if CGColorSpaceCopyBaseColorSpace is unavailable at run time.

func TryCGColorSpaceCreateCalibratedGray

func TryCGColorSpaceCreateCalibratedGray(whitePoint float64, blackPoint float64, gamma float64) (CGColorSpaceRef, error)

TryCGColorSpaceCreateCalibratedGray is like CGColorSpaceCreateCalibratedGray but returns an error instead of panicking if CGColorSpaceCreateCalibratedGray is unavailable at run time.

func TryCGColorSpaceCreateCalibratedRGB

func TryCGColorSpaceCreateCalibratedRGB(whitePoint float64, blackPoint float64, gamma float64, matrix float64) (CGColorSpaceRef, error)

TryCGColorSpaceCreateCalibratedRGB is like CGColorSpaceCreateCalibratedRGB but returns an error instead of panicking if CGColorSpaceCreateCalibratedRGB is unavailable at run time.

func TryCGColorSpaceCreateCopyWithStandardRange

func TryCGColorSpaceCreateCopyWithStandardRange(space CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateCopyWithStandardRange is like CGColorSpaceCreateCopyWithStandardRange but returns an error instead of panicking if CGColorSpaceCreateCopyWithStandardRange is unavailable at run time.

func TryCGColorSpaceCreateDeviceCMYK

func TryCGColorSpaceCreateDeviceCMYK() (CGColorSpaceRef, error)

TryCGColorSpaceCreateDeviceCMYK is like CGColorSpaceCreateDeviceCMYK but returns an error instead of panicking if CGColorSpaceCreateDeviceCMYK is unavailable at run time.

func TryCGColorSpaceCreateDeviceGray

func TryCGColorSpaceCreateDeviceGray() (CGColorSpaceRef, error)

TryCGColorSpaceCreateDeviceGray is like CGColorSpaceCreateDeviceGray but returns an error instead of panicking if CGColorSpaceCreateDeviceGray is unavailable at run time.

func TryCGColorSpaceCreateDeviceRGB

func TryCGColorSpaceCreateDeviceRGB() (CGColorSpaceRef, error)

TryCGColorSpaceCreateDeviceRGB is like CGColorSpaceCreateDeviceRGB but returns an error instead of panicking if CGColorSpaceCreateDeviceRGB is unavailable at run time.

func TryCGColorSpaceCreateExtended

func TryCGColorSpaceCreateExtended(space CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateExtended is like CGColorSpaceCreateExtended but returns an error instead of panicking if CGColorSpaceCreateExtended is unavailable at run time.

func TryCGColorSpaceCreateExtendedLinearized

func TryCGColorSpaceCreateExtendedLinearized(space CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateExtendedLinearized is like CGColorSpaceCreateExtendedLinearized but returns an error instead of panicking if CGColorSpaceCreateExtendedLinearized is unavailable at run time.

func TryCGColorSpaceCreateICCBased

func TryCGColorSpaceCreateICCBased(nComponents uintptr, range_ *float64, profile CGDataProviderRef, alternate CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateICCBased is like CGColorSpaceCreateICCBased but returns an error instead of panicking if CGColorSpaceCreateICCBased is unavailable at run time.

func TryCGColorSpaceCreateIndexed

func TryCGColorSpaceCreateIndexed(baseSpace CGColorSpaceRef, lastIndex uintptr, colorTable []byte) (CGColorSpaceRef, error)

TryCGColorSpaceCreateIndexed is like CGColorSpaceCreateIndexed but returns an error instead of panicking if CGColorSpaceCreateIndexed is unavailable at run time.

func TryCGColorSpaceCreateLab

func TryCGColorSpaceCreateLab(whitePoint float64, blackPoint float64, range_ float64) (CGColorSpaceRef, error)

TryCGColorSpaceCreateLab is like CGColorSpaceCreateLab but returns an error instead of panicking if CGColorSpaceCreateLab is unavailable at run time.

func TryCGColorSpaceCreateLinearized

func TryCGColorSpaceCreateLinearized(space CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateLinearized is like CGColorSpaceCreateLinearized but returns an error instead of panicking if CGColorSpaceCreateLinearized is unavailable at run time.

func TryCGColorSpaceCreatePattern

func TryCGColorSpaceCreatePattern(baseSpace CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreatePattern is like CGColorSpaceCreatePattern but returns an error instead of panicking if CGColorSpaceCreatePattern is unavailable at run time.

func TryCGColorSpaceCreateWithColorSyncProfile

func TryCGColorSpaceCreateWithColorSyncProfile(arg0 ColorSyncProfileRef, options corefoundation.CFDictionaryRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateWithColorSyncProfile is like CGColorSpaceCreateWithColorSyncProfile but returns an error instead of panicking if CGColorSpaceCreateWithColorSyncProfile is unavailable at run time.

func TryCGColorSpaceCreateWithICCData

func TryCGColorSpaceCreateWithICCData(data corefoundation.CFTypeRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateWithICCData is like CGColorSpaceCreateWithICCData but returns an error instead of panicking if CGColorSpaceCreateWithICCData is unavailable at run time.

func TryCGColorSpaceCreateWithICCProfile

func TryCGColorSpaceCreateWithICCProfile(data corefoundation.CFDataRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateWithICCProfile is like CGColorSpaceCreateWithICCProfile but returns an error instead of panicking if CGColorSpaceCreateWithICCProfile is unavailable at run time.

func TryCGColorSpaceCreateWithName

func TryCGColorSpaceCreateWithName(name corefoundation.CFStringRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateWithName is like CGColorSpaceCreateWithName but returns an error instead of panicking if CGColorSpaceCreateWithName is unavailable at run time.

func TryCGColorSpaceCreateWithPlatformColorSpace

func TryCGColorSpaceCreateWithPlatformColorSpace(ref unsafe.Pointer) (CGColorSpaceRef, error)

TryCGColorSpaceCreateWithPlatformColorSpace is like CGColorSpaceCreateWithPlatformColorSpace but returns an error instead of panicking if CGColorSpaceCreateWithPlatformColorSpace is unavailable at run time.

func TryCGColorSpaceCreateWithPropertyList

func TryCGColorSpaceCreateWithPropertyList(plist corefoundation.CFPropertyListRef) (CGColorSpaceRef, error)

TryCGColorSpaceCreateWithPropertyList is like CGColorSpaceCreateWithPropertyList but returns an error instead of panicking if CGColorSpaceCreateWithPropertyList is unavailable at run time.

func TryCGColorSpaceGetBaseColorSpace

func TryCGColorSpaceGetBaseColorSpace(space CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceGetBaseColorSpace is like CGColorSpaceGetBaseColorSpace but returns an error instead of panicking if CGColorSpaceGetBaseColorSpace is unavailable at run time.

func TryCGColorSpaceRetain

func TryCGColorSpaceRetain(space CGColorSpaceRef) (CGColorSpaceRef, error)

TryCGColorSpaceRetain is like CGColorSpaceRetain but returns an error instead of panicking if CGColorSpaceRetain is unavailable at run time.

func TryCGDisplayCopyColorSpace

func TryCGDisplayCopyColorSpace(display CGDirectDisplayID) (CGColorSpaceRef, error)

TryCGDisplayCopyColorSpace is like CGDisplayCopyColorSpace but returns an error instead of panicking if CGDisplayCopyColorSpace is unavailable at run time.

func TryCGImageGetColorSpace

func TryCGImageGetColorSpace(image CGImageRef) (CGColorSpaceRef, error)

TryCGImageGetColorSpace is like CGImageGetColorSpace but returns an error instead of panicking if CGImageGetColorSpace is unavailable at run time.

type CGComponent

type CGComponent uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGComponent

const (
	KCGComponentFloat16Bit   CGComponent = 5
	KCGComponentFloat32Bit   CGComponent = 4
	KCGComponentInteger10Bit CGComponent = 6
	KCGComponentInteger16Bit CGComponent = 2
	KCGComponentInteger32Bit CGComponent = 3
	KCGComponentInteger8Bit  CGComponent = 1
	KCGComponentUnknown      CGComponent = 0
)

func (CGComponent) String added in v0.5.1

func (e CGComponent) String() string

type CGConfigureOption

type CGConfigureOption uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGConfigureOption

const (
	// KCGConfigureForAppOnly: Changes persist for the lifetime of the current application.
	KCGConfigureForAppOnly CGConfigureOption = 0
	// KCGConfigureForSession: Changes persist for the lifetime of the current login session.
	KCGConfigureForSession CGConfigureOption = 1
	// KCGConfigurePermanently: # Discussion
	KCGConfigurePermanently CGConfigureOption = 2
)

func (CGConfigureOption) String

func (e CGConfigureOption) String() string

type CGContentInfo

type CGContentInfo struct {
	DeepestImageComponent  CGComponent
	ContentColorModels     CGColorModel
	HasWideGamut           bool
	HasTransparency        bool
	LargestContentHeadroom float32
}

CGContentInfo

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGContentInfo

type CGContentToneMappingInfo

type CGContentToneMappingInfo struct {
	Method  CGToneMapping
	Options corefoundation.CFDictionaryRef
}

CGContentToneMappingInfo

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGContentToneMappingInfo-c.struct

func CGContextGetContentToneMappingInfo

func CGContextGetContentToneMappingInfo(c CGContextRef) CGContentToneMappingInfo

CGContextGetContentToneMappingInfo.

It panics if CGContextGetContentToneMappingInfo is unavailable at run time; use TryCGContextGetContentToneMappingInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextGetContentToneMappingInfo

func TryCGContextGetContentToneMappingInfo

func TryCGContextGetContentToneMappingInfo(c CGContextRef) (CGContentToneMappingInfo, error)

TryCGContextGetContentToneMappingInfo is like CGContextGetContentToneMappingInfo but returns an error instead of panicking if CGContextGetContentToneMappingInfo is unavailable at run time.

type CGContextRef

type CGContextRef uintptr

CGContextRef is a Quartz 2D drawing environment.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext

func CGBitmapContextCreate

func CGBitmapContextCreate(data unsafe.Pointer, width uintptr, height uintptr, bitsPerComponent uintptr, bytesPerRow uintptr, space CGColorSpaceRef, bitmapInfo CGBitmapInfo) CGContextRef

CGBitmapContextCreate.

It panics if CGBitmapContextCreate is unavailable at run time; use TryCGBitmapContextCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/init(data:width:height:bitsPerComponent:bytesPerRow:space:bitmapInfo:)-10b3i

func CGBitmapContextCreateAdaptive

func CGBitmapContextCreateAdaptive(width uintptr, height uintptr, auxiliaryInfo corefoundation.CFDictionaryRef, onResolve bool) CGContextRef

CGBitmapContextCreateAdaptive.

It panics if CGBitmapContextCreateAdaptive is unavailable at run time; use TryCGBitmapContextCreateAdaptive to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGBitmapContextCreateAdaptive

func CGBitmapContextCreateWithData

func CGBitmapContextCreateWithData(data unsafe.Pointer, width uintptr, height uintptr, bitsPerComponent uintptr, bytesPerRow uintptr, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, releaseCallback CGBitmapContextReleaseDataCallback, releaseInfo unsafe.Pointer) CGContextRef

CGBitmapContextCreateWithData.

It panics if CGBitmapContextCreateWithData is unavailable at run time; use TryCGBitmapContextCreateWithData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/init(data:width:height:bitsPerComponent:bytesPerRow:space:bitmapInfo:releaseCallback:releaseInfo:)-4yzt5

func CGContextRetain

func CGContextRetain(c CGContextRef) CGContextRef

CGContextRetain increments the retain count of a graphics context.

It panics if CGContextRetain is unavailable at run time; use TryCGContextRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContextRetain

func CGDisplayGetDrawingContext

func CGDisplayGetDrawingContext(display CGDirectDisplayID) CGContextRef

CGDisplayGetDrawingContext returns a graphics context suitable for drawing to a captured display.

It panics if CGDisplayGetDrawingContext is unavailable at run time; use TryCGDisplayGetDrawingContext to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayGetDrawingContext(_:)

func CGLayerGetContext added in v0.2.0

func CGLayerGetContext(layer CGLayerRef) CGContextRef

CGLayerGetContext returns the graphics context associated with a layer object.

It panics if CGLayerGetContext is unavailable at run time; use TryCGLayerGetContext to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayer/context

func CGPDFContextCreate

func CGPDFContextCreate(consumer CGDataConsumerRef, mediaBox *corefoundation.CGRect, auxiliaryInfo corefoundation.CFDictionaryRef) CGContextRef

CGPDFContextCreate creates a PDF graphics context.

It panics if CGPDFContextCreate is unavailable at run time; use TryCGPDFContextCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/init(consumer:mediaBox:_:)

func CGPDFContextCreateWithURL

func CGPDFContextCreateWithURL(url corefoundation.CFURLRef, mediaBox *corefoundation.CGRect, auxiliaryInfo corefoundation.CFDictionaryRef) CGContextRef

CGPDFContextCreateWithURL creates a URL-based PDF graphics context.

It panics if CGPDFContextCreateWithURL is unavailable at run time; use TryCGPDFContextCreateWithURL to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/init(_:mediaBox:_:)

func TryCGBitmapContextCreate

func TryCGBitmapContextCreate(data unsafe.Pointer, width uintptr, height uintptr, bitsPerComponent uintptr, bytesPerRow uintptr, space CGColorSpaceRef, bitmapInfo CGBitmapInfo) (CGContextRef, error)

TryCGBitmapContextCreate is like CGBitmapContextCreate but returns an error instead of panicking if CGBitmapContextCreate is unavailable at run time.

func TryCGBitmapContextCreateAdaptive

func TryCGBitmapContextCreateAdaptive(width uintptr, height uintptr, auxiliaryInfo corefoundation.CFDictionaryRef, onResolve bool) (CGContextRef, error)

TryCGBitmapContextCreateAdaptive is like CGBitmapContextCreateAdaptive but returns an error instead of panicking if CGBitmapContextCreateAdaptive is unavailable at run time.

func TryCGBitmapContextCreateWithData

func TryCGBitmapContextCreateWithData(data unsafe.Pointer, width uintptr, height uintptr, bitsPerComponent uintptr, bytesPerRow uintptr, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, releaseCallback CGBitmapContextReleaseDataCallback, releaseInfo unsafe.Pointer) (CGContextRef, error)

TryCGBitmapContextCreateWithData is like CGBitmapContextCreateWithData but returns an error instead of panicking if CGBitmapContextCreateWithData is unavailable at run time.

func TryCGContextRetain

func TryCGContextRetain(c CGContextRef) (CGContextRef, error)

TryCGContextRetain is like CGContextRetain but returns an error instead of panicking if CGContextRetain is unavailable at run time.

func TryCGDisplayGetDrawingContext

func TryCGDisplayGetDrawingContext(display CGDirectDisplayID) (CGContextRef, error)

TryCGDisplayGetDrawingContext is like CGDisplayGetDrawingContext but returns an error instead of panicking if CGDisplayGetDrawingContext is unavailable at run time.

func TryCGLayerGetContext

func TryCGLayerGetContext(layer CGLayerRef) (CGContextRef, error)

TryCGLayerGetContext is like CGLayerGetContext but returns an error instead of panicking if CGLayerGetContext is unavailable at run time.

func TryCGPDFContextCreate

func TryCGPDFContextCreate(consumer CGDataConsumerRef, mediaBox *corefoundation.CGRect, auxiliaryInfo corefoundation.CFDictionaryRef) (CGContextRef, error)

TryCGPDFContextCreate is like CGPDFContextCreate but returns an error instead of panicking if CGPDFContextCreate is unavailable at run time.

func TryCGPDFContextCreateWithURL

func TryCGPDFContextCreateWithURL(url corefoundation.CFURLRef, mediaBox *corefoundation.CGRect, auxiliaryInfo corefoundation.CFDictionaryRef) (CGContextRef, error)

TryCGPDFContextCreateWithURL is like CGPDFContextCreateWithURL but returns an error instead of panicking if CGPDFContextCreateWithURL is unavailable at run time.

type CGDataConsumerCallbacks

type CGDataConsumerCallbacks struct {
	// C: CGDataConsumerPutBytesCallback (unsigned long (*)(void *, const void *, unsigned long))
	PutBytes uintptr // A pointer to a function that copies data to the data consumer. For more information, see [CGDataConsumerPutBytesCallback](<https://developer.apple.com/documentation/CoreGraphics/CGDataConsumerPutBytesCallback>).
	// C: CGDataConsumerReleaseInfoCallback (void (*)(void *))
	ReleaseConsumer uintptr // A pointer to a function that handles clean-up for the data consumer, or [NULL].

}

CGDataConsumerCallbacks - A structure that contains pointers to callback functions that manage the copying of data for a data consumer.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumerCallbacks

type CGDataConsumerPutBytesCallback

type CGDataConsumerPutBytesCallback = func(info unsafe.Pointer, buffer unsafe.Pointer, count uint) uint

CGDataConsumerPutBytesCallback is copies data from a Core Graphics-supplied buffer into a data consumer.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumerPutBytesCallback

type CGDataConsumerRef

type CGDataConsumerRef uintptr

CGDataConsumerRef is an abstraction for data-writing tasks that eliminates the need to manage a raw memory buffer.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumer

func CGDataConsumerCreate

func CGDataConsumerCreate(info unsafe.Pointer, cbks *CGDataConsumerCallbacks) CGDataConsumerRef

CGDataConsumerCreate creates a data consumer that uses callback functions to write data.

It panics if CGDataConsumerCreate is unavailable at run time; use TryCGDataConsumerCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumer/init(info:cbks:)

func CGDataConsumerCreateWithCFData

func CGDataConsumerCreateWithCFData(data corefoundation.CFMutableDataRef) CGDataConsumerRef

CGDataConsumerCreateWithCFData creates a data consumer that writes to a CFData object.

It panics if CGDataConsumerCreateWithCFData is unavailable at run time; use TryCGDataConsumerCreateWithCFData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumer/init(data:)

func CGDataConsumerCreateWithURL

func CGDataConsumerCreateWithURL(url corefoundation.CFURLRef) CGDataConsumerRef

CGDataConsumerCreateWithURL creates a data consumer that writes data to a location specified by a URL.

It panics if CGDataConsumerCreateWithURL is unavailable at run time; use TryCGDataConsumerCreateWithURL to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumer/init(url:)

func CGDataConsumerRetain

func CGDataConsumerRetain(consumer CGDataConsumerRef) CGDataConsumerRef

CGDataConsumerRetain increments the retain count of a data consumer.

It panics if CGDataConsumerRetain is unavailable at run time; use TryCGDataConsumerRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumerRetain

func TryCGDataConsumerCreate

func TryCGDataConsumerCreate(info unsafe.Pointer, cbks *CGDataConsumerCallbacks) (CGDataConsumerRef, error)

TryCGDataConsumerCreate is like CGDataConsumerCreate but returns an error instead of panicking if CGDataConsumerCreate is unavailable at run time.

func TryCGDataConsumerCreateWithCFData

func TryCGDataConsumerCreateWithCFData(data corefoundation.CFMutableDataRef) (CGDataConsumerRef, error)

TryCGDataConsumerCreateWithCFData is like CGDataConsumerCreateWithCFData but returns an error instead of panicking if CGDataConsumerCreateWithCFData is unavailable at run time.

func TryCGDataConsumerCreateWithURL

func TryCGDataConsumerCreateWithURL(url corefoundation.CFURLRef) (CGDataConsumerRef, error)

TryCGDataConsumerCreateWithURL is like CGDataConsumerCreateWithURL but returns an error instead of panicking if CGDataConsumerCreateWithURL is unavailable at run time.

func TryCGDataConsumerRetain

func TryCGDataConsumerRetain(consumer CGDataConsumerRef) (CGDataConsumerRef, error)

TryCGDataConsumerRetain is like CGDataConsumerRetain but returns an error instead of panicking if CGDataConsumerRetain is unavailable at run time.

type CGDataConsumerReleaseInfoCallback

type CGDataConsumerReleaseInfoCallback = func(info unsafe.Pointer)

CGDataConsumerReleaseInfoCallback is releases any private data or resources associated with the data consumer.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataConsumerReleaseInfoCallback

type CGDataProviderDirectCallbacks

type CGDataProviderDirectCallbacks struct {
	Version uint32 // The version of this structure. It should be set to 0.
	// C: CGDataProviderGetBytePointerCallback (const void *(*)(void *))
	GetBytePointer uintptr // A pointer to a function that returns a pointer to the provider’s data. For more information, see [CGDataProviderGetBytePointerCallback](<https://developer.apple.com/documentation/CoreGraphics/CGDataProviderGetBytePointerCallback>).
	// C: CGDataProviderReleaseBytePointerCallback (void (*)(void *, const void *))
	ReleaseBytePointer uintptr // A pointer to a function that Core Graphics calls to release a pointer to the provider’s data. For more information, see [CGDataProviderReleaseBytePointerCallback](<https://developer.apple.com/documentation/CoreGraphics/CGDataProviderReleaseBytePointerCallback>).
	// C: CGDataProviderGetBytesAtPositionCallback (unsigned long (*)(void *, void *, long long, unsigned long))
	GetBytesAtPosition uintptr // A pointer to a function that copies data from the provider.
	// C: CGDataProviderReleaseInfoCallback (void (*)(void *))
	ReleaseInfo uintptr // A pointer to a function that handles clean-up for the data provider, or [NULL]. For more information, see [CGDataProviderReleaseInfoCallback](<https://developer.apple.com/documentation/CoreGraphics/CGDataProviderReleaseInfoCallback>).

}

CGDataProviderDirectCallbacks - Defines pointers to client-defined callback functions that manage the sending of data for a direct-access data provider.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderDirectCallbacks

type CGDataProviderGetBytePointerCallback

type CGDataProviderGetBytePointerCallback = func(info unsafe.Pointer) unsafe.Pointer

CGDataProviderGetBytePointerCallback is a callback function that returns a generic pointer to the provider data.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderGetBytePointerCallback

type CGDataProviderGetBytesAtPositionCallback

type CGDataProviderGetBytesAtPositionCallback = func(info unsafe.Pointer, buffer unsafe.Pointer, position int64, count uint) uint

CGDataProviderGetBytesAtPositionCallback is a callback function that copies data from the provider into a Core Graphics buffer.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderGetBytesAtPositionCallback

type CGDataProviderGetBytesCallback

type CGDataProviderGetBytesCallback = func(info unsafe.Pointer, buffer unsafe.Pointer, count uint) uint

CGDataProviderGetBytesCallback is a callback function that copies from a provider data stream into a Core Graphics buffer.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderGetBytesCallback

type CGDataProviderRef

type CGDataProviderRef uintptr

CGDataProviderRef is an abstraction for data-reading tasks that eliminates the need to manage a raw memory buffer.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider

func CGDataProviderCreateDirect

func CGDataProviderCreateDirect(info unsafe.Pointer, size int64, callbacks *CGDataProviderDirectCallbacks) CGDataProviderRef

CGDataProviderCreateDirect creates a direct-access data provider.

It panics if CGDataProviderCreateDirect is unavailable at run time; use TryCGDataProviderCreateDirect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/init(directInfo:size:callbacks:)

func CGDataProviderCreateSequential

func CGDataProviderCreateSequential(info unsafe.Pointer, callbacks *CGDataProviderSequentialCallbacks) CGDataProviderRef

CGDataProviderCreateSequential creates a sequential-access data provider.

It panics if CGDataProviderCreateSequential is unavailable at run time; use TryCGDataProviderCreateSequential to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/init(sequentialInfo:callbacks:)

func CGDataProviderCreateWithCFData

func CGDataProviderCreateWithCFData(data corefoundation.CFDataRef) CGDataProviderRef

CGDataProviderCreateWithCFData creates a data provider that reads from a CFData object.

It panics if CGDataProviderCreateWithCFData is unavailable at run time; use TryCGDataProviderCreateWithCFData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/init(data:)

func CGDataProviderCreateWithData

func CGDataProviderCreateWithData(info unsafe.Pointer, data unsafe.Pointer, size uintptr, releaseData CGDataProviderReleaseDataCallback) CGDataProviderRef

CGDataProviderCreateWithData creates a direct-access data provider that uses data your program supplies.

It panics if CGDataProviderCreateWithData is unavailable at run time; use TryCGDataProviderCreateWithData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/init(dataInfo:data:size:releaseData:)

func CGDataProviderCreateWithFilename

func CGDataProviderCreateWithFilename(filename string) CGDataProviderRef

CGDataProviderCreateWithFilename creates a direct-access data provider that uses a file to supply data.

It panics if CGDataProviderCreateWithFilename is unavailable at run time; use TryCGDataProviderCreateWithFilename to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/init(filename:)

func CGDataProviderCreateWithURL

func CGDataProviderCreateWithURL(url corefoundation.CFURLRef) CGDataProviderRef

CGDataProviderCreateWithURL creates a direct-access data provider that uses a URL to supply data.

It panics if CGDataProviderCreateWithURL is unavailable at run time; use TryCGDataProviderCreateWithURL to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProvider/init(url:)

func CGDataProviderRetain

func CGDataProviderRetain(provider CGDataProviderRef) CGDataProviderRef

CGDataProviderRetain increments the retain count of a data provider.

It panics if CGDataProviderRetain is unavailable at run time; use TryCGDataProviderRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderRetain

func CGImageGetDataProvider

func CGImageGetDataProvider(image CGImageRef) CGDataProviderRef

CGImageGetDataProvider returns the data provider for a bitmap image or image mask.

It panics if CGImageGetDataProvider is unavailable at run time; use TryCGImageGetDataProvider to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/dataProvider

func TryCGDataProviderCreateDirect

func TryCGDataProviderCreateDirect(info unsafe.Pointer, size int64, callbacks *CGDataProviderDirectCallbacks) (CGDataProviderRef, error)

TryCGDataProviderCreateDirect is like CGDataProviderCreateDirect but returns an error instead of panicking if CGDataProviderCreateDirect is unavailable at run time.

func TryCGDataProviderCreateSequential

func TryCGDataProviderCreateSequential(info unsafe.Pointer, callbacks *CGDataProviderSequentialCallbacks) (CGDataProviderRef, error)

TryCGDataProviderCreateSequential is like CGDataProviderCreateSequential but returns an error instead of panicking if CGDataProviderCreateSequential is unavailable at run time.

func TryCGDataProviderCreateWithCFData

func TryCGDataProviderCreateWithCFData(data corefoundation.CFDataRef) (CGDataProviderRef, error)

TryCGDataProviderCreateWithCFData is like CGDataProviderCreateWithCFData but returns an error instead of panicking if CGDataProviderCreateWithCFData is unavailable at run time.

func TryCGDataProviderCreateWithData

func TryCGDataProviderCreateWithData(info unsafe.Pointer, data unsafe.Pointer, size uintptr, releaseData CGDataProviderReleaseDataCallback) (CGDataProviderRef, error)

TryCGDataProviderCreateWithData is like CGDataProviderCreateWithData but returns an error instead of panicking if CGDataProviderCreateWithData is unavailable at run time.

func TryCGDataProviderCreateWithFilename

func TryCGDataProviderCreateWithFilename(filename string) (CGDataProviderRef, error)

TryCGDataProviderCreateWithFilename is like CGDataProviderCreateWithFilename but returns an error instead of panicking if CGDataProviderCreateWithFilename is unavailable at run time.

func TryCGDataProviderCreateWithURL

func TryCGDataProviderCreateWithURL(url corefoundation.CFURLRef) (CGDataProviderRef, error)

TryCGDataProviderCreateWithURL is like CGDataProviderCreateWithURL but returns an error instead of panicking if CGDataProviderCreateWithURL is unavailable at run time.

func TryCGDataProviderRetain

func TryCGDataProviderRetain(provider CGDataProviderRef) (CGDataProviderRef, error)

TryCGDataProviderRetain is like CGDataProviderRetain but returns an error instead of panicking if CGDataProviderRetain is unavailable at run time.

func TryCGImageGetDataProvider

func TryCGImageGetDataProvider(image CGImageRef) (CGDataProviderRef, error)

TryCGImageGetDataProvider is like CGImageGetDataProvider but returns an error instead of panicking if CGImageGetDataProvider is unavailable at run time.

type CGDataProviderReleaseBytePointerCallback

type CGDataProviderReleaseBytePointerCallback = func(info unsafe.Pointer, pointer unsafe.Pointer)

CGDataProviderReleaseBytePointerCallback is a callback function that releases the pointer Core Graphics obtained by calling CGDataProviderGetBytePointerCallback.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderReleaseBytePointerCallback

type CGDataProviderReleaseDataCallback

type CGDataProviderReleaseDataCallback = func(info unsafe.Pointer, data unsafe.Pointer, size uint)

CGDataProviderReleaseDataCallback is a callback function that releases data you supply to the function [init(dataInfo:data:size:releaseData:)].

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderReleaseDataCallback

type CGDataProviderReleaseInfoCallback

type CGDataProviderReleaseInfoCallback = func(info unsafe.Pointer)

CGDataProviderReleaseInfoCallback is a callback function that releases any private data or resources associated with the data provider.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderReleaseInfoCallback

type CGDataProviderRewindCallback

type CGDataProviderRewindCallback = func(info unsafe.Pointer)

CGDataProviderRewindCallback is a callback function that moves the current position in the data stream back to the beginning.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderRewindCallback

type CGDataProviderSequentialCallbacks

type CGDataProviderSequentialCallbacks struct {
	Version uint32 // The version of this structure. It should be set to 0.
	// C: CGDataProviderGetBytesCallback (unsigned long (*)(void *, void *, unsigned long))
	GetBytes uintptr // A pointer to a function that copies data from the provider. For more information, see [CGDataProviderGetBytesCallback](<https://developer.apple.com/documentation/CoreGraphics/CGDataProviderGetBytesCallback>).
	// C: CGDataProviderSkipForwardCallback (long long (*)(void *, long long))
	SkipForward uintptr // A pointer to a function that Core Graphics calls to advance the stream of data supplied by the provider.
	// C: CGDataProviderRewindCallback (void (*)(void *))
	Rewind uintptr // A pointer to a function Core Graphics calls to return the provider to the beginning of the data stream. For more information, see [CGDataProviderRewindCallback](<https://developer.apple.com/documentation/CoreGraphics/CGDataProviderRewindCallback>).
	// C: CGDataProviderReleaseInfoCallback (void (*)(void *))
	ReleaseInfo uintptr // A pointer to a function that handles clean-up for the data provider, or [NULL]. For more information, see [CGDataProviderReleaseInfoCallback](<https://developer.apple.com/documentation/CoreGraphics/CGDataProviderReleaseInfoCallback>).

}

CGDataProviderSequentialCallbacks - Defines a structure containing pointers to client-defined callback functions that manage the sending of data for a sequential-access data provider.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderSequentialCallbacks

type CGDataProviderSkipForwardCallback

type CGDataProviderSkipForwardCallback = func(info unsafe.Pointer, count int64) int64

CGDataProviderSkipForwardCallback is a callback function that advances the current position in the data stream supplied by the provider.

See: https://developer.apple.com/documentation/CoreGraphics/CGDataProviderSkipForwardCallback

type CGDeviceColor

type CGDeviceColor struct {
	Red   float32
	Green float32
	Blue  float32
}

CGDeviceColor

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGDeviceColor

type CGDirectDisplayID

type CGDirectDisplayID = uint32

CGDirectDisplayID is a unique identifier for an attached display.

See: https://developer.apple.com/documentation/CoreGraphics/CGDirectDisplayID

func CGDisplayMirrorsDisplay

func CGDisplayMirrorsDisplay(display CGDirectDisplayID) CGDirectDisplayID

CGDisplayMirrorsDisplay for a secondary display in a mirroring set, returns the primary display.

It panics if CGDisplayMirrorsDisplay is unavailable at run time; use TryCGDisplayMirrorsDisplay to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMirrorsDisplay(_:)

func CGDisplayPrimaryDisplay

func CGDisplayPrimaryDisplay(display CGDirectDisplayID) CGDirectDisplayID

CGDisplayPrimaryDisplay returns the primary display in a hardware mirroring set.

It panics if CGDisplayPrimaryDisplay is unavailable at run time; use TryCGDisplayPrimaryDisplay to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayPrimaryDisplay(_:)

func CGMainDisplayID

func CGMainDisplayID() CGDirectDisplayID

CGMainDisplayID returns the display ID of the main display.

It panics if CGMainDisplayID is unavailable at run time; use TryCGMainDisplayID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGMainDisplayID()

func CGOpenGLDisplayMaskToDisplayID

func CGOpenGLDisplayMaskToDisplayID(mask CGOpenGLDisplayMask) CGDirectDisplayID

CGOpenGLDisplayMaskToDisplayID maps an OpenGL display mask to a display ID.

It panics if CGOpenGLDisplayMaskToDisplayID is unavailable at run time; use TryCGOpenGLDisplayMaskToDisplayID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGOpenGLDisplayMaskToDisplayID(_:)

func TryCGDisplayMirrorsDisplay

func TryCGDisplayMirrorsDisplay(display CGDirectDisplayID) (CGDirectDisplayID, error)

TryCGDisplayMirrorsDisplay is like CGDisplayMirrorsDisplay but returns an error instead of panicking if CGDisplayMirrorsDisplay is unavailable at run time.

func TryCGDisplayPrimaryDisplay

func TryCGDisplayPrimaryDisplay(display CGDirectDisplayID) (CGDirectDisplayID, error)

TryCGDisplayPrimaryDisplay is like CGDisplayPrimaryDisplay but returns an error instead of panicking if CGDisplayPrimaryDisplay is unavailable at run time.

func TryCGMainDisplayID

func TryCGMainDisplayID() (CGDirectDisplayID, error)

TryCGMainDisplayID is like CGMainDisplayID but returns an error instead of panicking if CGMainDisplayID is unavailable at run time.

func TryCGOpenGLDisplayMaskToDisplayID

func TryCGOpenGLDisplayMaskToDisplayID(mask CGOpenGLDisplayMask) (CGDirectDisplayID, error)

TryCGOpenGLDisplayMaskToDisplayID is like CGOpenGLDisplayMaskToDisplayID but returns an error instead of panicking if CGOpenGLDisplayMaskToDisplayID is unavailable at run time.

type CGDisplayBlendFraction

type CGDisplayBlendFraction = float32

CGDisplayBlendFraction is the percentage of blend color used in a fade operation.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayBlendFraction

type CGDisplayChangeSummaryFlags

type CGDisplayChangeSummaryFlags uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayChangeSummaryFlags

const (
	// KCGDisplayAddFlag: The display has been added to the active display list.
	KCGDisplayAddFlag CGDisplayChangeSummaryFlags = 16
	// KCGDisplayBeginConfigurationFlag: The display configuration is about to change.
	KCGDisplayBeginConfigurationFlag CGDisplayChangeSummaryFlags = 1
	// KCGDisplayDesktopShapeChangedFlag: # Discussion
	KCGDisplayDesktopShapeChangedFlag CGDisplayChangeSummaryFlags = 4096
	// KCGDisplayDisabledFlag: The display has been disabled.
	KCGDisplayDisabledFlag CGDisplayChangeSummaryFlags = 512
	// KCGDisplayEnabledFlag: The display has been enabled.
	KCGDisplayEnabledFlag CGDisplayChangeSummaryFlags = 256
	// KCGDisplayMirrorFlag: The display is now mirroring another display.
	KCGDisplayMirrorFlag CGDisplayChangeSummaryFlags = 1024
	// KCGDisplayMovedFlag: The location of the upper-left corner of the display in the global display coordinate space has changed.
	KCGDisplayMovedFlag CGDisplayChangeSummaryFlags = 2
	// KCGDisplayRemoveFlag: The display has been removed from the active display list.
	KCGDisplayRemoveFlag CGDisplayChangeSummaryFlags = 32
	// KCGDisplaySetMainFlag: The display is now the main display.
	KCGDisplaySetMainFlag CGDisplayChangeSummaryFlags = 4
	// KCGDisplaySetModeFlag: The display mode has changed.
	KCGDisplaySetModeFlag CGDisplayChangeSummaryFlags = 8
	// KCGDisplayUnMirrorFlag: The display is no longer mirroring another display.
	KCGDisplayUnMirrorFlag CGDisplayChangeSummaryFlags = 2048
)

func (CGDisplayChangeSummaryFlags) String

type CGDisplayConfigRef

type CGDisplayConfigRef uintptr

CGDisplayConfigRef is a reference to a display configuration transaction.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayConfigRef

type CGDisplayCount

type CGDisplayCount = uint32

CGDisplayCount is the number of displays in various lists.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayCount

type CGDisplayErr

type CGDisplayErr = CGError

CGDisplayErr is a uniform type for result codes returned by functions in Quartz Display Services.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayErr

type CGDisplayFadeInterval

type CGDisplayFadeInterval = float32

CGDisplayFadeInterval is the duration in seconds of a fade operation or a fade hardware reservation.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayFadeInterval

type CGDisplayFadeReservationToken

type CGDisplayFadeReservationToken = uint32

CGDisplayFadeReservationToken is a token issued by Quartz when reserving one or more displays for a fade operation during a specified interval.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayFadeReservationToken

type CGDisplayModeRef

type CGDisplayModeRef uintptr

CGDisplayModeRef is a reference to a display mode object.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMode

func CGDisplayCopyDisplayMode

func CGDisplayCopyDisplayMode(display CGDirectDisplayID) CGDisplayModeRef

CGDisplayCopyDisplayMode returns information about a display’s current configuration.

It panics if CGDisplayCopyDisplayMode is unavailable at run time; use TryCGDisplayCopyDisplayMode to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayCopyDisplayMode(_:)

func CGDisplayModeRetain

func CGDisplayModeRetain(mode CGDisplayModeRef) CGDisplayModeRef

CGDisplayModeRetain retains a Core Graphics display mode.

It panics if CGDisplayModeRetain is unavailable at run time; use TryCGDisplayModeRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayModeRetain

func TryCGDisplayCopyDisplayMode

func TryCGDisplayCopyDisplayMode(display CGDirectDisplayID) (CGDisplayModeRef, error)

TryCGDisplayCopyDisplayMode is like CGDisplayCopyDisplayMode but returns an error instead of panicking if CGDisplayCopyDisplayMode is unavailable at run time.

func TryCGDisplayModeRetain

func TryCGDisplayModeRetain(mode CGDisplayModeRef) (CGDisplayModeRef, error)

TryCGDisplayModeRetain is like CGDisplayModeRetain but returns an error instead of panicking if CGDisplayModeRetain is unavailable at run time.

type CGDisplayReconfigurationCallBack

type CGDisplayReconfigurationCallBack = func(display uint32, flags uint, userInfo unsafe.Pointer)

CGDisplayReconfigurationCallBack is a client-supplied callback function that’s invoked whenever the configuration of a local display is changed.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayReconfigurationCallBack

type CGDisplayReservationInterval

type CGDisplayReservationInterval = float32

CGDisplayReservationInterval is the time interval for a fade reservation.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayReservationInterval

type CGDisplayStreamFrameAvailableHandler

type CGDisplayStreamFrameAvailableHandler = func(CGDisplayStreamFrameStatus, uint64, objectivec.IObject, *CGDisplayStreamUpdateRef)

CGDisplayStreamFrameAvailableHandler is a block called when a data stream has a new frame event to process.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamFrameAvailableHandler

type CGDisplayStreamFrameStatus

type CGDisplayStreamFrameStatus int32

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamFrameStatus

const (
	// KCGDisplayStreamFrameStatusFrameBlank: A new frame was not generated because the display has gone blank.
	KCGDisplayStreamFrameStatusFrameBlank CGDisplayStreamFrameStatus = 2
	// KCGDisplayStreamFrameStatusFrameComplete: A new frame was generated.
	KCGDisplayStreamFrameStatusFrameComplete CGDisplayStreamFrameStatus = 0
	// KCGDisplayStreamFrameStatusFrameIdle: A new frame was not generated because the display did not change.
	KCGDisplayStreamFrameStatusFrameIdle CGDisplayStreamFrameStatus = 1
	// KCGDisplayStreamFrameStatusStopped: The display stream was stopped.
	KCGDisplayStreamFrameStatusStopped CGDisplayStreamFrameStatus = 3
)

func (CGDisplayStreamFrameStatus) String

type CGDisplayStreamRef

type CGDisplayStreamRef uintptr

CGDisplayStreamRef is a reference to a display stream object.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream

func CGDisplayStreamCreate deprecated added in v0.5.1

func CGDisplayStreamCreate(display CGDirectDisplayID, outputWidth uintptr, outputHeight uintptr, pixelFormat int32, properties corefoundation.CFDictionaryRef, handler CGDisplayStreamFrameAvailableHandler) CGDisplayStreamRef

CGDisplayStreamCreate creates a new display stream to be used with a [CFRunloop].

It panics if CGDisplayStreamCreate is unavailable at run time; use TryCGDisplayStreamCreate to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/init(display:outputWidth:outputHeight:pixelFormat:properties:handler:)

func CGDisplayStreamCreateWithDispatchQueue deprecated added in v0.5.1

func CGDisplayStreamCreateWithDispatchQueue(display CGDirectDisplayID, outputWidth uintptr, outputHeight uintptr, pixelFormat int32, properties corefoundation.CFDictionaryRef, queue dispatch.Queue, handler CGDisplayStreamFrameAvailableHandler) CGDisplayStreamRef

CGDisplayStreamCreateWithDispatchQueue creates a new display stream whose updates are delivered to a dispatch queue.

It panics if CGDisplayStreamCreateWithDispatchQueue is unavailable at run time; use TryCGDisplayStreamCreateWithDispatchQueue to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/init(dispatchQueueDisplay:outputWidth:outputHeight:pixelFormat:properties:queue:handler:)

func TryCGDisplayStreamCreate

func TryCGDisplayStreamCreate(display CGDirectDisplayID, outputWidth uintptr, outputHeight uintptr, pixelFormat int32, properties corefoundation.CFDictionaryRef, handler CGDisplayStreamFrameAvailableHandler) (CGDisplayStreamRef, error)

TryCGDisplayStreamCreate is like CGDisplayStreamCreate but returns an error instead of panicking if CGDisplayStreamCreate is unavailable at run time.

func TryCGDisplayStreamCreateWithDispatchQueue

func TryCGDisplayStreamCreateWithDispatchQueue(display CGDirectDisplayID, outputWidth uintptr, outputHeight uintptr, pixelFormat int32, properties corefoundation.CFDictionaryRef, queue dispatch.Queue, handler CGDisplayStreamFrameAvailableHandler) (CGDisplayStreamRef, error)

TryCGDisplayStreamCreateWithDispatchQueue is like CGDisplayStreamCreateWithDispatchQueue but returns an error instead of panicking if CGDisplayStreamCreateWithDispatchQueue is unavailable at run time.

type CGDisplayStreamUpdateRectType

type CGDisplayStreamUpdateRectType int32

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamUpdateRectType

const (
	// KCGDisplayStreamUpdateDirtyRects: The union of both rectangles that were redrawn and rectangles that were moved.
	KCGDisplayStreamUpdateDirtyRects CGDisplayStreamUpdateRectType = 2
	// KCGDisplayStreamUpdateMovedRects: The rectangles for the portions of the display that were simply moved from one part of the display to another.
	KCGDisplayStreamUpdateMovedRects CGDisplayStreamUpdateRectType = 1
	// KCGDisplayStreamUpdateReducedDirtyRects: The union is calculated and then simplified.
	KCGDisplayStreamUpdateReducedDirtyRects CGDisplayStreamUpdateRectType = 3
	// KCGDisplayStreamUpdateRefreshedRects: The rectangles for the portions of the display that were redrawn.
	KCGDisplayStreamUpdateRefreshedRects CGDisplayStreamUpdateRectType = 0
)

func (CGDisplayStreamUpdateRectType) String

type CGDisplayStreamUpdateRef

type CGDisplayStreamUpdateRef uintptr

CGDisplayStreamUpdateRef is a reference to frame update’s metadata.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamUpdate

func CGDisplayStreamUpdateCreateMergedUpdate deprecated added in v0.5.1

func CGDisplayStreamUpdateCreateMergedUpdate(firstUpdate CGDisplayStreamUpdateRef, secondUpdate CGDisplayStreamUpdateRef) CGDisplayStreamUpdateRef

CGDisplayStreamUpdateCreateMergedUpdate combines two updates into a new update that includes the metadata for both source updates.

It panics if CGDisplayStreamUpdateCreateMergedUpdate is unavailable at run time; use TryCGDisplayStreamUpdateCreateMergedUpdate to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStreamUpdate/init(mergedUpdateFirstUpdate:secondUpdate:)

func TryCGDisplayStreamUpdateCreateMergedUpdate

func TryCGDisplayStreamUpdateCreateMergedUpdate(firstUpdate CGDisplayStreamUpdateRef, secondUpdate CGDisplayStreamUpdateRef) (CGDisplayStreamUpdateRef, error)

TryCGDisplayStreamUpdateCreateMergedUpdate is like CGDisplayStreamUpdateCreateMergedUpdate but returns an error instead of panicking if CGDisplayStreamUpdateCreateMergedUpdate is unavailable at run time.

type CGError

type CGError int32

See: https://developer.apple.com/documentation/CoreGraphics/CGError

const (
	// KCGErrorCannotComplete: The requested operation is inappropriate for the parameters passed in, or the current system state.
	KCGErrorCannotComplete CGError = 1004
	// KCGErrorFailure: A general failure occurred.
	KCGErrorFailure CGError = 1000
	// KCGErrorIllegalArgument: One or more of the parameters passed to a function are invalid.
	KCGErrorIllegalArgument CGError = 1001
	// KCGErrorInvalidConnection: The parameter representing a connection to the window server is invalid.
	KCGErrorInvalidConnection CGError = 1002
	// KCGErrorInvalidContext: The [CPSProcessSerNum] or context identifier parameter is not valid.
	KCGErrorInvalidContext CGError = 1003
	// KCGErrorInvalidOperation: The requested operation is not valid for the parameters passed in, or the current system state.
	KCGErrorInvalidOperation CGError = 1010
	// KCGErrorNoneAvailable: The requested operation could not be completed as the indicated resources were not found.
	KCGErrorNoneAvailable CGError = 1011
	// KCGErrorNotImplemented: Return value from obsolete function stubs present for binary compatibility, but not typically called.
	KCGErrorNotImplemented CGError = 1006
	// KCGErrorRangeCheck: A parameter passed in has a value that is inappropriate, or which does not map to a useful operation or value.
	KCGErrorRangeCheck CGError = 1007
	// KCGErrorSuccess: The requested operation was completed successfully.
	KCGErrorSuccess CGError = 0
	// KCGErrorTypeCheck: A data type or token was encountered that did not match the expected type or token.
	KCGErrorTypeCheck CGError = 1008
)

func CGAcquireDisplayFadeReservation

func CGAcquireDisplayFadeReservation(seconds CGDisplayReservationInterval, token *CGDisplayFadeReservationToken) CGError

CGAcquireDisplayFadeReservation reserves the fade hardware for a specified time interval.

It panics if CGAcquireDisplayFadeReservation is unavailable at run time; use TryCGAcquireDisplayFadeReservation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAcquireDisplayFadeReservation(_:_:)

func CGAssociateMouseAndMouseCursorPosition added in v0.2.0

func CGAssociateMouseAndMouseCursorPosition(connected int32) CGError

CGAssociateMouseAndMouseCursorPosition connects or disconnects the mouse and cursor while an application is in the foreground.

It panics if CGAssociateMouseAndMouseCursorPosition is unavailable at run time; use TryCGAssociateMouseAndMouseCursorPosition to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGAssociateMouseAndMouseCursorPosition(_:)

func CGBeginDisplayConfiguration

func CGBeginDisplayConfiguration(config *CGDisplayConfigRef) CGError

CGBeginDisplayConfiguration begins a new set of display configuration changes.

It panics if CGBeginDisplayConfiguration is unavailable at run time; use TryCGBeginDisplayConfiguration to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGBeginDisplayConfiguration(_:)

func CGCancelDisplayConfiguration

func CGCancelDisplayConfiguration(config CGDisplayConfigRef) CGError

CGCancelDisplayConfiguration cancels a set of display configuration changes.

It panics if CGCancelDisplayConfiguration is unavailable at run time; use TryCGCancelDisplayConfiguration to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGCancelDisplayConfiguration(_:)

func CGCaptureAllDisplays

func CGCaptureAllDisplays() CGError

CGCaptureAllDisplays obtains exclusive use of all active displays, preventing other applications and system services from using the display or changing its configuration.

It panics if CGCaptureAllDisplays is unavailable at run time; use TryCGCaptureAllDisplays to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGCaptureAllDisplays()

func CGCaptureAllDisplaysWithOptions

func CGCaptureAllDisplaysWithOptions(options CGCaptureOptions) CGError

CGCaptureAllDisplaysWithOptions captures all attached displays, using the specified options.

It panics if CGCaptureAllDisplaysWithOptions is unavailable at run time; use TryCGCaptureAllDisplaysWithOptions to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGCaptureAllDisplaysWithOptions(_:)

func CGCompleteDisplayConfiguration

func CGCompleteDisplayConfiguration(config CGDisplayConfigRef, option CGConfigureOption) CGError

CGCompleteDisplayConfiguration completes a set of display configuration changes.

It panics if CGCompleteDisplayConfiguration is unavailable at run time; use TryCGCompleteDisplayConfiguration to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGCompleteDisplayConfiguration(_:_:)

func CGConfigureDisplayFadeEffect

func CGConfigureDisplayFadeEffect(config CGDisplayConfigRef, fadeOutSeconds CGDisplayFadeInterval, fadeInSeconds CGDisplayFadeInterval, fadeRed float32, fadeGreen float32, fadeBlue float32) CGError

CGConfigureDisplayFadeEffect modifies the settings of the built-in fade effect that occurs during a display configuration.

It panics if CGConfigureDisplayFadeEffect is unavailable at run time; use TryCGConfigureDisplayFadeEffect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)

func CGConfigureDisplayMirrorOfDisplay

func CGConfigureDisplayMirrorOfDisplay(config CGDisplayConfigRef, display CGDirectDisplayID, master CGDirectDisplayID) CGError

CGConfigureDisplayMirrorOfDisplay changes the configuration of a mirroring set.

It panics if CGConfigureDisplayMirrorOfDisplay is unavailable at run time; use TryCGConfigureDisplayMirrorOfDisplay to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGConfigureDisplayMirrorOfDisplay(_:_:_:)

func CGConfigureDisplayOrigin

func CGConfigureDisplayOrigin(config CGDisplayConfigRef, display CGDirectDisplayID, x int32, y int32) CGError

CGConfigureDisplayOrigin configures the origin of a display relative to the global display coordinate space.

It panics if CGConfigureDisplayOrigin is unavailable at run time; use TryCGConfigureDisplayOrigin to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGConfigureDisplayOrigin(_:_:_:_:)

func CGConfigureDisplayStereoOperation added in v0.2.0

func CGConfigureDisplayStereoOperation(config CGDisplayConfigRef, display CGDirectDisplayID, stereo int32, forceBlueLine int32) CGError

CGConfigureDisplayStereoOperation enables or disables stereo operation for a display, as part of a display configuration.

It panics if CGConfigureDisplayStereoOperation is unavailable at run time; use TryCGConfigureDisplayStereoOperation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGConfigureDisplayStereoOperation(_:_:_:_:)

func CGConfigureDisplayWithDisplayMode

func CGConfigureDisplayWithDisplayMode(config CGDisplayConfigRef, display CGDirectDisplayID, mode CGDisplayModeRef, options corefoundation.CFDictionaryRef) CGError

CGConfigureDisplayWithDisplayMode configures the display mode of a display.

It panics if CGConfigureDisplayWithDisplayMode is unavailable at run time; use TryCGConfigureDisplayWithDisplayMode to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGConfigureDisplayWithDisplayMode(_:_:_:_:)

func CGDisplayCapture

func CGDisplayCapture(display CGDirectDisplayID) CGError

CGDisplayCapture obtains exclusive use of a display, preventing other applications and system services from using the display or changing its configuration.

It panics if CGDisplayCapture is unavailable at run time; use TryCGDisplayCapture to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayCapture(_:)

func CGDisplayCaptureWithOptions

func CGDisplayCaptureWithOptions(display CGDirectDisplayID, options CGCaptureOptions) CGError

CGDisplayCaptureWithOptions obtains exclusive use of a display for an application using the options you specify.

It panics if CGDisplayCaptureWithOptions is unavailable at run time; use TryCGDisplayCaptureWithOptions to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayCaptureWithOptions(_:_:)

func CGDisplayFade added in v0.2.0

func CGDisplayFade(token CGDisplayFadeReservationToken, duration CGDisplayFadeInterval, startBlend CGDisplayBlendFraction, endBlend CGDisplayBlendFraction, redBlend float32, greenBlend float32, blueBlend float32, synchronous int32) CGError

CGDisplayFade performs a single fade operation.

It panics if CGDisplayFade is unavailable at run time; use TryCGDisplayFade to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayFade(_:_:_:_:_:_:_:_:)

func CGDisplayHideCursor

func CGDisplayHideCursor(display CGDirectDisplayID) CGError

CGDisplayHideCursor hides the mouse cursor, and increments the hide cursor count.

It panics if CGDisplayHideCursor is unavailable at run time; use TryCGDisplayHideCursor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayHideCursor(_:)

func CGDisplayMoveCursorToPoint

func CGDisplayMoveCursorToPoint(display CGDirectDisplayID, point corefoundation.CGPoint) CGError

CGDisplayMoveCursorToPoint moves the mouse cursor to a specified point relative to the upper-left corner of the display.

It panics if CGDisplayMoveCursorToPoint is unavailable at run time; use TryCGDisplayMoveCursorToPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayMoveCursorToPoint(_:_:)

func CGDisplayRegisterReconfigurationCallback

func CGDisplayRegisterReconfigurationCallback(callback CGDisplayReconfigurationCallBack, userInfo unsafe.Pointer) CGError

CGDisplayRegisterReconfigurationCallback registers a callback function to be invoked whenever a local display is reconfigured.

It panics if CGDisplayRegisterReconfigurationCallback is unavailable at run time; use TryCGDisplayRegisterReconfigurationCallback to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayRegisterReconfigurationCallback(_:_:)

func CGDisplayRelease

func CGDisplayRelease(display CGDirectDisplayID) CGError

CGDisplayRelease releases a captured display.

It panics if CGDisplayRelease is unavailable at run time; use TryCGDisplayRelease to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayRelease(_:)

func CGDisplayRemoveReconfigurationCallback

func CGDisplayRemoveReconfigurationCallback(callback CGDisplayReconfigurationCallBack, userInfo unsafe.Pointer) CGError

CGDisplayRemoveReconfigurationCallback removes the registration of a callback function that’s invoked whenever a local display is reconfigured.

It panics if CGDisplayRemoveReconfigurationCallback is unavailable at run time; use TryCGDisplayRemoveReconfigurationCallback to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayRemoveReconfigurationCallback(_:_:)

func CGDisplaySetDisplayMode

func CGDisplaySetDisplayMode(display CGDirectDisplayID, mode CGDisplayModeRef, options corefoundation.CFDictionaryRef) CGError

CGDisplaySetDisplayMode switches a display to a different mode.

It panics if CGDisplaySetDisplayMode is unavailable at run time; use TryCGDisplaySetDisplayMode to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplaySetDisplayMode(_:_:_:)

func CGDisplaySetStereoOperation added in v0.2.0

func CGDisplaySetStereoOperation(display CGDirectDisplayID, stereo int32, forceBlueLine int32, option CGConfigureOption) CGError

CGDisplaySetStereoOperation immediately enables or disables stereo operation for a display.

It panics if CGDisplaySetStereoOperation is unavailable at run time; use TryCGDisplaySetStereoOperation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplaySetStereoOperation(_:_:_:_:)

func CGDisplayShowCursor

func CGDisplayShowCursor(display CGDirectDisplayID) CGError

CGDisplayShowCursor decrements the hide cursor count, and shows the mouse cursor if the count is `0`.

It panics if CGDisplayShowCursor is unavailable at run time; use TryCGDisplayShowCursor to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayShowCursor(_:)

func CGDisplayStreamStart deprecated added in v0.5.1

func CGDisplayStreamStart(displayStream CGDisplayStreamRef) CGError

CGDisplayStreamStart tells a stream to start sending updates.

It panics if CGDisplayStreamStart is unavailable at run time; use TryCGDisplayStreamStart to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/start()

func CGDisplayStreamStop deprecated added in v0.5.1

func CGDisplayStreamStop(displayStream CGDisplayStreamRef) CGError

CGDisplayStreamStop tells a stream to stop sending updates.

It panics if CGDisplayStreamStop is unavailable at run time; use TryCGDisplayStreamStop to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayStream/stop()

func CGGetActiveDisplayList

func CGGetActiveDisplayList(maxDisplays uint32, activeDisplays *CGDirectDisplayID, displayCount *uint32) CGError

CGGetActiveDisplayList provides a list of displays that are active for drawing.

It panics if CGGetActiveDisplayList is unavailable at run time; use TryCGGetActiveDisplayList to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetActiveDisplayList(_:_:_:)

func CGGetDisplayTransferByFormula

func CGGetDisplayTransferByFormula(display CGDirectDisplayID, redMin *CGGammaValue, redMax *CGGammaValue, redGamma *CGGammaValue, greenMin *CGGammaValue, greenMax *CGGammaValue, greenGamma *CGGammaValue, blueMin *CGGammaValue, blueMax *CGGammaValue, blueGamma *CGGammaValue) CGError

CGGetDisplayTransferByFormula gets the coefficients of the gamma transfer formula for a display.

It panics if CGGetDisplayTransferByFormula is unavailable at run time; use TryCGGetDisplayTransferByFormula to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetDisplayTransferByFormula(_:_:_:_:_:_:_:_:_:_:)

func CGGetDisplayTransferByTable

func CGGetDisplayTransferByTable(display CGDirectDisplayID, capacity uint32, redTable *CGGammaValue, greenTable *CGGammaValue, blueTable *CGGammaValue, sampleCount *uint32) CGError

CGGetDisplayTransferByTable gets the values in the RGB gamma tables for a display.

It panics if CGGetDisplayTransferByTable is unavailable at run time; use TryCGGetDisplayTransferByTable to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetDisplayTransferByTable(_:_:_:_:_:_:)

func CGGetDisplaysWithOpenGLDisplayMask

func CGGetDisplaysWithOpenGLDisplayMask(mask CGOpenGLDisplayMask, maxDisplays uint32, displays *CGDirectDisplayID, matchingDisplayCount *uint32) CGError

CGGetDisplaysWithOpenGLDisplayMask provides a list of displays that corresponds to the bits set in an OpenGL display mask.

It panics if CGGetDisplaysWithOpenGLDisplayMask is unavailable at run time; use TryCGGetDisplaysWithOpenGLDisplayMask to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetDisplaysWithOpenGLDisplayMask(_:_:_:_:)

func CGGetDisplaysWithPoint

func CGGetDisplaysWithPoint(point corefoundation.CGPoint, maxDisplays uint32, displays *CGDirectDisplayID, matchingDisplayCount *uint32) CGError

CGGetDisplaysWithPoint provides a list of online displays with bounds that include the specified point.

It panics if CGGetDisplaysWithPoint is unavailable at run time; use TryCGGetDisplaysWithPoint to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetDisplaysWithPoint(_:_:_:_:)

func CGGetDisplaysWithRect

func CGGetDisplaysWithRect(rect corefoundation.CGRect, maxDisplays uint32, displays *CGDirectDisplayID, matchingDisplayCount *uint32) CGError

CGGetDisplaysWithRect gets a list of online displays with bounds that intersect the specified rectangle.

It panics if CGGetDisplaysWithRect is unavailable at run time; use TryCGGetDisplaysWithRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetDisplaysWithRect(_:_:_:_:)

func CGGetEventTapList

func CGGetEventTapList(maxNumberOfTaps uint32, tapList *CGEventTapInformation, eventTapCount *uint32) CGError

CGGetEventTapList gets a list of currently installed event taps.

It panics if CGGetEventTapList is unavailable at run time; use TryCGGetEventTapList to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetEventTapList(_:_:_:)

func CGGetOnlineDisplayList

func CGGetOnlineDisplayList(maxDisplays uint32, onlineDisplays *CGDirectDisplayID, displayCount *uint32) CGError

CGGetOnlineDisplayList provides a list of displays that are online (active, mirrored, or sleeping).

It panics if CGGetOnlineDisplayList is unavailable at run time; use TryCGGetOnlineDisplayList to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGetOnlineDisplayList(_:_:_:)

func CGPostMouseEvent deprecated added in v0.2.0

func CGPostMouseEvent(mouseCursorPosition corefoundation.CGPoint, updateMouseCursorPosition int32, buttonCount CGButtonCount, mouseButtonDown int32) CGError

CGPostMouseEvent synthesizes a low-level mouse-button event on the local machine.

It panics if CGPostMouseEvent is unavailable at run time; use TryCGPostMouseEvent to get an error instead.

Deprecated: Deprecated since macOS 10.6.

See: https://developer.apple.com/documentation/CoreGraphics/CGPostMouseEvent

func CGPostScrollWheelEvent deprecated

func CGPostScrollWheelEvent(wheelCount CGWheelCount, wheel1 int32) CGError

CGPostScrollWheelEvent synthesizes a low-level scrolling event on the local machine.

It panics if CGPostScrollWheelEvent is unavailable at run time; use TryCGPostScrollWheelEvent to get an error instead.

Deprecated: Deprecated since macOS 10.6.

See: https://developer.apple.com/documentation/CoreGraphics/CGPostScrollWheelEvent

func CGReleaseAllDisplays

func CGReleaseAllDisplays() CGError

CGReleaseAllDisplays releases all captured displays.

It panics if CGReleaseAllDisplays is unavailable at run time; use TryCGReleaseAllDisplays to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGReleaseAllDisplays()

func CGReleaseDisplayFadeReservation

func CGReleaseDisplayFadeReservation(token CGDisplayFadeReservationToken) CGError

CGReleaseDisplayFadeReservation releases a display fade reservation, and unfades the display if needed.

It panics if CGReleaseDisplayFadeReservation is unavailable at run time; use TryCGReleaseDisplayFadeReservation to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGReleaseDisplayFadeReservation(_:)

func CGSetDisplayTransferByByteTable

func CGSetDisplayTransferByByteTable(display CGDirectDisplayID, tableSize uint32, redTable []byte, greenTable []byte, blueTable []byte) CGError

CGSetDisplayTransferByByteTable sets the byte values in the 8-bit RGB gamma tables for a display.

It panics if CGSetDisplayTransferByByteTable is unavailable at run time; use TryCGSetDisplayTransferByByteTable to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGSetDisplayTransferByByteTable(_:_:_:_:_:)

func CGSetDisplayTransferByFormula

func CGSetDisplayTransferByFormula(display CGDirectDisplayID, redMin CGGammaValue, redMax CGGammaValue, redGamma CGGammaValue, greenMin CGGammaValue, greenMax CGGammaValue, greenGamma CGGammaValue, blueMin CGGammaValue, blueMax CGGammaValue, blueGamma CGGammaValue) CGError

CGSetDisplayTransferByFormula sets the gamma function for a display by specifying the coefficients of the gamma transfer formula.

It panics if CGSetDisplayTransferByFormula is unavailable at run time; use TryCGSetDisplayTransferByFormula to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGSetDisplayTransferByFormula(_:_:_:_:_:_:_:_:_:_:)

func CGSetDisplayTransferByTable

func CGSetDisplayTransferByTable(display CGDirectDisplayID, tableSize uint32, redTable *CGGammaValue, greenTable *CGGammaValue, blueTable *CGGammaValue) CGError

CGSetDisplayTransferByTable sets the color gamma function for a display by specifying the values in the RGB gamma tables.

It panics if CGSetDisplayTransferByTable is unavailable at run time; use TryCGSetDisplayTransferByTable to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGSetDisplayTransferByTable(_:_:_:_:_:)

func CGWarpMouseCursorPosition

func CGWarpMouseCursorPosition(newCursorPosition corefoundation.CGPoint) CGError

CGWarpMouseCursorPosition moves the mouse cursor without generating events.

It panics if CGWarpMouseCursorPosition is unavailable at run time; use TryCGWarpMouseCursorPosition to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGWarpMouseCursorPosition(_:)

func TryCGAcquireDisplayFadeReservation

func TryCGAcquireDisplayFadeReservation(seconds CGDisplayReservationInterval, token *CGDisplayFadeReservationToken) (CGError, error)

TryCGAcquireDisplayFadeReservation is like CGAcquireDisplayFadeReservation but returns an error instead of panicking if CGAcquireDisplayFadeReservation is unavailable at run time.

func TryCGAssociateMouseAndMouseCursorPosition

func TryCGAssociateMouseAndMouseCursorPosition(connected int32) (CGError, error)

TryCGAssociateMouseAndMouseCursorPosition is like CGAssociateMouseAndMouseCursorPosition but returns an error instead of panicking if CGAssociateMouseAndMouseCursorPosition is unavailable at run time.

func TryCGBeginDisplayConfiguration

func TryCGBeginDisplayConfiguration(config *CGDisplayConfigRef) (CGError, error)

TryCGBeginDisplayConfiguration is like CGBeginDisplayConfiguration but returns an error instead of panicking if CGBeginDisplayConfiguration is unavailable at run time.

func TryCGCancelDisplayConfiguration

func TryCGCancelDisplayConfiguration(config CGDisplayConfigRef) (CGError, error)

TryCGCancelDisplayConfiguration is like CGCancelDisplayConfiguration but returns an error instead of panicking if CGCancelDisplayConfiguration is unavailable at run time.

func TryCGCaptureAllDisplays

func TryCGCaptureAllDisplays() (CGError, error)

TryCGCaptureAllDisplays is like CGCaptureAllDisplays but returns an error instead of panicking if CGCaptureAllDisplays is unavailable at run time.

func TryCGCaptureAllDisplaysWithOptions

func TryCGCaptureAllDisplaysWithOptions(options CGCaptureOptions) (CGError, error)

TryCGCaptureAllDisplaysWithOptions is like CGCaptureAllDisplaysWithOptions but returns an error instead of panicking if CGCaptureAllDisplaysWithOptions is unavailable at run time.

func TryCGCompleteDisplayConfiguration

func TryCGCompleteDisplayConfiguration(config CGDisplayConfigRef, option CGConfigureOption) (CGError, error)

TryCGCompleteDisplayConfiguration is like CGCompleteDisplayConfiguration but returns an error instead of panicking if CGCompleteDisplayConfiguration is unavailable at run time.

func TryCGConfigureDisplayFadeEffect

func TryCGConfigureDisplayFadeEffect(config CGDisplayConfigRef, fadeOutSeconds CGDisplayFadeInterval, fadeInSeconds CGDisplayFadeInterval, fadeRed float32, fadeGreen float32, fadeBlue float32) (CGError, error)

TryCGConfigureDisplayFadeEffect is like CGConfigureDisplayFadeEffect but returns an error instead of panicking if CGConfigureDisplayFadeEffect is unavailable at run time.

func TryCGConfigureDisplayMirrorOfDisplay

func TryCGConfigureDisplayMirrorOfDisplay(config CGDisplayConfigRef, display CGDirectDisplayID, master CGDirectDisplayID) (CGError, error)

TryCGConfigureDisplayMirrorOfDisplay is like CGConfigureDisplayMirrorOfDisplay but returns an error instead of panicking if CGConfigureDisplayMirrorOfDisplay is unavailable at run time.

func TryCGConfigureDisplayOrigin

func TryCGConfigureDisplayOrigin(config CGDisplayConfigRef, display CGDirectDisplayID, x int32, y int32) (CGError, error)

TryCGConfigureDisplayOrigin is like CGConfigureDisplayOrigin but returns an error instead of panicking if CGConfigureDisplayOrigin is unavailable at run time.

func TryCGConfigureDisplayStereoOperation

func TryCGConfigureDisplayStereoOperation(config CGDisplayConfigRef, display CGDirectDisplayID, stereo int32, forceBlueLine int32) (CGError, error)

TryCGConfigureDisplayStereoOperation is like CGConfigureDisplayStereoOperation but returns an error instead of panicking if CGConfigureDisplayStereoOperation is unavailable at run time.

func TryCGConfigureDisplayWithDisplayMode

func TryCGConfigureDisplayWithDisplayMode(config CGDisplayConfigRef, display CGDirectDisplayID, mode CGDisplayModeRef, options corefoundation.CFDictionaryRef) (CGError, error)

TryCGConfigureDisplayWithDisplayMode is like CGConfigureDisplayWithDisplayMode but returns an error instead of panicking if CGConfigureDisplayWithDisplayMode is unavailable at run time.

func TryCGDisplayCapture

func TryCGDisplayCapture(display CGDirectDisplayID) (CGError, error)

TryCGDisplayCapture is like CGDisplayCapture but returns an error instead of panicking if CGDisplayCapture is unavailable at run time.

func TryCGDisplayCaptureWithOptions

func TryCGDisplayCaptureWithOptions(display CGDirectDisplayID, options CGCaptureOptions) (CGError, error)

TryCGDisplayCaptureWithOptions is like CGDisplayCaptureWithOptions but returns an error instead of panicking if CGDisplayCaptureWithOptions is unavailable at run time.

func TryCGDisplayFade

func TryCGDisplayFade(token CGDisplayFadeReservationToken, duration CGDisplayFadeInterval, startBlend CGDisplayBlendFraction, endBlend CGDisplayBlendFraction, redBlend float32, greenBlend float32, blueBlend float32, synchronous int32) (CGError, error)

TryCGDisplayFade is like CGDisplayFade but returns an error instead of panicking if CGDisplayFade is unavailable at run time.

func TryCGDisplayHideCursor

func TryCGDisplayHideCursor(display CGDirectDisplayID) (CGError, error)

TryCGDisplayHideCursor is like CGDisplayHideCursor but returns an error instead of panicking if CGDisplayHideCursor is unavailable at run time.

func TryCGDisplayMoveCursorToPoint

func TryCGDisplayMoveCursorToPoint(display CGDirectDisplayID, point corefoundation.CGPoint) (CGError, error)

TryCGDisplayMoveCursorToPoint is like CGDisplayMoveCursorToPoint but returns an error instead of panicking if CGDisplayMoveCursorToPoint is unavailable at run time.

func TryCGDisplayRegisterReconfigurationCallback

func TryCGDisplayRegisterReconfigurationCallback(callback CGDisplayReconfigurationCallBack, userInfo unsafe.Pointer) (CGError, error)

TryCGDisplayRegisterReconfigurationCallback is like CGDisplayRegisterReconfigurationCallback but returns an error instead of panicking if CGDisplayRegisterReconfigurationCallback is unavailable at run time.

func TryCGDisplayRelease

func TryCGDisplayRelease(display CGDirectDisplayID) (CGError, error)

TryCGDisplayRelease is like CGDisplayRelease but returns an error instead of panicking if CGDisplayRelease is unavailable at run time.

func TryCGDisplayRemoveReconfigurationCallback

func TryCGDisplayRemoveReconfigurationCallback(callback CGDisplayReconfigurationCallBack, userInfo unsafe.Pointer) (CGError, error)

TryCGDisplayRemoveReconfigurationCallback is like CGDisplayRemoveReconfigurationCallback but returns an error instead of panicking if CGDisplayRemoveReconfigurationCallback is unavailable at run time.

func TryCGDisplaySetDisplayMode

func TryCGDisplaySetDisplayMode(display CGDirectDisplayID, mode CGDisplayModeRef, options corefoundation.CFDictionaryRef) (CGError, error)

TryCGDisplaySetDisplayMode is like CGDisplaySetDisplayMode but returns an error instead of panicking if CGDisplaySetDisplayMode is unavailable at run time.

func TryCGDisplaySetStereoOperation

func TryCGDisplaySetStereoOperation(display CGDirectDisplayID, stereo int32, forceBlueLine int32, option CGConfigureOption) (CGError, error)

TryCGDisplaySetStereoOperation is like CGDisplaySetStereoOperation but returns an error instead of panicking if CGDisplaySetStereoOperation is unavailable at run time.

func TryCGDisplayShowCursor

func TryCGDisplayShowCursor(display CGDirectDisplayID) (CGError, error)

TryCGDisplayShowCursor is like CGDisplayShowCursor but returns an error instead of panicking if CGDisplayShowCursor is unavailable at run time.

func TryCGDisplayStreamStart

func TryCGDisplayStreamStart(displayStream CGDisplayStreamRef) (CGError, error)

TryCGDisplayStreamStart is like CGDisplayStreamStart but returns an error instead of panicking if CGDisplayStreamStart is unavailable at run time.

func TryCGDisplayStreamStop

func TryCGDisplayStreamStop(displayStream CGDisplayStreamRef) (CGError, error)

TryCGDisplayStreamStop is like CGDisplayStreamStop but returns an error instead of panicking if CGDisplayStreamStop is unavailable at run time.

func TryCGGetActiveDisplayList

func TryCGGetActiveDisplayList(maxDisplays uint32, activeDisplays *CGDirectDisplayID, displayCount *uint32) (CGError, error)

TryCGGetActiveDisplayList is like CGGetActiveDisplayList but returns an error instead of panicking if CGGetActiveDisplayList is unavailable at run time.

func TryCGGetDisplayTransferByFormula

func TryCGGetDisplayTransferByFormula(display CGDirectDisplayID, redMin *CGGammaValue, redMax *CGGammaValue, redGamma *CGGammaValue, greenMin *CGGammaValue, greenMax *CGGammaValue, greenGamma *CGGammaValue, blueMin *CGGammaValue, blueMax *CGGammaValue, blueGamma *CGGammaValue) (CGError, error)

TryCGGetDisplayTransferByFormula is like CGGetDisplayTransferByFormula but returns an error instead of panicking if CGGetDisplayTransferByFormula is unavailable at run time.

func TryCGGetDisplayTransferByTable

func TryCGGetDisplayTransferByTable(display CGDirectDisplayID, capacity uint32, redTable *CGGammaValue, greenTable *CGGammaValue, blueTable *CGGammaValue, sampleCount *uint32) (CGError, error)

TryCGGetDisplayTransferByTable is like CGGetDisplayTransferByTable but returns an error instead of panicking if CGGetDisplayTransferByTable is unavailable at run time.

func TryCGGetDisplaysWithOpenGLDisplayMask

func TryCGGetDisplaysWithOpenGLDisplayMask(mask CGOpenGLDisplayMask, maxDisplays uint32, displays *CGDirectDisplayID, matchingDisplayCount *uint32) (CGError, error)

TryCGGetDisplaysWithOpenGLDisplayMask is like CGGetDisplaysWithOpenGLDisplayMask but returns an error instead of panicking if CGGetDisplaysWithOpenGLDisplayMask is unavailable at run time.

func TryCGGetDisplaysWithPoint

func TryCGGetDisplaysWithPoint(point corefoundation.CGPoint, maxDisplays uint32, displays *CGDirectDisplayID, matchingDisplayCount *uint32) (CGError, error)

TryCGGetDisplaysWithPoint is like CGGetDisplaysWithPoint but returns an error instead of panicking if CGGetDisplaysWithPoint is unavailable at run time.

func TryCGGetDisplaysWithRect

func TryCGGetDisplaysWithRect(rect corefoundation.CGRect, maxDisplays uint32, displays *CGDirectDisplayID, matchingDisplayCount *uint32) (CGError, error)

TryCGGetDisplaysWithRect is like CGGetDisplaysWithRect but returns an error instead of panicking if CGGetDisplaysWithRect is unavailable at run time.

func TryCGGetEventTapList

func TryCGGetEventTapList(maxNumberOfTaps uint32, tapList *CGEventTapInformation, eventTapCount *uint32) (CGError, error)

TryCGGetEventTapList is like CGGetEventTapList but returns an error instead of panicking if CGGetEventTapList is unavailable at run time.

func TryCGGetOnlineDisplayList

func TryCGGetOnlineDisplayList(maxDisplays uint32, onlineDisplays *CGDirectDisplayID, displayCount *uint32) (CGError, error)

TryCGGetOnlineDisplayList is like CGGetOnlineDisplayList but returns an error instead of panicking if CGGetOnlineDisplayList is unavailable at run time.

func TryCGPostMouseEvent

func TryCGPostMouseEvent(mouseCursorPosition corefoundation.CGPoint, updateMouseCursorPosition int32, buttonCount CGButtonCount, mouseButtonDown int32) (CGError, error)

TryCGPostMouseEvent is like CGPostMouseEvent but returns an error instead of panicking if CGPostMouseEvent is unavailable at run time.

func TryCGPostScrollWheelEvent

func TryCGPostScrollWheelEvent(wheelCount CGWheelCount, wheel1 int32) (CGError, error)

TryCGPostScrollWheelEvent is like CGPostScrollWheelEvent but returns an error instead of panicking if CGPostScrollWheelEvent is unavailable at run time.

func TryCGReleaseAllDisplays

func TryCGReleaseAllDisplays() (CGError, error)

TryCGReleaseAllDisplays is like CGReleaseAllDisplays but returns an error instead of panicking if CGReleaseAllDisplays is unavailable at run time.

func TryCGReleaseDisplayFadeReservation

func TryCGReleaseDisplayFadeReservation(token CGDisplayFadeReservationToken) (CGError, error)

TryCGReleaseDisplayFadeReservation is like CGReleaseDisplayFadeReservation but returns an error instead of panicking if CGReleaseDisplayFadeReservation is unavailable at run time.

func TryCGSetDisplayTransferByByteTable

func TryCGSetDisplayTransferByByteTable(display CGDirectDisplayID, tableSize uint32, redTable []byte, greenTable []byte, blueTable []byte) (CGError, error)

TryCGSetDisplayTransferByByteTable is like CGSetDisplayTransferByByteTable but returns an error instead of panicking if CGSetDisplayTransferByByteTable is unavailable at run time.

func TryCGSetDisplayTransferByFormula

func TryCGSetDisplayTransferByFormula(display CGDirectDisplayID, redMin CGGammaValue, redMax CGGammaValue, redGamma CGGammaValue, greenMin CGGammaValue, greenMax CGGammaValue, greenGamma CGGammaValue, blueMin CGGammaValue, blueMax CGGammaValue, blueGamma CGGammaValue) (CGError, error)

TryCGSetDisplayTransferByFormula is like CGSetDisplayTransferByFormula but returns an error instead of panicking if CGSetDisplayTransferByFormula is unavailable at run time.

func TryCGSetDisplayTransferByTable

func TryCGSetDisplayTransferByTable(display CGDirectDisplayID, tableSize uint32, redTable *CGGammaValue, greenTable *CGGammaValue, blueTable *CGGammaValue) (CGError, error)

TryCGSetDisplayTransferByTable is like CGSetDisplayTransferByTable but returns an error instead of panicking if CGSetDisplayTransferByTable is unavailable at run time.

func TryCGWarpMouseCursorPosition

func TryCGWarpMouseCursorPosition(newCursorPosition corefoundation.CGPoint) (CGError, error)

TryCGWarpMouseCursorPosition is like CGWarpMouseCursorPosition but returns an error instead of panicking if CGWarpMouseCursorPosition is unavailable at run time.

func (CGError) String

func (e CGError) String() string

type CGEvent

type CGEvent = CGEventRef

CGEvent is an opaque Core Graphics event reference type.

type CGEventField

type CGEventField uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventField

const (
	// KCGEventSourceGroupID: Key to access a field that contains the event source Unix effective GID.
	KCGEventSourceGroupID CGEventField = 44
	// KCGEventSourceStateID: Key to access a field that contains the event source state ID used to create this event.
	KCGEventSourceStateID CGEventField = 45
	// KCGEventSourceUnixProcessID: Key to access a field that contains the event source Unix process ID.
	KCGEventSourceUnixProcessID CGEventField = 41
	// KCGEventSourceUserData: Key to access a field that contains the event source user-supplied data, up to 64 bits.
	KCGEventSourceUserData CGEventField = 42
	// KCGEventSourceUserID: Key to access a field that contains the event source Unix effective UID.
	KCGEventSourceUserID CGEventField = 43
	// KCGEventTargetProcessSerialNumber: Key to access a field that contains the event target process serial number.
	KCGEventTargetProcessSerialNumber CGEventField = 39
	// KCGEventTargetUnixProcessID: Key to access a field that contains the event target Unix process ID.
	KCGEventTargetUnixProcessID           CGEventField = 40
	KCGEventUnacceleratedPointerMovementX CGEventField = 170
	KCGEventUnacceleratedPointerMovementY CGEventField = 171
	// KCGKeyboardEventAutorepeat: Key to access an integer field, non-zero when this is an autorepeat of a key-down, and zero otherwise.
	KCGKeyboardEventAutorepeat CGEventField = 8
	// KCGKeyboardEventKeyboardType: Key to access an integer field that contains the keyboard type identifier.
	KCGKeyboardEventKeyboardType CGEventField = 10
	// KCGKeyboardEventKeycode: Key to access an integer field that contains the virtual keycode of the key-down or key-up event.
	KCGKeyboardEventKeycode CGEventField = 9
	// KCGMouseEventButtonNumber: Key to access an integer field that contains the mouse button number.
	KCGMouseEventButtonNumber CGEventField = 3
	// KCGMouseEventClickState: Key to access an integer field that contains the mouse button click state.
	KCGMouseEventClickState CGEventField = 1
	// KCGMouseEventDeltaX: Key to access an integer field that contains the horizontal mouse delta since the last mouse movement event.
	KCGMouseEventDeltaX CGEventField = 4
	// KCGMouseEventDeltaY: Key to access an integer field that contains the vertical mouse delta since the last mouse movement event.
	KCGMouseEventDeltaY CGEventField = 5
	// KCGMouseEventInstantMouser: Key to access an integer field.
	KCGMouseEventInstantMouser CGEventField = 6
	// KCGMouseEventNumber: Key to access an integer field that contains the mouse button event number.
	KCGMouseEventNumber CGEventField = 0
	// KCGMouseEventPressure: Key to access a double field that contains the mouse button pressure.
	KCGMouseEventPressure CGEventField = 2
	// KCGMouseEventSubtype: Key to access an integer field that encodes the mouse event subtype as a `kCFNumberIntType`.
	KCGMouseEventSubtype                                       CGEventField = 7
	KCGMouseEventWindowUnderMousePointer                       CGEventField = 91
	KCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent CGEventField = 92
	KCGScrollWheelEventAcceleratedDeltaAxis1                   CGEventField = 176
	KCGScrollWheelEventAcceleratedDeltaAxis2                   CGEventField = 175
	// KCGScrollWheelEventDeltaAxis1: Key to access an integer field that contains scrolling data.
	KCGScrollWheelEventDeltaAxis1 CGEventField = 11
	// KCGScrollWheelEventDeltaAxis2: Key to access an integer field that contains scrolling data.
	KCGScrollWheelEventDeltaAxis2 CGEventField = 12
	// KCGScrollWheelEventDeltaAxis3: This field is not used.
	KCGScrollWheelEventDeltaAxis3 CGEventField = 13
	// KCGScrollWheelEventFixedPtDeltaAxis1: Key to access a field that contains scrolling data.
	KCGScrollWheelEventFixedPtDeltaAxis1 CGEventField = 93
	// KCGScrollWheelEventFixedPtDeltaAxis2: Key to access a field that contains scrolling data.
	KCGScrollWheelEventFixedPtDeltaAxis2 CGEventField = 94
	// KCGScrollWheelEventFixedPtDeltaAxis3: This field is not used.
	KCGScrollWheelEventFixedPtDeltaAxis3 CGEventField = 95
	// KCGScrollWheelEventInstantMouser: Key to access an integer field that indicates whether the event should be ignored by the Inkwell subsystem.
	KCGScrollWheelEventInstantMouser CGEventField = 14
	// KCGScrollWheelEventIsContinuous: Key to access an integer field that indicates whether a scrolling event contains continuous, pixel-based scrolling data.
	KCGScrollWheelEventIsContinuous        CGEventField = 88
	KCGScrollWheelEventMomentumOptionPhase CGEventField = 173
	KCGScrollWheelEventMomentumPhase       CGEventField = 123
	// KCGScrollWheelEventPointDeltaAxis1: Key to access an integer field that contains pixel-based scrolling data.
	KCGScrollWheelEventPointDeltaAxis1 CGEventField = 96
	// KCGScrollWheelEventPointDeltaAxis2: Key to access an integer field that contains pixel-based scrolling data.
	KCGScrollWheelEventPointDeltaAxis2 CGEventField = 97
	// KCGScrollWheelEventPointDeltaAxis3: This field is not used.
	KCGScrollWheelEventPointDeltaAxis3 CGEventField = 98
	KCGScrollWheelEventRawDeltaAxis1   CGEventField = 178
	KCGScrollWheelEventRawDeltaAxis2   CGEventField = 177
	KCGScrollWheelEventScrollCount     CGEventField = 100
	KCGScrollWheelEventScrollPhase     CGEventField = 99
	// KCGTabletEventDeviceID: Key to access an integer field that contains the system-assigned unique device ID.
	KCGTabletEventDeviceID CGEventField = 24
	// KCGTabletEventPointButtons: Key to access an integer field that contains the tablet button state.
	KCGTabletEventPointButtons CGEventField = 18
	// KCGTabletEventPointPressure: Key to access a double field that contains the tablet pen pressure.
	KCGTabletEventPointPressure CGEventField = 19
	// KCGTabletEventPointX: Key to access an integer field that contains the absolute X coordinate in tablet space at full tablet resolution.
	KCGTabletEventPointX CGEventField = 15
	// KCGTabletEventPointY: Key to access an integer field that contains the absolute Y coordinate in tablet space at full tablet resolution.
	KCGTabletEventPointY CGEventField = 16
	// KCGTabletEventPointZ: Key to access an integer field that contains the absolute Z coordinate in tablet space at full tablet resolution.
	KCGTabletEventPointZ CGEventField = 17
	// KCGTabletEventRotation: Key to access a double field that contains the tablet pen rotation.
	KCGTabletEventRotation CGEventField = 22
	// KCGTabletEventTangentialPressure: Key to access a double field that contains the tangential pressure on the device.
	KCGTabletEventTangentialPressure CGEventField = 23
	// KCGTabletEventTiltX: Key to access a double field that contains the horizontal tablet pen tilt.
	KCGTabletEventTiltX CGEventField = 20
	// KCGTabletEventTiltY: Key to access a double field that contains the vertical tablet pen tilt.
	KCGTabletEventTiltY CGEventField = 21
	// KCGTabletEventVendor1: Key to access an integer field that contains a vendor-specified value.
	KCGTabletEventVendor1 CGEventField = 25
	// KCGTabletEventVendor2: Key to access an integer field that contains a vendor-specified value.
	KCGTabletEventVendor2 CGEventField = 26
	// KCGTabletEventVendor3: Key to access an integer field that contains a vendor-specified value.
	KCGTabletEventVendor3 CGEventField = 27
	// KCGTabletProximityEventCapabilityMask: Key to access an integer field that contains the device capabilities mask.
	KCGTabletProximityEventCapabilityMask CGEventField = 36
	// KCGTabletProximityEventDeviceID: Key to access an integer field that contains the system-assigned device ID.
	KCGTabletProximityEventDeviceID CGEventField = 31
	// KCGTabletProximityEventEnterProximity: Key to access an integer field that indicates whether the pen is in proximity to the tablet.
	KCGTabletProximityEventEnterProximity CGEventField = 38
	// KCGTabletProximityEventPointerID: Key to access an integer field that contains the vendor-defined ID of the pointing device.
	KCGTabletProximityEventPointerID CGEventField = 30
	// KCGTabletProximityEventPointerType: Key to access an integer field that contains the pointer type.
	KCGTabletProximityEventPointerType CGEventField = 37
	// KCGTabletProximityEventSystemTabletID: Key to access an integer field that contains the system-assigned unique tablet ID.
	KCGTabletProximityEventSystemTabletID CGEventField = 32
	// KCGTabletProximityEventTabletID: Key to access an integer field that contains the vendor-defined tablet ID, typically the USB product ID.
	KCGTabletProximityEventTabletID CGEventField = 29
	// KCGTabletProximityEventVendorID: Key to access an integer field that contains the vendor-defined ID, typically the USB vendor ID.
	KCGTabletProximityEventVendorID CGEventField = 28
	// KCGTabletProximityEventVendorPointerSerialNumber: Key to access an integer field that contains the vendor-defined pointer serial number.
	KCGTabletProximityEventVendorPointerSerialNumber CGEventField = 34
	// KCGTabletProximityEventVendorPointerType: Key to access an integer field that contains the vendor-assigned pointer type.
	KCGTabletProximityEventVendorPointerType CGEventField = 33
	// KCGTabletProximityEventVendorUniqueID: Key to access an integer field that contains the vendor-defined unique ID.
	KCGTabletProximityEventVendorUniqueID CGEventField = 35
)

func (CGEventField) String

func (e CGEventField) String() string

type CGEventFilterMask

type CGEventFilterMask uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventFilterMask

const (
	KCGEventFilterMaskPermitLocalKeyboardEvents CGEventFilterMask = 0x2
	KCGEventFilterMaskPermitLocalMouseEvents    CGEventFilterMask = 0x1
	KCGEventFilterMaskPermitSystemDefinedEvents CGEventFilterMask = 0x4
)

func CGEventSourceGetLocalEventsFilterDuringSuppressionState

func CGEventSourceGetLocalEventsFilterDuringSuppressionState(source CGEventSourceRef, state CGEventSuppressionState) CGEventFilterMask

CGEventSourceGetLocalEventsFilterDuringSuppressionState returns the mask that indicates which classes of local hardware events are enabled during event suppression.

It panics if CGEventSourceGetLocalEventsFilterDuringSuppressionState is unavailable at run time; use TryCGEventSourceGetLocalEventsFilterDuringSuppressionState to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/getLocalEventsFilterDuringSuppressionState(_:)

func TryCGEventSourceGetLocalEventsFilterDuringSuppressionState

func TryCGEventSourceGetLocalEventsFilterDuringSuppressionState(source CGEventSourceRef, state CGEventSuppressionState) (CGEventFilterMask, error)

TryCGEventSourceGetLocalEventsFilterDuringSuppressionState is like CGEventSourceGetLocalEventsFilterDuringSuppressionState but returns an error instead of panicking if CGEventSourceGetLocalEventsFilterDuringSuppressionState is unavailable at run time.

func (CGEventFilterMask) String

func (e CGEventFilterMask) String() string

type CGEventFlags

type CGEventFlags uint64

See: https://developer.apple.com/documentation/CoreGraphics/CGEventFlags

const (
	// KCGEventFlagMaskAlphaShift: Indicates that the Caps Lock key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskAlphaShift CGEventFlags = 0x10000
	// KCGEventFlagMaskAlternate: Indicates that the Alt or Option key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskAlternate CGEventFlags = 0x80000
	// KCGEventFlagMaskCommand: Indicates that the Command key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskCommand CGEventFlags = 0x100000
	// KCGEventFlagMaskControl: Indicates that the Control key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskControl CGEventFlags = 0x40000
	// KCGEventFlagMaskHelp: Indicates that the Help modifier key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskHelp CGEventFlags = 0x400000
	// KCGEventFlagMaskNonCoalesced: Indicates that mouse and pen movement events are not being coalesced.
	KCGEventFlagMaskNonCoalesced CGEventFlags = 0x100
	// KCGEventFlagMaskNumericPad: Identifies key events from the numeric keypad area on extended keyboards.
	KCGEventFlagMaskNumericPad CGEventFlags = 0x200000
	// KCGEventFlagMaskSecondaryFn: Indicates that the Fn (Function) key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskSecondaryFn CGEventFlags = 0x800000
	// KCGEventFlagMaskShift: Indicates that the Shift key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskShift CGEventFlags = 0x20000
)

func CGEventGetFlags

func CGEventGetFlags(event CGEventRef) CGEventFlags

CGEventGetFlags returns the event flags of a Quartz event.

It panics if CGEventGetFlags is unavailable at run time; use TryCGEventGetFlags to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/flags

func CGEventSourceFlagsState

func CGEventSourceFlagsState(stateID CGEventSourceStateID) CGEventFlags

CGEventSourceFlagsState returns the current flags of a Quartz event source.

It panics if CGEventSourceFlagsState is unavailable at run time; use TryCGEventSourceFlagsState to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/flagsState(_:)

func TryCGEventGetFlags

func TryCGEventGetFlags(event CGEventRef) (CGEventFlags, error)

TryCGEventGetFlags is like CGEventGetFlags but returns an error instead of panicking if CGEventGetFlags is unavailable at run time.

func TryCGEventSourceFlagsState

func TryCGEventSourceFlagsState(stateID CGEventSourceStateID) (CGEventFlags, error)

TryCGEventSourceFlagsState is like CGEventSourceFlagsState but returns an error instead of panicking if CGEventSourceFlagsState is unavailable at run time.

func (CGEventFlags) String

func (e CGEventFlags) String() string

type CGEventMask

type CGEventMask = uint64

CGEventMask is defines a mask that identifies the set of Quartz events to be observed in an event tap.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventMask

type CGEventMouseSubtype

type CGEventMouseSubtype uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventMouseSubtype

const (
	// KCGEventMouseSubtypeDefault: Specifies that the event is an ordinary mouse event, and does not contain additional tablet device information.
	KCGEventMouseSubtypeDefault CGEventMouseSubtype = 0
	// KCGEventMouseSubtypeTabletPoint: Specifies that the mouse event originated from a tablet device, and that the various `kCGTabletEvent` field selectors may be used to obtain tablet-specific data from the mouse event.
	KCGEventMouseSubtypeTabletPoint CGEventMouseSubtype = 1
	// KCGEventMouseSubtypeTabletProximity: # Discussion
	KCGEventMouseSubtypeTabletProximity CGEventMouseSubtype = 2
)

func (CGEventMouseSubtype) String

func (e CGEventMouseSubtype) String() string

type CGEventRef

type CGEventRef uintptr

CGEventRef is defines an opaque type that represents a low-level hardware event.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent

func CGEventCreate

func CGEventCreate(source CGEventSourceRef) CGEventRef

CGEventCreate returns a new Quartz event.

It panics if CGEventCreate is unavailable at run time; use TryCGEventCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/init(source:)

func CGEventCreateCopy

func CGEventCreateCopy(event CGEventRef) CGEventRef

CGEventCreateCopy returns a copy of an existing Quartz event.

It panics if CGEventCreateCopy is unavailable at run time; use TryCGEventCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/copy()

func CGEventCreateFromData

func CGEventCreateFromData(allocator corefoundation.CFAllocatorRef, data corefoundation.CFDataRef) CGEventRef

CGEventCreateFromData returns a Quartz event created from a flattened data representation of the event.

It panics if CGEventCreateFromData is unavailable at run time; use TryCGEventCreateFromData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/init(withDataAllocator:data:)

func CGEventCreateKeyboardEvent

func CGEventCreateKeyboardEvent(source CGEventSourceRef, virtualKey CGKeyCode, keyDown bool) CGEventRef

CGEventCreateKeyboardEvent returns a new Quartz keyboard event.

It panics if CGEventCreateKeyboardEvent is unavailable at run time; use TryCGEventCreateKeyboardEvent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/init(keyboardEventSource:virtualKey:keyDown:)

func CGEventCreateMouseEvent

func CGEventCreateMouseEvent(source CGEventSourceRef, mouseType CGEventType, mouseCursorPosition corefoundation.CGPoint, mouseButton CGMouseButton) CGEventRef

CGEventCreateMouseEvent returns a new Quartz mouse event.

It panics if CGEventCreateMouseEvent is unavailable at run time; use TryCGEventCreateMouseEvent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/init(mouseEventSource:mouseType:mouseCursorPosition:mouseButton:)

func CGEventCreateScrollWheelEvent

func CGEventCreateScrollWheelEvent(source CGEventSourceRef, units CGScrollEventUnit, wheelCount uint32, wheel1 int32) CGEventRef

CGEventCreateScrollWheelEvent returns a new Quartz scrolling event.

It panics if CGEventCreateScrollWheelEvent is unavailable at run time; use TryCGEventCreateScrollWheelEvent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventCreateScrollWheelEvent

func CGEventCreateScrollWheelEvent2

func CGEventCreateScrollWheelEvent2(source CGEventSourceRef, units CGScrollEventUnit, wheelCount uint32, wheel1 int32, wheel2 int32, wheel3 int32) CGEventRef

CGEventCreateScrollWheelEvent2.

It panics if CGEventCreateScrollWheelEvent2 is unavailable at run time; use TryCGEventCreateScrollWheelEvent2 to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/init(scrollWheelEvent2Source:units:wheelCount:wheel1:wheel2:wheel3:)

func TryCGEventCreate

func TryCGEventCreate(source CGEventSourceRef) (CGEventRef, error)

TryCGEventCreate is like CGEventCreate but returns an error instead of panicking if CGEventCreate is unavailable at run time.

func TryCGEventCreateCopy

func TryCGEventCreateCopy(event CGEventRef) (CGEventRef, error)

TryCGEventCreateCopy is like CGEventCreateCopy but returns an error instead of panicking if CGEventCreateCopy is unavailable at run time.

func TryCGEventCreateFromData

func TryCGEventCreateFromData(allocator corefoundation.CFAllocatorRef, data corefoundation.CFDataRef) (CGEventRef, error)

TryCGEventCreateFromData is like CGEventCreateFromData but returns an error instead of panicking if CGEventCreateFromData is unavailable at run time.

func TryCGEventCreateKeyboardEvent

func TryCGEventCreateKeyboardEvent(source CGEventSourceRef, virtualKey CGKeyCode, keyDown bool) (CGEventRef, error)

TryCGEventCreateKeyboardEvent is like CGEventCreateKeyboardEvent but returns an error instead of panicking if CGEventCreateKeyboardEvent is unavailable at run time.

func TryCGEventCreateMouseEvent

func TryCGEventCreateMouseEvent(source CGEventSourceRef, mouseType CGEventType, mouseCursorPosition corefoundation.CGPoint, mouseButton CGMouseButton) (CGEventRef, error)

TryCGEventCreateMouseEvent is like CGEventCreateMouseEvent but returns an error instead of panicking if CGEventCreateMouseEvent is unavailable at run time.

func TryCGEventCreateScrollWheelEvent

func TryCGEventCreateScrollWheelEvent(source CGEventSourceRef, units CGScrollEventUnit, wheelCount uint32, wheel1 int32) (CGEventRef, error)

TryCGEventCreateScrollWheelEvent is like CGEventCreateScrollWheelEvent but returns an error instead of panicking if CGEventCreateScrollWheelEvent is unavailable at run time.

func TryCGEventCreateScrollWheelEvent2

func TryCGEventCreateScrollWheelEvent2(source CGEventSourceRef, units CGScrollEventUnit, wheelCount uint32, wheel1 int32, wheel2 int32, wheel3 int32) (CGEventRef, error)

TryCGEventCreateScrollWheelEvent2 is like CGEventCreateScrollWheelEvent2 but returns an error instead of panicking if CGEventCreateScrollWheelEvent2 is unavailable at run time.

type CGEventSourceKeyboardType

type CGEventSourceKeyboardType = uint32

CGEventSourceKeyboardType is defines a code that represents the type of keyboard used with a specified event source.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSourceKeyboardType

func CGEventSourceGetKeyboardType

func CGEventSourceGetKeyboardType(source CGEventSourceRef) CGEventSourceKeyboardType

CGEventSourceGetKeyboardType returns the keyboard type to be used with a Quartz event source.

It panics if CGEventSourceGetKeyboardType is unavailable at run time; use TryCGEventSourceGetKeyboardType to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/keyboardType

func TryCGEventSourceGetKeyboardType

func TryCGEventSourceGetKeyboardType(source CGEventSourceRef) (CGEventSourceKeyboardType, error)

TryCGEventSourceGetKeyboardType is like CGEventSourceGetKeyboardType but returns an error instead of panicking if CGEventSourceGetKeyboardType is unavailable at run time.

type CGEventSourceRef

type CGEventSourceRef uintptr

CGEventSourceRef is defines an opaque type that represents the source of a Quartz event.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource

func CGEventCreateSourceFromEvent

func CGEventCreateSourceFromEvent(event CGEventRef) CGEventSourceRef

CGEventCreateSourceFromEvent returns a Quartz event source created from an existing Quartz event.

It panics if CGEventCreateSourceFromEvent is unavailable at run time; use TryCGEventCreateSourceFromEvent to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/init(event:)

func CGEventSourceCreate

func CGEventSourceCreate(stateID CGEventSourceStateID) CGEventSourceRef

CGEventSourceCreate returns a Quartz event source created with a specified source state.

It panics if CGEventSourceCreate is unavailable at run time; use TryCGEventSourceCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/init(stateID:)

func TryCGEventCreateSourceFromEvent

func TryCGEventCreateSourceFromEvent(event CGEventRef) (CGEventSourceRef, error)

TryCGEventCreateSourceFromEvent is like CGEventCreateSourceFromEvent but returns an error instead of panicking if CGEventCreateSourceFromEvent is unavailable at run time.

func TryCGEventSourceCreate

func TryCGEventSourceCreate(stateID CGEventSourceStateID) (CGEventSourceRef, error)

TryCGEventSourceCreate is like CGEventSourceCreate but returns an error instead of panicking if CGEventSourceCreate is unavailable at run time.

type CGEventSourceStateID

type CGEventSourceStateID int32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSourceStateID

const (
	// KCGEventSourceStateCombinedSessionState: Specifies that an event source should use the event state table that reflects the combined state of all event sources posting to the current user login session.
	KCGEventSourceStateCombinedSessionState CGEventSourceStateID = 0
	// KCGEventSourceStateHIDSystemState: Specifies that an event source should use the event state table that reflects the combined state of all hardware event sources posting from the HID system.
	KCGEventSourceStateHIDSystemState CGEventSourceStateID = 1
	// KCGEventSourceStatePrivate: Specifies that an event source should use a private event state table.
	KCGEventSourceStatePrivate CGEventSourceStateID = -1
)

func CGEventSourceGetSourceStateID

func CGEventSourceGetSourceStateID(source CGEventSourceRef) CGEventSourceStateID

CGEventSourceGetSourceStateID returns the source state associated with a Quartz event source.

It panics if CGEventSourceGetSourceStateID is unavailable at run time; use TryCGEventSourceGetSourceStateID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/sourceStateID

func TryCGEventSourceGetSourceStateID

func TryCGEventSourceGetSourceStateID(source CGEventSourceRef) (CGEventSourceStateID, error)

TryCGEventSourceGetSourceStateID is like CGEventSourceGetSourceStateID but returns an error instead of panicking if CGEventSourceGetSourceStateID is unavailable at run time.

func (CGEventSourceStateID) String

func (e CGEventSourceStateID) String() string

type CGEventSuppressionState

type CGEventSuppressionState uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSuppressionState

const (
	// KCGEventSuppressionStateRemoteMouseDrag: Specifies that certain local hardware events may be suppressed during a mouse drag operation (mouse movement with the left or only mouse button down).
	KCGEventSuppressionStateRemoteMouseDrag CGEventSuppressionState = 1
	// KCGEventSuppressionStateSuppressionInterval: Specifies that certain local hardware events may be suppressed for a short interval after posting an event.
	KCGEventSuppressionStateSuppressionInterval CGEventSuppressionState = 0
	KCGNumberOfEventSuppressionStates           CGEventSuppressionState = 2
)

func (CGEventSuppressionState) String

func (e CGEventSuppressionState) String() string

type CGEventTapCallBack

type CGEventTapCallBack = func(proxy CGEventTapProxy, type_ CGEventType, event CGEventRef, refcon unsafe.Pointer) CGEventRef

CGEventTapCallBack is a client-supplied callback function that’s invoked whenever an associated event tap receives a Quartz event.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventTapCallBack

type CGEventTapInformation

type CGEventTapInformation [6]uint64

CGEventTapInformation is defines the structure used to report information about event taps.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventTapInformation CGEventTapInformation is opaque storage with the size and alignment C gives CGEventTapInformation: 48 bytes. C declares a record here, not a handle, so a pointer-width rendering would hand the framework eight bytes to write 48 into.

type CGEventTapLocation

type CGEventTapLocation uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventTapLocation

const (
	// KCGAnnotatedSessionEventTap: Specifies that an event tap is placed at the point where session events have been annotated to flow to an application.
	KCGAnnotatedSessionEventTap CGEventTapLocation = 2
	// KCGHIDEventTap: Specifies that an event tap is placed at the point where HID system events enter the window server.
	KCGHIDEventTap CGEventTapLocation = 0
	// KCGSessionEventTap: Specifies that an event tap is placed at the point where HID system and remote control events enter a login session.
	KCGSessionEventTap CGEventTapLocation = 1
)

func (CGEventTapLocation) String

func (e CGEventTapLocation) String() string

type CGEventTapOptions

type CGEventTapOptions uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventTapOptions

const (
	// KCGEventTapOptionDefault: # Discussion
	KCGEventTapOptionDefault CGEventTapOptions = 0
	// KCGEventTapOptionListenOnly: # Discussion
	KCGEventTapOptionListenOnly CGEventTapOptions = 0x1
)

func (CGEventTapOptions) String added in v0.5.1

func (e CGEventTapOptions) String() string

type CGEventTapPlacement

type CGEventTapPlacement uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventTapPlacement

const (
	// KCGHeadInsertEventTap: Specifies that a new event tap should be inserted before any pre-existing event taps at the same location.
	KCGHeadInsertEventTap CGEventTapPlacement = 0
	// KCGTailAppendEventTap: Specifies that a new event tap should be inserted after any pre-existing event taps at the same location.
	KCGTailAppendEventTap CGEventTapPlacement = 1
)

func (CGEventTapPlacement) String

func (e CGEventTapPlacement) String() string

type CGEventTapProxy

type CGEventTapProxy = uintptr

CGEventTapProxy is defines an opaque type that represents state within the client application that’s associated with an event tap.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventTapProxy

type CGEventTimestamp

type CGEventTimestamp = uint64

CGEventTimestamp is defines the elapsed time in nanoseconds since startup that a Quartz event occurred.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventTimestamp

func CGEventGetTimestamp

func CGEventGetTimestamp(event CGEventRef) CGEventTimestamp

CGEventGetTimestamp returns the timestamp of a Quartz event.

It panics if CGEventGetTimestamp is unavailable at run time; use TryCGEventGetTimestamp to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/timestamp

func TryCGEventGetTimestamp

func TryCGEventGetTimestamp(event CGEventRef) (CGEventTimestamp, error)

TryCGEventGetTimestamp is like CGEventGetTimestamp but returns an error instead of panicking if CGEventGetTimestamp is unavailable at run time.

type CGEventType

type CGEventType uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGEventType

const (
	// KCGEventFlagsChanged: Specifies a key changed event for a modifier or status key.
	KCGEventFlagsChanged CGEventType = 12
	// KCGEventKeyDown: Specifies a key down event.
	KCGEventKeyDown CGEventType = 10
	// KCGEventKeyUp: Specifies a key up event.
	KCGEventKeyUp CGEventType = 11
	// KCGEventLeftMouseDown: Specifies a mouse down event with the left button.
	KCGEventLeftMouseDown CGEventType = 1
	// KCGEventLeftMouseDragged: Specifies a mouse drag event with the left button down.
	KCGEventLeftMouseDragged CGEventType = 6
	// KCGEventLeftMouseUp: Specifies a mouse up event with the left button.
	KCGEventLeftMouseUp CGEventType = 2
	// KCGEventMouseMoved: Specifies a mouse moved event.
	KCGEventMouseMoved CGEventType = 5
	// KCGEventNull: Specifies a null event.
	KCGEventNull CGEventType = 0
	// KCGEventOtherMouseDown: Specifies a mouse down event with one of buttons 2-31.
	KCGEventOtherMouseDown CGEventType = 25
	// KCGEventOtherMouseDragged: Specifies a mouse drag event with one of buttons 2-31 down.
	KCGEventOtherMouseDragged CGEventType = 27
	// KCGEventOtherMouseUp: Specifies a mouse up event with one of buttons 2-31.
	KCGEventOtherMouseUp CGEventType = 26
	// KCGEventRightMouseDown: Specifies a mouse down event with the right button.
	KCGEventRightMouseDown CGEventType = 3
	// KCGEventRightMouseDragged: Specifies a mouse drag event with the right button down.
	KCGEventRightMouseDragged CGEventType = 7
	// KCGEventRightMouseUp: Specifies a mouse up event with the right button.
	KCGEventRightMouseUp CGEventType = 4
	// KCGEventScrollWheel: Specifies a scroll wheel moved event.
	KCGEventScrollWheel CGEventType = 22
	// KCGEventTabletPointer: Specifies a tablet pointer event.
	KCGEventTabletPointer CGEventType = 23
	// KCGEventTabletProximity: Specifies a tablet proximity event.
	KCGEventTabletProximity CGEventType = 24
	// KCGEventTapDisabledByTimeout: Specifies an event indicating the event tap is disabled because of timeout.
	KCGEventTapDisabledByTimeout CGEventType = 0xfffffffe
	// KCGEventTapDisabledByUserInput: Specifies an event indicating the event tap is disabled because of user input.
	KCGEventTapDisabledByUserInput CGEventType = 0xffffffff
)

func CGEventGetType

func CGEventGetType(event CGEventRef) CGEventType

CGEventGetType returns the event type of a Quartz event (left mouse down, for example).

It panics if CGEventGetType is unavailable at run time; use TryCGEventGetType to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/type

func TryCGEventGetType

func TryCGEventGetType(event CGEventRef) (CGEventType, error)

TryCGEventGetType is like CGEventGetType but returns an error instead of panicking if CGEventGetType is unavailable at run time.

func (CGEventType) String

func (e CGEventType) String() string

type CGFont

type CGFont = CGFontRef

CGFont is a bare alias for CGFontRef.

type CGFontIndex

type CGFontIndex = uint16

CGFontIndex is an index into a font table.

See: https://developer.apple.com/documentation/CoreGraphics/CGFontIndex

const KCGFontIndexInvalid CGFontIndex = 65535

KCGFontIndexInvalid is an invalid font index (a value which never represents a valid glyph).

See: https://developer.apple.com/documentation/CoreGraphics/kCGFontIndexInvalid

type CGFontPostScriptFormat

type CGFontPostScriptFormat int32

See: https://developer.apple.com/documentation/CoreGraphics/CGFontPostScriptFormat

const (
	// KCGFontPostScriptFormatType1: A Type 1 font format.
	KCGFontPostScriptFormatType1 CGFontPostScriptFormat = 1
	// KCGFontPostScriptFormatType3: A Type 3 PostScript format.
	KCGFontPostScriptFormatType3 CGFontPostScriptFormat = 3
	// KCGFontPostScriptFormatType42: A constant representing a Type 42 font format.
	KCGFontPostScriptFormatType42 CGFontPostScriptFormat = 42
)

func (CGFontPostScriptFormat) String

func (e CGFontPostScriptFormat) String() string

type CGFontRef

type CGFontRef uintptr

CGFontRef is a set of character glyphs and layout information for drawing text.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont

func CGFontCreateCopyWithVariations

func CGFontCreateCopyWithVariations(font CGFontRef, variations corefoundation.CFDictionaryRef) CGFontRef

CGFontCreateCopyWithVariations creates a copy of a font using a variation specification dictionary.

It panics if CGFontCreateCopyWithVariations is unavailable at run time; use TryCGFontCreateCopyWithVariations to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/copy(withVariations:)

func CGFontCreateWithDataProvider

func CGFontCreateWithDataProvider(provider CGDataProviderRef) CGFontRef

CGFontCreateWithDataProvider creates a font object from data supplied from a data provider.

It panics if CGFontCreateWithDataProvider is unavailable at run time; use TryCGFontCreateWithDataProvider to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/init(_:)-9aour

func CGFontCreateWithFontName

func CGFontCreateWithFontName(name corefoundation.CFStringRef) CGFontRef

CGFontCreateWithFontName creates a font object corresponding to the font specified by a PostScript or full name.

It panics if CGFontCreateWithFontName is unavailable at run time; use TryCGFontCreateWithFontName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/init(_:)-1p4b

func CGFontCreateWithPlatformFont deprecated

func CGFontCreateWithPlatformFont(platformFontReference unsafe.Pointer) CGFontRef

CGFontCreateWithPlatformFont creates a font object from an Apple Type Services (ATS) font.

It panics if CGFontCreateWithPlatformFont is unavailable at run time; use TryCGFontCreateWithPlatformFont to get an error instead.

Deprecated: Deprecated since macOS 10.6. Use Core Text, documented in [Core Text](<https://developer.apple.com/documentation/CoreText>), instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFontCreateWithPlatformFont

func CGFontRetain

func CGFontRetain(font CGFontRef) CGFontRef

CGFontRetain increments the retain count of a font.

It panics if CGFontRetain is unavailable at run time; use TryCGFontRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFontRetain

func TryCGFontCreateCopyWithVariations

func TryCGFontCreateCopyWithVariations(font CGFontRef, variations corefoundation.CFDictionaryRef) (CGFontRef, error)

TryCGFontCreateCopyWithVariations is like CGFontCreateCopyWithVariations but returns an error instead of panicking if CGFontCreateCopyWithVariations is unavailable at run time.

func TryCGFontCreateWithDataProvider

func TryCGFontCreateWithDataProvider(provider CGDataProviderRef) (CGFontRef, error)

TryCGFontCreateWithDataProvider is like CGFontCreateWithDataProvider but returns an error instead of panicking if CGFontCreateWithDataProvider is unavailable at run time.

func TryCGFontCreateWithFontName

func TryCGFontCreateWithFontName(name corefoundation.CFStringRef) (CGFontRef, error)

TryCGFontCreateWithFontName is like CGFontCreateWithFontName but returns an error instead of panicking if CGFontCreateWithFontName is unavailable at run time.

func TryCGFontCreateWithPlatformFont

func TryCGFontCreateWithPlatformFont(platformFontReference unsafe.Pointer) (CGFontRef, error)

TryCGFontCreateWithPlatformFont is like CGFontCreateWithPlatformFont but returns an error instead of panicking if CGFontCreateWithPlatformFont is unavailable at run time.

func TryCGFontRetain

func TryCGFontRetain(font CGFontRef) (CGFontRef, error)

TryCGFontRetain is like CGFontRetain but returns an error instead of panicking if CGFontRetain is unavailable at run time.

type CGFunctionCallbacks

type CGFunctionCallbacks struct {
	Version uint32 // The structure version number. For this structure,the version should be `0`.
	// C: CGFunctionEvaluateCallback (void (*)(void *, const double *, double *))
	Evaluate uintptr // The callback that evaluates the function.
	// C: CGFunctionReleaseInfoCallback (void (*)(void *))
	ReleaseInfo uintptr // If non-[NULL],the callback used to release the `info` parameterpassed to [init(info:domainDimension:domain:rangeDimension:range:callbacks:)](<https://developer.apple.com/documentation/CoreGraphics/CGFunction/init(info:domainDimension:domain:rangeDimension:range:callbacks:)>).

}

CGFunctionCallbacks - A structure that contains callbacks needed by a CGFunctionRef object.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGFunctionCallbacks

type CGFunctionEvaluateCallback

type CGFunctionEvaluateCallback = func(info unsafe.Pointer, inData []float64, outData []float64)

CGFunctionEvaluateCallback is performs custom operations on the supplied input data to produce output data.

See: https://developer.apple.com/documentation/CoreGraphics/CGFunctionEvaluateCallback

type CGFunctionRef

type CGFunctionRef uintptr

CGFunctionRef is a general facility for defining and using callback functions.

See: https://developer.apple.com/documentation/CoreGraphics/CGFunction

func CGFunctionCreate

func CGFunctionCreate(info unsafe.Pointer, domainDimension uintptr, domain *float64, rangeDimension uintptr, range_ *float64, callbacks *CGFunctionCallbacks) CGFunctionRef

CGFunctionCreate creates a Core Graphics function.

It panics if CGFunctionCreate is unavailable at run time; use TryCGFunctionCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFunction/init(info:domainDimension:domain:rangeDimension:range:callbacks:)

func CGFunctionRetain

func CGFunctionRetain(function CGFunctionRef) CGFunctionRef

CGFunctionRetain increments the retain count of a function object.

It panics if CGFunctionRetain is unavailable at run time; use TryCGFunctionRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFunctionRetain

func TryCGFunctionCreate

func TryCGFunctionCreate(info unsafe.Pointer, domainDimension uintptr, domain *float64, rangeDimension uintptr, range_ *float64, callbacks *CGFunctionCallbacks) (CGFunctionRef, error)

TryCGFunctionCreate is like CGFunctionCreate but returns an error instead of panicking if CGFunctionCreate is unavailable at run time.

func TryCGFunctionRetain

func TryCGFunctionRetain(function CGFunctionRef) (CGFunctionRef, error)

TryCGFunctionRetain is like CGFunctionRetain but returns an error instead of panicking if CGFunctionRetain is unavailable at run time.

type CGFunctionReleaseInfoCallback

type CGFunctionReleaseInfoCallback = func(info unsafe.Pointer)

CGFunctionReleaseInfoCallback is performs custom clean-up tasks when Core Graphics deallocates a CGFunctionRef object.

See: https://developer.apple.com/documentation/CoreGraphics/CGFunctionReleaseInfoCallback

type CGGammaValue

type CGGammaValue = float32

CGGammaValue is a value used to map a color generated in software to a color supported by the display hardware.

See: https://developer.apple.com/documentation/CoreGraphics/CGGammaValue

type CGGesturePhase

type CGGesturePhase uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGGesturePhase

const (
	KCGGesturePhaseBegan     CGGesturePhase = 1
	KCGGesturePhaseCancelled CGGesturePhase = 8
	KCGGesturePhaseChanged   CGGesturePhase = 2
	KCGGesturePhaseEnded     CGGesturePhase = 4
	KCGGesturePhaseMayBegin  CGGesturePhase = 128
	KCGGesturePhaseNone      CGGesturePhase = 0
)

func (CGGesturePhase) String added in v0.5.1

func (e CGGesturePhase) String() string

type CGGlyph

type CGGlyph = uint16

CGGlyph is an index into the internal glyph table of a font.

See: https://developer.apple.com/documentation/CoreGraphics/CGGlyph

func CGFontGetGlyphWithGlyphName added in v0.2.0

func CGFontGetGlyphWithGlyphName(font CGFontRef, name corefoundation.CFStringRef) CGGlyph

CGFontGetGlyphWithGlyphName returns the glyph for the glyph name associated with the specified font object.

It panics if CGFontGetGlyphWithGlyphName is unavailable at run time; use TryCGFontGetGlyphWithGlyphName to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/getGlyphWithGlyphName(name:)

func TryCGFontGetGlyphWithGlyphName

func TryCGFontGetGlyphWithGlyphName(font CGFontRef, name corefoundation.CFStringRef) (CGGlyph, error)

TryCGFontGetGlyphWithGlyphName is like CGFontGetGlyphWithGlyphName but returns an error instead of panicking if CGFontGetGlyphWithGlyphName is unavailable at run time.

type CGGlyphDeprecatedEnum

type CGGlyphDeprecatedEnum int32

See: https://developer.apple.com/documentation/CoreGraphics/CGGlyphDeprecatedEnum

const (
	// CGGlyphMax: Maximum font index value.
	CGGlyphMax CGGlyphDeprecatedEnum = 1
	// CGGlyphMin: Minimum font index value.
	CGGlyphMin CGGlyphDeprecatedEnum = 0
)

func (CGGlyphDeprecatedEnum) String

func (e CGGlyphDeprecatedEnum) String() string

type CGGradientDrawingOptions

type CGGradientDrawingOptions uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGGradientDrawingOptions

const (
	// KCGGradientDrawsAfterEndLocation: The fill should extend beyond the ending location.
	KCGGradientDrawsAfterEndLocation CGGradientDrawingOptions = 2
	// KCGGradientDrawsBeforeStartLocation: The fill should extend beyond the starting location.
	KCGGradientDrawsBeforeStartLocation CGGradientDrawingOptions = 1
)

func (CGGradientDrawingOptions) String

func (e CGGradientDrawingOptions) String() string

type CGGradientRef

type CGGradientRef uintptr

CGGradientRef is a definition for a smooth transition between colors for drawing radial and axial gradient fills.

See: https://developer.apple.com/documentation/CoreGraphics/CGGradient

func CGGradientCreateWithColorComponents

func CGGradientCreateWithColorComponents(space CGColorSpaceRef, components *float64, locations *float64, count uintptr) CGGradientRef

CGGradientCreateWithColorComponents creates a CGGradient object from a color space and the provided color components and locations.

It panics if CGGradientCreateWithColorComponents is unavailable at run time; use TryCGGradientCreateWithColorComponents to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGradient/init(colorSpace:colorComponents:locations:count:)

func CGGradientCreateWithColors

func CGGradientCreateWithColors(space CGColorSpaceRef, colors corefoundation.CFArrayRef, locations *float64) CGGradientRef

CGGradientCreateWithColors creates a gradient object from a color space and the provided color objects and locations.

It panics if CGGradientCreateWithColors is unavailable at run time; use TryCGGradientCreateWithColors to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGradient/init(colorsSpace:colors:locations:)

func CGGradientCreateWithContentHeadroom

func CGGradientCreateWithContentHeadroom(headroom float32, space CGColorSpaceRef, components *float64, locations *float64, count uintptr) CGGradientRef

CGGradientCreateWithContentHeadroom.

It panics if CGGradientCreateWithContentHeadroom is unavailable at run time; use TryCGGradientCreateWithContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGradient/init(headroom:colorSpace:colorComponents:locations:count:)

func CGGradientRetain

func CGGradientRetain(gradient CGGradientRef) CGGradientRef

CGGradientRetain increments the retain count of a CGGradient object.

It panics if CGGradientRetain is unavailable at run time; use TryCGGradientRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGGradientRetain

func TryCGGradientCreateWithColorComponents

func TryCGGradientCreateWithColorComponents(space CGColorSpaceRef, components *float64, locations *float64, count uintptr) (CGGradientRef, error)

TryCGGradientCreateWithColorComponents is like CGGradientCreateWithColorComponents but returns an error instead of panicking if CGGradientCreateWithColorComponents is unavailable at run time.

func TryCGGradientCreateWithColors

func TryCGGradientCreateWithColors(space CGColorSpaceRef, colors corefoundation.CFArrayRef, locations *float64) (CGGradientRef, error)

TryCGGradientCreateWithColors is like CGGradientCreateWithColors but returns an error instead of panicking if CGGradientCreateWithColors is unavailable at run time.

func TryCGGradientCreateWithContentHeadroom

func TryCGGradientCreateWithContentHeadroom(headroom float32, space CGColorSpaceRef, components *float64, locations *float64, count uintptr) (CGGradientRef, error)

TryCGGradientCreateWithContentHeadroom is like CGGradientCreateWithContentHeadroom but returns an error instead of panicking if CGGradientCreateWithContentHeadroom is unavailable at run time.

func TryCGGradientRetain

func TryCGGradientRetain(gradient CGGradientRef) (CGGradientRef, error)

TryCGGradientRetain is like CGGradientRetain but returns an error instead of panicking if CGGradientRetain is unavailable at run time.

type CGImageAlphaInfo

type CGImageAlphaInfo uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGImageAlphaInfo

const (
	// KCGImageAlphaFirst: The alpha component is stored in the most significant bits of each pixel.
	KCGImageAlphaFirst CGImageAlphaInfo = 4
	// KCGImageAlphaLast: The alpha component is stored in the least significant bits of each pixel.
	KCGImageAlphaLast CGImageAlphaInfo = 3
	// KCGImageAlphaNone: There is no alpha channel.
	KCGImageAlphaNone CGImageAlphaInfo = 0
	// KCGImageAlphaNoneSkipFirst: There is no alpha channel.
	KCGImageAlphaNoneSkipFirst CGImageAlphaInfo = 6
	// KCGImageAlphaNoneSkipLast: There is no alpha channel.
	KCGImageAlphaNoneSkipLast CGImageAlphaInfo = 5
	// KCGImageAlphaOnly: There is no color data, only an alpha channel.
	KCGImageAlphaOnly CGImageAlphaInfo = 7
	// KCGImageAlphaPremultipliedFirst: The alpha component is stored in the most significant bits of each pixel and the color components have already been multiplied by this alpha value.
	KCGImageAlphaPremultipliedFirst CGImageAlphaInfo = 2
	// KCGImageAlphaPremultipliedLast: The alpha component is stored in the least significant bits of each pixel and the color components have already been multiplied by this alpha value.
	KCGImageAlphaPremultipliedLast CGImageAlphaInfo = 1
)

func CGBitmapContextGetAlphaInfo

func CGBitmapContextGetAlphaInfo(context CGContextRef) CGImageAlphaInfo

CGBitmapContextGetAlphaInfo returns the alpha information associated with the context, which indicates how a bitmap context handles the alpha component.

It panics if CGBitmapContextGetAlphaInfo is unavailable at run time; use TryCGBitmapContextGetAlphaInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/alphaInfo

func CGImageGetAlphaInfo

func CGImageGetAlphaInfo(image CGImageRef) CGImageAlphaInfo

CGImageGetAlphaInfo returns the alpha channel information for a bitmap image.

It panics if CGImageGetAlphaInfo is unavailable at run time; use TryCGImageGetAlphaInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/alphaInfo

func TryCGBitmapContextGetAlphaInfo

func TryCGBitmapContextGetAlphaInfo(context CGContextRef) (CGImageAlphaInfo, error)

TryCGBitmapContextGetAlphaInfo is like CGBitmapContextGetAlphaInfo but returns an error instead of panicking if CGBitmapContextGetAlphaInfo is unavailable at run time.

func TryCGImageGetAlphaInfo

func TryCGImageGetAlphaInfo(image CGImageRef) (CGImageAlphaInfo, error)

TryCGImageGetAlphaInfo is like CGImageGetAlphaInfo but returns an error instead of panicking if CGImageGetAlphaInfo is unavailable at run time.

func (CGImageAlphaInfo) String

func (e CGImageAlphaInfo) String() string

type CGImageByteOrderInfo

type CGImageByteOrderInfo uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGImageByteOrderInfo

const (
	KCGImageByteOrder16Big    CGImageByteOrderInfo = 12288
	KCGImageByteOrder16Host   CGImageByteOrderInfo = 4096
	KCGImageByteOrder16Little CGImageByteOrderInfo = 4096
	KCGImageByteOrder32Big    CGImageByteOrderInfo = 16384
	KCGImageByteOrder32Host   CGImageByteOrderInfo = 8192
	KCGImageByteOrder32Little CGImageByteOrderInfo = 8192
	KCGImageByteOrderDefault  CGImageByteOrderInfo = 0
	// Deprecated: use CGBitmapInfo.__byteOrderInfoMask.
	KCGImageByteOrderMask CGImageByteOrderInfo = 28672
)

func CGImageGetByteOrderInfo

func CGImageGetByteOrderInfo(image CGImageRef) CGImageByteOrderInfo

CGImageGetByteOrderInfo.

It panics if CGImageGetByteOrderInfo is unavailable at run time; use TryCGImageGetByteOrderInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/byteOrderInfo

func TryCGImageGetByteOrderInfo

func TryCGImageGetByteOrderInfo(image CGImageRef) (CGImageByteOrderInfo, error)

TryCGImageGetByteOrderInfo is like CGImageGetByteOrderInfo but returns an error instead of panicking if CGImageGetByteOrderInfo is unavailable at run time.

func (CGImageByteOrderInfo) String added in v0.5.1

func (e CGImageByteOrderInfo) String() string

type CGImageComponentInfo

type CGImageComponentInfo uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGImageComponentInfo

const (
	KCGImageComponentFloat   CGImageComponentInfo = 256
	KCGImageComponentInteger CGImageComponentInfo = 0
)

func (CGImageComponentInfo) String added in v0.5.1

func (e CGImageComponentInfo) String() string

type CGImagePixelFormatInfo

type CGImagePixelFormatInfo uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGImagePixelFormatInfo

const (
	KCGImagePixelFormatPacked    CGImagePixelFormatInfo = 0
	KCGImagePixelFormatRGB101010 CGImagePixelFormatInfo = 196608
	KCGImagePixelFormatRGB555    CGImagePixelFormatInfo = 65536
	KCGImagePixelFormatRGB565    CGImagePixelFormatInfo = 131072
	KCGImagePixelFormatRGBCIF10  CGImagePixelFormatInfo = 262144
	// Deprecated: use CGBitmapInfo.__pixelFormatInfoMask.
	KCGImagePixelFormatMask CGImagePixelFormatInfo = 983040
)

func CGImageGetPixelFormatInfo

func CGImageGetPixelFormatInfo(image CGImageRef) CGImagePixelFormatInfo

CGImageGetPixelFormatInfo.

It panics if CGImageGetPixelFormatInfo is unavailable at run time; use TryCGImageGetPixelFormatInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/pixelFormatInfo

func TryCGImageGetPixelFormatInfo

func TryCGImageGetPixelFormatInfo(image CGImageRef) (CGImagePixelFormatInfo, error)

TryCGImageGetPixelFormatInfo is like CGImageGetPixelFormatInfo but returns an error instead of panicking if CGImageGetPixelFormatInfo is unavailable at run time.

func (CGImagePixelFormatInfo) String added in v0.5.1

func (e CGImagePixelFormatInfo) String() string

type CGImageRef

type CGImageRef uintptr

CGImageRef is a bitmap image or image mask.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage

func CGBitmapContextCreateImage

func CGBitmapContextCreateImage(context CGContextRef) CGImageRef

CGBitmapContextCreateImage creates and returns a CGImage from the pixel data in a bitmap graphics context.

It panics if CGBitmapContextCreateImage is unavailable at run time; use TryCGBitmapContextCreateImage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/makeImage()

func CGDisplayCreateImage deprecated

func CGDisplayCreateImage(displayID CGDirectDisplayID) CGImageRef

CGDisplayCreateImage returns an image containing the contents of the specified display.

It panics if CGDisplayCreateImage is unavailable at run time; use TryCGDisplayCreateImage to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayCreateImage(_:)

func CGDisplayCreateImageForRect deprecated

func CGDisplayCreateImageForRect(display CGDirectDisplayID, rect corefoundation.CGRect) CGImageRef

CGDisplayCreateImageForRect returns an image containing the contents of a portion of the specified display.

It panics if CGDisplayCreateImageForRect is unavailable at run time; use TryCGDisplayCreateImageForRect to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayCreateImage(_:rect:)

func CGImageCreate

func CGImageCreate(width uintptr, height uintptr, bitsPerComponent uintptr, bitsPerPixel uintptr, bytesPerRow uintptr, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, provider CGDataProviderRef, decode *float64, shouldInterpolate bool, intent CGColorRenderingIntent) CGImageRef

CGImageCreate creates a bitmap image from data supplied by a data provider.

It panics if CGImageCreate is unavailable at run time; use TryCGImageCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/init(width:height:bitsPerComponent:bitsPerPixel:bytesPerRow:space:bitmapInfo:provider:decode:shouldInterpolate:intent:)

func CGImageCreateCopy

func CGImageCreateCopy(image CGImageRef) CGImageRef

CGImageCreateCopy creates a copy of a bitmap image.

It panics if CGImageCreateCopy is unavailable at run time; use TryCGImageCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/copy()

func CGImageCreateCopyWithCalculatedHDRStats

func CGImageCreateCopyWithCalculatedHDRStats(image CGImageRef) CGImageRef

CGImageCreateCopyWithCalculatedHDRStats.

It panics if CGImageCreateCopyWithCalculatedHDRStats is unavailable at run time; use TryCGImageCreateCopyWithCalculatedHDRStats to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/copyWithCalculatedHDRStats()

func CGImageCreateCopyWithColorSpace

func CGImageCreateCopyWithColorSpace(image CGImageRef, space CGColorSpaceRef) CGImageRef

CGImageCreateCopyWithColorSpace creates a copy of a bitmap image, replacing its colorspace.

It panics if CGImageCreateCopyWithColorSpace is unavailable at run time; use TryCGImageCreateCopyWithColorSpace to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/copy(colorSpace:)

func CGImageCreateCopyWithContentAverageLightLevel

func CGImageCreateCopyWithContentAverageLightLevel(image CGImageRef, avll float32) CGImageRef

CGImageCreateCopyWithContentAverageLightLevel.

It panics if CGImageCreateCopyWithContentAverageLightLevel is unavailable at run time; use TryCGImageCreateCopyWithContentAverageLightLevel to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/copy(contentAverageLightLevel:)

func CGImageCreateCopyWithContentHeadroom

func CGImageCreateCopyWithContentHeadroom(headroom float32, image CGImageRef) CGImageRef

CGImageCreateCopyWithContentHeadroom.

It panics if CGImageCreateCopyWithContentHeadroom is unavailable at run time; use TryCGImageCreateCopyWithContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImageCreateCopyWithContentHeadroom(_:_:)

func CGImageCreateWithContentHeadroom

func CGImageCreateWithContentHeadroom(headroom float32, width uintptr, height uintptr, bitsPerComponent uintptr, bitsPerPixel uintptr, bytesPerRow uintptr, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, provider CGDataProviderRef, decode *float64, shouldInterpolate bool, intent CGColorRenderingIntent) CGImageRef

CGImageCreateWithContentHeadroom.

It panics if CGImageCreateWithContentHeadroom is unavailable at run time; use TryCGImageCreateWithContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/init(headroom:width:height:bitsPerComponent:bitsPerPixel:bytesPerRow:space:bitmapInfo:provider:decode:shouldInterpolate:intent:)

func CGImageCreateWithImageInRect

func CGImageCreateWithImageInRect(image CGImageRef, rect corefoundation.CGRect) CGImageRef

CGImageCreateWithImageInRect creates a bitmap image using the data contained within a subregion of an existing bitmap image.

It panics if CGImageCreateWithImageInRect is unavailable at run time; use TryCGImageCreateWithImageInRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/cropping(to:)

func CGImageCreateWithJPEGDataProvider

func CGImageCreateWithJPEGDataProvider(source CGDataProviderRef, decode *float64, shouldInterpolate bool, intent CGColorRenderingIntent) CGImageRef

CGImageCreateWithJPEGDataProvider creates a bitmap image using JPEG-encoded data supplied by a data provider.

It panics if CGImageCreateWithJPEGDataProvider is unavailable at run time; use TryCGImageCreateWithJPEGDataProvider to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/init(jpegDataProviderSource:decode:shouldInterpolate:intent:)

func CGImageCreateWithMask

func CGImageCreateWithMask(image CGImageRef, mask CGImageRef) CGImageRef

CGImageCreateWithMask creates a bitmap image from an existing image and an image mask.

It panics if CGImageCreateWithMask is unavailable at run time; use TryCGImageCreateWithMask to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/masking(_:)

func CGImageCreateWithMaskingColors

func CGImageCreateWithMaskingColors(image CGImageRef, components *float64) CGImageRef

CGImageCreateWithMaskingColors creates a bitmap image by masking an existing bitmap image with the provided color values.

It panics if CGImageCreateWithMaskingColors is unavailable at run time; use TryCGImageCreateWithMaskingColors to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImageCreateWithMaskingColors

func CGImageCreateWithPNGDataProvider

func CGImageCreateWithPNGDataProvider(source CGDataProviderRef, decode *float64, shouldInterpolate bool, intent CGColorRenderingIntent) CGImageRef

CGImageCreateWithPNGDataProvider creates a bitmap image using PNG-encoded data supplied by a data provider.

It panics if CGImageCreateWithPNGDataProvider is unavailable at run time; use TryCGImageCreateWithPNGDataProvider to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/init(pngDataProviderSource:decode:shouldInterpolate:intent:)

func CGImageMaskCreate

func CGImageMaskCreate(width uintptr, height uintptr, bitsPerComponent uintptr, bitsPerPixel uintptr, bytesPerRow uintptr, provider CGDataProviderRef, decode *float64, shouldInterpolate bool) CGImageRef

CGImageMaskCreate creates a bitmap image mask from data supplied by a data provider.

It panics if CGImageMaskCreate is unavailable at run time; use TryCGImageMaskCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/init(maskWidth:height:bitsPerComponent:bitsPerPixel:bytesPerRow:provider:decode:shouldInterpolate:)

func CGImageRetain

func CGImageRetain(image CGImageRef) CGImageRef

CGImageRetain increments the retain count of a bitmap image.

It panics if CGImageRetain is unavailable at run time; use TryCGImageRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImageRetain

func CGWindowListCreateImage deprecated

func CGWindowListCreateImage(screenBounds corefoundation.CGRect, listOption CGWindowListOption, windowID CGWindowID, imageOption CGWindowImageOption) CGImageRef

CGWindowListCreateImage returns a composite image based on a dynamically generated list of windows.

It panics if CGWindowListCreateImage is unavailable at run time; use TryCGWindowListCreateImage to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowListCreateImage(_:_:_:_:)

func CGWindowListCreateImageFromArray deprecated added in v0.5.1

func CGWindowListCreateImageFromArray(screenBounds corefoundation.CGRect, windowArray corefoundation.CFArrayRef, imageOption CGWindowImageOption) CGImageRef

CGWindowListCreateImageFromArray returns a composite image of the specified windows.

It panics if CGWindowListCreateImageFromArray is unavailable at run time; use TryCGWindowListCreateImageFromArray to get an error instead.

Deprecated: Please use ScreenCaptureKit instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/init(windowListFromArrayScreenBounds:windowArray:imageOption:)

func TryCGBitmapContextCreateImage

func TryCGBitmapContextCreateImage(context CGContextRef) (CGImageRef, error)

TryCGBitmapContextCreateImage is like CGBitmapContextCreateImage but returns an error instead of panicking if CGBitmapContextCreateImage is unavailable at run time.

func TryCGDisplayCreateImage

func TryCGDisplayCreateImage(displayID CGDirectDisplayID) (CGImageRef, error)

TryCGDisplayCreateImage is like CGDisplayCreateImage but returns an error instead of panicking if CGDisplayCreateImage is unavailable at run time.

func TryCGDisplayCreateImageForRect

func TryCGDisplayCreateImageForRect(display CGDirectDisplayID, rect corefoundation.CGRect) (CGImageRef, error)

TryCGDisplayCreateImageForRect is like CGDisplayCreateImageForRect but returns an error instead of panicking if CGDisplayCreateImageForRect is unavailable at run time.

func TryCGImageCreate

func TryCGImageCreate(width uintptr, height uintptr, bitsPerComponent uintptr, bitsPerPixel uintptr, bytesPerRow uintptr, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, provider CGDataProviderRef, decode *float64, shouldInterpolate bool, intent CGColorRenderingIntent) (CGImageRef, error)

TryCGImageCreate is like CGImageCreate but returns an error instead of panicking if CGImageCreate is unavailable at run time.

func TryCGImageCreateCopy

func TryCGImageCreateCopy(image CGImageRef) (CGImageRef, error)

TryCGImageCreateCopy is like CGImageCreateCopy but returns an error instead of panicking if CGImageCreateCopy is unavailable at run time.

func TryCGImageCreateCopyWithCalculatedHDRStats

func TryCGImageCreateCopyWithCalculatedHDRStats(image CGImageRef) (CGImageRef, error)

TryCGImageCreateCopyWithCalculatedHDRStats is like CGImageCreateCopyWithCalculatedHDRStats but returns an error instead of panicking if CGImageCreateCopyWithCalculatedHDRStats is unavailable at run time.

func TryCGImageCreateCopyWithColorSpace

func TryCGImageCreateCopyWithColorSpace(image CGImageRef, space CGColorSpaceRef) (CGImageRef, error)

TryCGImageCreateCopyWithColorSpace is like CGImageCreateCopyWithColorSpace but returns an error instead of panicking if CGImageCreateCopyWithColorSpace is unavailable at run time.

func TryCGImageCreateCopyWithContentAverageLightLevel

func TryCGImageCreateCopyWithContentAverageLightLevel(image CGImageRef, avll float32) (CGImageRef, error)

TryCGImageCreateCopyWithContentAverageLightLevel is like CGImageCreateCopyWithContentAverageLightLevel but returns an error instead of panicking if CGImageCreateCopyWithContentAverageLightLevel is unavailable at run time.

func TryCGImageCreateCopyWithContentHeadroom

func TryCGImageCreateCopyWithContentHeadroom(headroom float32, image CGImageRef) (CGImageRef, error)

TryCGImageCreateCopyWithContentHeadroom is like CGImageCreateCopyWithContentHeadroom but returns an error instead of panicking if CGImageCreateCopyWithContentHeadroom is unavailable at run time.

func TryCGImageCreateWithContentHeadroom

func TryCGImageCreateWithContentHeadroom(headroom float32, width uintptr, height uintptr, bitsPerComponent uintptr, bitsPerPixel uintptr, bytesPerRow uintptr, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, provider CGDataProviderRef, decode *float64, shouldInterpolate bool, intent CGColorRenderingIntent) (CGImageRef, error)

TryCGImageCreateWithContentHeadroom is like CGImageCreateWithContentHeadroom but returns an error instead of panicking if CGImageCreateWithContentHeadroom is unavailable at run time.

func TryCGImageCreateWithImageInRect

func TryCGImageCreateWithImageInRect(image CGImageRef, rect corefoundation.CGRect) (CGImageRef, error)

TryCGImageCreateWithImageInRect is like CGImageCreateWithImageInRect but returns an error instead of panicking if CGImageCreateWithImageInRect is unavailable at run time.

func TryCGImageCreateWithJPEGDataProvider

func TryCGImageCreateWithJPEGDataProvider(source CGDataProviderRef, decode *float64, shouldInterpolate bool, intent CGColorRenderingIntent) (CGImageRef, error)

TryCGImageCreateWithJPEGDataProvider is like CGImageCreateWithJPEGDataProvider but returns an error instead of panicking if CGImageCreateWithJPEGDataProvider is unavailable at run time.

func TryCGImageCreateWithMask

func TryCGImageCreateWithMask(image CGImageRef, mask CGImageRef) (CGImageRef, error)

TryCGImageCreateWithMask is like CGImageCreateWithMask but returns an error instead of panicking if CGImageCreateWithMask is unavailable at run time.

func TryCGImageCreateWithMaskingColors

func TryCGImageCreateWithMaskingColors(image CGImageRef, components *float64) (CGImageRef, error)

TryCGImageCreateWithMaskingColors is like CGImageCreateWithMaskingColors but returns an error instead of panicking if CGImageCreateWithMaskingColors is unavailable at run time.

func TryCGImageCreateWithPNGDataProvider

func TryCGImageCreateWithPNGDataProvider(source CGDataProviderRef, decode *float64, shouldInterpolate bool, intent CGColorRenderingIntent) (CGImageRef, error)

TryCGImageCreateWithPNGDataProvider is like CGImageCreateWithPNGDataProvider but returns an error instead of panicking if CGImageCreateWithPNGDataProvider is unavailable at run time.

func TryCGImageMaskCreate

func TryCGImageMaskCreate(width uintptr, height uintptr, bitsPerComponent uintptr, bitsPerPixel uintptr, bytesPerRow uintptr, provider CGDataProviderRef, decode *float64, shouldInterpolate bool) (CGImageRef, error)

TryCGImageMaskCreate is like CGImageMaskCreate but returns an error instead of panicking if CGImageMaskCreate is unavailable at run time.

func TryCGImageRetain

func TryCGImageRetain(image CGImageRef) (CGImageRef, error)

TryCGImageRetain is like CGImageRetain but returns an error instead of panicking if CGImageRetain is unavailable at run time.

func TryCGWindowListCreateImage

func TryCGWindowListCreateImage(screenBounds corefoundation.CGRect, listOption CGWindowListOption, windowID CGWindowID, imageOption CGWindowImageOption) (CGImageRef, error)

TryCGWindowListCreateImage is like CGWindowListCreateImage but returns an error instead of panicking if CGWindowListCreateImage is unavailable at run time.

func TryCGWindowListCreateImageFromArray

func TryCGWindowListCreateImageFromArray(screenBounds corefoundation.CGRect, windowArray corefoundation.CFArrayRef, imageOption CGWindowImageOption) (CGImageRef, error)

TryCGWindowListCreateImageFromArray is like CGWindowListCreateImageFromArray but returns an error instead of panicking if CGWindowListCreateImageFromArray is unavailable at run time.

type CGInterpolationQuality

type CGInterpolationQuality int32

See: https://developer.apple.com/documentation/CoreGraphics/CGInterpolationQuality

const (
	// KCGInterpolationDefault: The default level of quality.
	KCGInterpolationDefault CGInterpolationQuality = 0
	// KCGInterpolationHigh: A high level of interpolation quality.
	KCGInterpolationHigh CGInterpolationQuality = 3
	// KCGInterpolationLow: A low level of interpolation quality.
	KCGInterpolationLow CGInterpolationQuality = 2
	// KCGInterpolationMedium: A medium level of interpolation quality.
	KCGInterpolationMedium CGInterpolationQuality = 4
	// KCGInterpolationNone: No interpolation.
	KCGInterpolationNone CGInterpolationQuality = 1
)

func CGContextGetInterpolationQuality

func CGContextGetInterpolationQuality(c CGContextRef) CGInterpolationQuality

CGContextGetInterpolationQuality returns the current level of interpolation quality for a graphics context.

It panics if CGContextGetInterpolationQuality is unavailable at run time; use TryCGContextGetInterpolationQuality to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/interpolationQuality

func TryCGContextGetInterpolationQuality

func TryCGContextGetInterpolationQuality(c CGContextRef) (CGInterpolationQuality, error)

TryCGContextGetInterpolationQuality is like CGContextGetInterpolationQuality but returns an error instead of panicking if CGContextGetInterpolationQuality is unavailable at run time.

func (CGInterpolationQuality) String

func (e CGInterpolationQuality) String() string

type CGKeyCode

type CGKeyCode = uint16

CGKeyCode is represents the virtual key codes used in keyboard events.

See: https://developer.apple.com/documentation/CoreGraphics/CGKeyCode

type CGLayerRef

type CGLayerRef uintptr

CGLayerRef is an offscreen context for reusing content drawn with Core Graphics.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayer

func CGLayerCreateWithContext added in v0.2.0

func CGLayerCreateWithContext(context CGContextRef, size corefoundation.CGSize, auxiliaryInfo corefoundation.CFDictionaryRef) CGLayerRef

CGLayerCreateWithContext creates a layer object that is associated with a graphics context.

It panics if CGLayerCreateWithContext is unavailable at run time; use TryCGLayerCreateWithContext to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayer/init(_:size:auxiliaryInfo:)

func CGLayerRetain added in v0.2.0

func CGLayerRetain(layer CGLayerRef) CGLayerRef

CGLayerRetain increments the retain count of a layer object.

It panics if CGLayerRetain is unavailable at run time; use TryCGLayerRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayerRetain

func TryCGLayerCreateWithContext

func TryCGLayerCreateWithContext(context CGContextRef, size corefoundation.CGSize, auxiliaryInfo corefoundation.CFDictionaryRef) (CGLayerRef, error)

TryCGLayerCreateWithContext is like CGLayerCreateWithContext but returns an error instead of panicking if CGLayerCreateWithContext is unavailable at run time.

func TryCGLayerRetain

func TryCGLayerRetain(layer CGLayerRef) (CGLayerRef, error)

TryCGLayerRetain is like CGLayerRetain but returns an error instead of panicking if CGLayerRetain is unavailable at run time.

type CGLineCap

type CGLineCap int32

See: https://developer.apple.com/documentation/CoreGraphics/CGLineCap

const (
	// KCGLineCapButt: A line with a squared-off end.
	KCGLineCapButt CGLineCap = 0
	// KCGLineCapRound: A line with a rounded end.
	KCGLineCapRound CGLineCap = 1
	// KCGLineCapSquare: A line with a squared-off end.
	KCGLineCapSquare CGLineCap = 2
)

func (CGLineCap) String

func (e CGLineCap) String() string

type CGLineJoin

type CGLineJoin int32

See: https://developer.apple.com/documentation/CoreGraphics/CGLineJoin

const (
	// KCGLineJoinBevel: A join with a squared-off end.
	KCGLineJoinBevel CGLineJoin = 2
	// KCGLineJoinMiter: # Discussion
	KCGLineJoinMiter CGLineJoin = 0
	// KCGLineJoinRound: A join with a rounded end.
	KCGLineJoinRound CGLineJoin = 1
)

func (CGLineJoin) String

func (e CGLineJoin) String() string

type CGMomentumScrollPhase

type CGMomentumScrollPhase uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGMomentumScrollPhase

const (
	KCGMomentumScrollPhaseBegin    CGMomentumScrollPhase = 1
	KCGMomentumScrollPhaseContinue CGMomentumScrollPhase = 2
	KCGMomentumScrollPhaseEnd      CGMomentumScrollPhase = 3
	KCGMomentumScrollPhaseNone     CGMomentumScrollPhase = 0
)

func (CGMomentumScrollPhase) String added in v0.5.1

func (e CGMomentumScrollPhase) String() string

type CGMouseButton

type CGMouseButton uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGMouseButton

const (
	// KCGMouseButtonCenter: # Discussion
	KCGMouseButtonCenter CGMouseButton = 2
	// KCGMouseButtonLeft: # Discussion
	KCGMouseButtonLeft CGMouseButton = 0
	// KCGMouseButtonRight: # Discussion
	KCGMouseButtonRight CGMouseButton = 1
)

func (CGMouseButton) String added in v0.5.1

func (e CGMouseButton) String() string

type CGMutablePathRef

type CGMutablePathRef uintptr

CGMutablePathRef is a mutable graphics path: a mathematical description of shapes or lines to be drawn in a graphics context.

See: https://developer.apple.com/documentation/CoreGraphics/CGMutablePath

func CGPathCreateMutable

func CGPathCreateMutable() CGMutablePathRef

CGPathCreateMutable creates a mutable graphics path.

It panics if CGPathCreateMutable is unavailable at run time; use TryCGPathCreateMutable to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGMutablePath/init()

func CGPathCreateMutableCopy

func CGPathCreateMutableCopy(path CGPathRef) CGMutablePathRef

CGPathCreateMutableCopy creates a mutable copy of an existing graphics path.

It panics if CGPathCreateMutableCopy is unavailable at run time; use TryCGPathCreateMutableCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/mutableCopy()

func CGPathCreateMutableCopyByTransformingPath

func CGPathCreateMutableCopyByTransformingPath(path CGPathRef, transform *corefoundation.CGAffineTransform) CGMutablePathRef

CGPathCreateMutableCopyByTransformingPath creates a mutable copy of a graphics path transformed by a transformation matrix.

It panics if CGPathCreateMutableCopyByTransformingPath is unavailable at run time; use TryCGPathCreateMutableCopyByTransformingPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/mutableCopy(using:)

func TryCGPathCreateMutable

func TryCGPathCreateMutable() (CGMutablePathRef, error)

TryCGPathCreateMutable is like CGPathCreateMutable but returns an error instead of panicking if CGPathCreateMutable is unavailable at run time.

func TryCGPathCreateMutableCopy

func TryCGPathCreateMutableCopy(path CGPathRef) (CGMutablePathRef, error)

TryCGPathCreateMutableCopy is like CGPathCreateMutableCopy but returns an error instead of panicking if CGPathCreateMutableCopy is unavailable at run time.

func TryCGPathCreateMutableCopyByTransformingPath

func TryCGPathCreateMutableCopyByTransformingPath(path CGPathRef, transform *corefoundation.CGAffineTransform) (CGMutablePathRef, error)

TryCGPathCreateMutableCopyByTransformingPath is like CGPathCreateMutableCopyByTransformingPath but returns an error instead of panicking if CGPathCreateMutableCopyByTransformingPath is unavailable at run time.

type CGOpenGLDisplayMask

type CGOpenGLDisplayMask = uint32

CGOpenGLDisplayMask is a bitmask used in OpenGL to specify a set of attached displays.

See: https://developer.apple.com/documentation/CoreGraphics/CGOpenGLDisplayMask

func CGDisplayIDToOpenGLDisplayMask

func CGDisplayIDToOpenGLDisplayMask(display CGDirectDisplayID) CGOpenGLDisplayMask

CGDisplayIDToOpenGLDisplayMask maps a display ID to an OpenGL display mask.

It panics if CGDisplayIDToOpenGLDisplayMask is unavailable at run time; use TryCGDisplayIDToOpenGLDisplayMask to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGDisplayIDToOpenGLDisplayMask(_:)

func TryCGDisplayIDToOpenGLDisplayMask

func TryCGDisplayIDToOpenGLDisplayMask(display CGDirectDisplayID) (CGOpenGLDisplayMask, error)

TryCGDisplayIDToOpenGLDisplayMask is like CGDisplayIDToOpenGLDisplayMask but returns an error instead of panicking if CGDisplayIDToOpenGLDisplayMask is unavailable at run time.

type CGPDFAccessPermissions

type CGPDFAccessPermissions uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFAccessPermissions

const (
	KCGPDFAllowsCommenting           CGPDFAccessPermissions = 64
	KCGPDFAllowsContentAccessibility CGPDFAccessPermissions = 32
	KCGPDFAllowsContentCopying       CGPDFAccessPermissions = 16
	KCGPDFAllowsDocumentAssembly     CGPDFAccessPermissions = 8
	KCGPDFAllowsDocumentChanges      CGPDFAccessPermissions = 4
	KCGPDFAllowsFormFieldEntry       CGPDFAccessPermissions = 128
	KCGPDFAllowsHighQualityPrinting  CGPDFAccessPermissions = 2
	KCGPDFAllowsLowQualityPrinting   CGPDFAccessPermissions = 1
)

func CGPDFDocumentGetAccessPermissions

func CGPDFDocumentGetAccessPermissions(document CGPDFDocumentRef) CGPDFAccessPermissions

CGPDFDocumentGetAccessPermissions.

It panics if CGPDFDocumentGetAccessPermissions is unavailable at run time; use TryCGPDFDocumentGetAccessPermissions to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/accessPermissions

func TryCGPDFDocumentGetAccessPermissions

func TryCGPDFDocumentGetAccessPermissions(document CGPDFDocumentRef) (CGPDFAccessPermissions, error)

TryCGPDFDocumentGetAccessPermissions is like CGPDFDocumentGetAccessPermissions but returns an error instead of panicking if CGPDFDocumentGetAccessPermissions is unavailable at run time.

func (CGPDFAccessPermissions) String

func (e CGPDFAccessPermissions) String() string

type CGPDFArrayRef

type CGPDFArrayRef uintptr

CGPDFArrayRef is an opaque type that encapsulates a PDF array.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFArrayRef

func CGPDFDocumentGetID

func CGPDFDocumentGetID(document CGPDFDocumentRef) CGPDFArrayRef

CGPDFDocumentGetID gets the file identifier for a PDF document.

It panics if CGPDFDocumentGetID is unavailable at run time; use TryCGPDFDocumentGetID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/fileIdentifier

func TryCGPDFDocumentGetID

func TryCGPDFDocumentGetID(document CGPDFDocumentRef) (CGPDFArrayRef, error)

TryCGPDFDocumentGetID is like CGPDFDocumentGetID but returns an error instead of panicking if CGPDFDocumentGetID is unavailable at run time.

type CGPDFBoolean

type CGPDFBoolean = byte

CGPDFBoolean is a PDF Boolean value.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFBoolean

type CGPDFBox

type CGPDFBox int32

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFBox

const (
	// KCGPDFArtBox: The page art box—a rectangle, expressed in default user space units, defining the extent of the page’s meaningful content (including potential white space) as intended by the page’s creator.
	KCGPDFArtBox CGPDFBox = 4
	// KCGPDFBleedBox: The page bleed box—a rectangle, expressed in default user space units, that defines the region to which the contents of the page should be clipped when output in a production environment.
	KCGPDFBleedBox CGPDFBox = 2
	// KCGPDFCropBox: The page crop box—a rectangle, expressed in default user space units, that defines the visible region of default user space.
	KCGPDFCropBox CGPDFBox = 1
	// KCGPDFMediaBox: The page media box—a rectangle, expressed in default user space units, that defines the boundaries of the physical medium on which the page is intended to be displayed or printed
	KCGPDFMediaBox CGPDFBox = 0
	// KCGPDFTrimBox: The page trim box—a rectangle, expressed in default user space units, that defines the intended dimensions of the finished page after trimming.
	KCGPDFTrimBox CGPDFBox = 3
)

func (CGPDFBox) String

func (e CGPDFBox) String() string

type CGPDFContentStreamRef

type CGPDFContentStreamRef uintptr

CGPDFContentStreamRef is an opaque type that provides access to the data that describes the appearance of a PDF page.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContentStreamRef

func CGPDFContentStreamCreateWithPage

func CGPDFContentStreamCreateWithPage(page CGPDFPageRef) CGPDFContentStreamRef

CGPDFContentStreamCreateWithPage creates a content stream object from a PDF page object.

It panics if CGPDFContentStreamCreateWithPage is unavailable at run time; use TryCGPDFContentStreamCreateWithPage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContentStreamCreateWithPage(_:)

func CGPDFContentStreamCreateWithStream

func CGPDFContentStreamCreateWithStream(stream CGPDFStreamRef, streamResources CGPDFDictionaryRef, parent CGPDFContentStreamRef) CGPDFContentStreamRef

CGPDFContentStreamCreateWithStream creates a PDF content stream object from an existing PDF content stream object.

It panics if CGPDFContentStreamCreateWithStream is unavailable at run time; use TryCGPDFContentStreamCreateWithStream to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContentStreamCreateWithStream(_:_:_:)

func CGPDFContentStreamRetain

func CGPDFContentStreamRetain(cs CGPDFContentStreamRef) CGPDFContentStreamRef

CGPDFContentStreamRetain increments the retain count of a PDF content stream object.

It panics if CGPDFContentStreamRetain is unavailable at run time; use TryCGPDFContentStreamRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContentStreamRetain(_:)

func CGPDFScannerGetContentStream

func CGPDFScannerGetContentStream(scanner CGPDFScannerRef) CGPDFContentStreamRef

CGPDFScannerGetContentStream returns the content stream associated with a PDF scanner object.

It panics if CGPDFScannerGetContentStream is unavailable at run time; use TryCGPDFScannerGetContentStream to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerGetContentStream(_:)

func TryCGPDFContentStreamCreateWithPage

func TryCGPDFContentStreamCreateWithPage(page CGPDFPageRef) (CGPDFContentStreamRef, error)

TryCGPDFContentStreamCreateWithPage is like CGPDFContentStreamCreateWithPage but returns an error instead of panicking if CGPDFContentStreamCreateWithPage is unavailable at run time.

func TryCGPDFContentStreamCreateWithStream

func TryCGPDFContentStreamCreateWithStream(stream CGPDFStreamRef, streamResources CGPDFDictionaryRef, parent CGPDFContentStreamRef) (CGPDFContentStreamRef, error)

TryCGPDFContentStreamCreateWithStream is like CGPDFContentStreamCreateWithStream but returns an error instead of panicking if CGPDFContentStreamCreateWithStream is unavailable at run time.

func TryCGPDFContentStreamRetain

func TryCGPDFContentStreamRetain(cs CGPDFContentStreamRef) (CGPDFContentStreamRef, error)

TryCGPDFContentStreamRetain is like CGPDFContentStreamRetain but returns an error instead of panicking if CGPDFContentStreamRetain is unavailable at run time.

func TryCGPDFScannerGetContentStream

func TryCGPDFScannerGetContentStream(scanner CGPDFScannerRef) (CGPDFContentStreamRef, error)

TryCGPDFScannerGetContentStream is like CGPDFScannerGetContentStream but returns an error instead of panicking if CGPDFScannerGetContentStream is unavailable at run time.

type CGPDFDataFormat

type CGPDFDataFormat int32

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDataFormat

const (
	// CGPDFDataFormatJPEG2000: The data stream is encoded in JPEG-2000 format.
	CGPDFDataFormatJPEG2000 CGPDFDataFormat = 2
	// CGPDFDataFormatJPEGEncoded: The data stream is encoded in JPEG format.
	CGPDFDataFormatJPEGEncoded CGPDFDataFormat = 1
	// CGPDFDataFormatRaw: The data stream is not encoded.
	CGPDFDataFormatRaw CGPDFDataFormat = 0
)

func (CGPDFDataFormat) String

func (e CGPDFDataFormat) String() string

type CGPDFDictionaryApplierFunction

type CGPDFDictionaryApplierFunction = func(key *byte, object CGPDFObjectRef, info unsafe.Pointer)

CGPDFDictionaryApplierFunction is performs custom processing on a key-value pair from a PDF dictionary, using optional contextual information.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryApplierFunction

type CGPDFDictionaryRef

type CGPDFDictionaryRef uintptr

CGPDFDictionaryRef is a type that encapsulates a PDF dictionary.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDictionaryRef

func CGPDFDocumentGetCatalog

func CGPDFDocumentGetCatalog(document CGPDFDocumentRef) CGPDFDictionaryRef

CGPDFDocumentGetCatalog returns the document catalog of a Core Graphics PDF document.

It panics if CGPDFDocumentGetCatalog is unavailable at run time; use TryCGPDFDocumentGetCatalog to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/catalog

func CGPDFDocumentGetInfo

func CGPDFDocumentGetInfo(document CGPDFDocumentRef) CGPDFDictionaryRef

CGPDFDocumentGetInfo gets the information dictionary for a PDF document.

It panics if CGPDFDocumentGetInfo is unavailable at run time; use TryCGPDFDocumentGetInfo to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/info

func CGPDFPageGetDictionary

func CGPDFPageGetDictionary(page CGPDFPageRef) CGPDFDictionaryRef

CGPDFPageGetDictionary returns the dictionary of a PDF page.

It panics if CGPDFPageGetDictionary is unavailable at run time; use TryCGPDFPageGetDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/dictionary

func CGPDFStreamGetDictionary

func CGPDFStreamGetDictionary(stream CGPDFStreamRef) CGPDFDictionaryRef

CGPDFStreamGetDictionary returns the dictionary associated with a PDF stream.

It panics if CGPDFStreamGetDictionary is unavailable at run time; use TryCGPDFStreamGetDictionary to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFStreamGetDictionary(_:)

func TryCGPDFDocumentGetCatalog

func TryCGPDFDocumentGetCatalog(document CGPDFDocumentRef) (CGPDFDictionaryRef, error)

TryCGPDFDocumentGetCatalog is like CGPDFDocumentGetCatalog but returns an error instead of panicking if CGPDFDocumentGetCatalog is unavailable at run time.

func TryCGPDFDocumentGetInfo

func TryCGPDFDocumentGetInfo(document CGPDFDocumentRef) (CGPDFDictionaryRef, error)

TryCGPDFDocumentGetInfo is like CGPDFDocumentGetInfo but returns an error instead of panicking if CGPDFDocumentGetInfo is unavailable at run time.

func TryCGPDFPageGetDictionary

func TryCGPDFPageGetDictionary(page CGPDFPageRef) (CGPDFDictionaryRef, error)

TryCGPDFPageGetDictionary is like CGPDFPageGetDictionary but returns an error instead of panicking if CGPDFPageGetDictionary is unavailable at run time.

func TryCGPDFStreamGetDictionary

func TryCGPDFStreamGetDictionary(stream CGPDFStreamRef) (CGPDFDictionaryRef, error)

TryCGPDFStreamGetDictionary is like CGPDFStreamGetDictionary but returns an error instead of panicking if CGPDFStreamGetDictionary is unavailable at run time.

type CGPDFDocumentRef

type CGPDFDocumentRef uintptr

CGPDFDocumentRef is a document that contains PDF (Portable Document Format) drawing information.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument

func CGPDFDocumentCreateWithProvider

func CGPDFDocumentCreateWithProvider(provider CGDataProviderRef) CGPDFDocumentRef

CGPDFDocumentCreateWithProvider creates a Core Graphics PDF document using a data provider.

It panics if CGPDFDocumentCreateWithProvider is unavailable at run time; use TryCGPDFDocumentCreateWithProvider to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/init(_:)-gbq6

func CGPDFDocumentCreateWithURL

func CGPDFDocumentCreateWithURL(url corefoundation.CFURLRef) CGPDFDocumentRef

CGPDFDocumentCreateWithURL creates a Core Graphics PDF document using data specified by a URL.

It panics if CGPDFDocumentCreateWithURL is unavailable at run time; use TryCGPDFDocumentCreateWithURL to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/init(_:)-2gtsd

func CGPDFDocumentRetain

func CGPDFDocumentRetain(document CGPDFDocumentRef) CGPDFDocumentRef

CGPDFDocumentRetain increments the retain count of a Core Graphics PDF document.

It panics if CGPDFDocumentRetain is unavailable at run time; use TryCGPDFDocumentRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocumentRetain

func CGPDFPageGetDocument

func CGPDFPageGetDocument(page CGPDFPageRef) CGPDFDocumentRef

CGPDFPageGetDocument returns the document for a page.

It panics if CGPDFPageGetDocument is unavailable at run time; use TryCGPDFPageGetDocument to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/document

func TryCGPDFDocumentCreateWithProvider

func TryCGPDFDocumentCreateWithProvider(provider CGDataProviderRef) (CGPDFDocumentRef, error)

TryCGPDFDocumentCreateWithProvider is like CGPDFDocumentCreateWithProvider but returns an error instead of panicking if CGPDFDocumentCreateWithProvider is unavailable at run time.

func TryCGPDFDocumentCreateWithURL

func TryCGPDFDocumentCreateWithURL(url corefoundation.CFURLRef) (CGPDFDocumentRef, error)

TryCGPDFDocumentCreateWithURL is like CGPDFDocumentCreateWithURL but returns an error instead of panicking if CGPDFDocumentCreateWithURL is unavailable at run time.

func TryCGPDFDocumentRetain

func TryCGPDFDocumentRetain(document CGPDFDocumentRef) (CGPDFDocumentRef, error)

TryCGPDFDocumentRetain is like CGPDFDocumentRetain but returns an error instead of panicking if CGPDFDocumentRetain is unavailable at run time.

func TryCGPDFPageGetDocument

func TryCGPDFPageGetDocument(page CGPDFPageRef) (CGPDFDocumentRef, error)

TryCGPDFPageGetDocument is like CGPDFPageGetDocument but returns an error instead of panicking if CGPDFPageGetDocument is unavailable at run time.

type CGPDFInteger

type CGPDFInteger = int

CGPDFInteger is a PDF integer value.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFInteger

type CGPDFObjectRef

type CGPDFObjectRef uintptr

CGPDFObjectRef is a type that contains information about a PDF object.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFObjectRef

func CGPDFContentStreamGetResource

func CGPDFContentStreamGetResource(cs CGPDFContentStreamRef, category string, name string) CGPDFObjectRef

CGPDFContentStreamGetResource gets the specified resource from a PDF content stream object.

It panics if CGPDFContentStreamGetResource is unavailable at run time; use TryCGPDFContentStreamGetResource to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFContentStreamGetResource(_:_:_:)

func TryCGPDFContentStreamGetResource

func TryCGPDFContentStreamGetResource(cs CGPDFContentStreamRef, category string, name string) (CGPDFObjectRef, error)

TryCGPDFContentStreamGetResource is like CGPDFContentStreamGetResource but returns an error instead of panicking if CGPDFContentStreamGetResource is unavailable at run time.

type CGPDFObjectType

type CGPDFObjectType int32

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFObjectType

const (
	// KCGPDFObjectTypeArray: Type for a PDF array.
	KCGPDFObjectTypeArray CGPDFObjectType = 7
	// KCGPDFObjectTypeBoolean: The type for a PDF Boolean.
	KCGPDFObjectTypeBoolean CGPDFObjectType = 2
	// KCGPDFObjectTypeDictionary: The type for a PDF dictionary.
	KCGPDFObjectTypeDictionary CGPDFObjectType = 8
	// KCGPDFObjectTypeInteger: The type for a PDF integer.
	KCGPDFObjectTypeInteger CGPDFObjectType = 3
	// KCGPDFObjectTypeName: Type for a PDF name.
	KCGPDFObjectTypeName CGPDFObjectType = 5
	// KCGPDFObjectTypeNull: The type for a PDF null.
	KCGPDFObjectTypeNull CGPDFObjectType = 1
	// KCGPDFObjectTypeReal: The type for a PDF real.
	KCGPDFObjectTypeReal CGPDFObjectType = 4
	// KCGPDFObjectTypeStream: The type for a PDF stream.
	KCGPDFObjectTypeStream CGPDFObjectType = 9
	// KCGPDFObjectTypeString: The type for a PDF string.
	KCGPDFObjectTypeString CGPDFObjectType = 6
)

func CGPDFObjectGetType

func CGPDFObjectGetType(object CGPDFObjectRef) CGPDFObjectType

CGPDFObjectGetType returns the PDF type identifier of an object.

It panics if CGPDFObjectGetType is unavailable at run time; use TryCGPDFObjectGetType to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFObjectGetType(_:)

func TryCGPDFObjectGetType

func TryCGPDFObjectGetType(object CGPDFObjectRef) (CGPDFObjectType, error)

TryCGPDFObjectGetType is like CGPDFObjectGetType but returns an error instead of panicking if CGPDFObjectGetType is unavailable at run time.

func (CGPDFObjectType) String

func (e CGPDFObjectType) String() string

type CGPDFOperatorCallback

type CGPDFOperatorCallback = func(scanner CGPDFScannerRef, info unsafe.Pointer)

CGPDFOperatorCallback is performs custom processing for PDF operators.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFOperatorCallback

type CGPDFOperatorTableRef

type CGPDFOperatorTableRef uintptr

CGPDFOperatorTableRef is a type that stores callback functions for PDF operators.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFOperatorTableRef

func CGPDFOperatorTableCreate

func CGPDFOperatorTableCreate() CGPDFOperatorTableRef

CGPDFOperatorTableCreate creates an empty PDF operator table.

It panics if CGPDFOperatorTableCreate is unavailable at run time; use TryCGPDFOperatorTableCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFOperatorTableCreate()

func CGPDFOperatorTableRetain

func CGPDFOperatorTableRetain(table CGPDFOperatorTableRef) CGPDFOperatorTableRef

CGPDFOperatorTableRetain increments the retain count of a CGPDFOperatorTable object.

It panics if CGPDFOperatorTableRetain is unavailable at run time; use TryCGPDFOperatorTableRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFOperatorTableRetain(_:)

func TryCGPDFOperatorTableCreate

func TryCGPDFOperatorTableCreate() (CGPDFOperatorTableRef, error)

TryCGPDFOperatorTableCreate is like CGPDFOperatorTableCreate but returns an error instead of panicking if CGPDFOperatorTableCreate is unavailable at run time.

func TryCGPDFOperatorTableRetain

func TryCGPDFOperatorTableRetain(table CGPDFOperatorTableRef) (CGPDFOperatorTableRef, error)

TryCGPDFOperatorTableRetain is like CGPDFOperatorTableRetain but returns an error instead of panicking if CGPDFOperatorTableRetain is unavailable at run time.

type CGPDFPageRef

type CGPDFPageRef uintptr

CGPDFPageRef is a type that represents a page in a PDF document.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage

func CGPDFDocumentGetPage

func CGPDFDocumentGetPage(document CGPDFDocumentRef, pageNumber uintptr) CGPDFPageRef

CGPDFDocumentGetPage returns a page from a Core Graphics PDF document.

It panics if CGPDFDocumentGetPage is unavailable at run time; use TryCGPDFDocumentGetPage to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/page(at:)

func CGPDFPageRetain

func CGPDFPageRetain(page CGPDFPageRef) CGPDFPageRef

CGPDFPageRetain increments the retain count of a PDF page.

It panics if CGPDFPageRetain is unavailable at run time; use TryCGPDFPageRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPageRetain

func TryCGPDFDocumentGetPage

func TryCGPDFDocumentGetPage(document CGPDFDocumentRef, pageNumber uintptr) (CGPDFPageRef, error)

TryCGPDFDocumentGetPage is like CGPDFDocumentGetPage but returns an error instead of panicking if CGPDFDocumentGetPage is unavailable at run time.

func TryCGPDFPageRetain

func TryCGPDFPageRetain(page CGPDFPageRef) (CGPDFPageRef, error)

TryCGPDFPageRetain is like CGPDFPageRetain but returns an error instead of panicking if CGPDFPageRetain is unavailable at run time.

type CGPDFReal

type CGPDFReal = float64

CGPDFReal is a PDF real value.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFReal

type CGPDFScannerRef

type CGPDFScannerRef uintptr

CGPDFScannerRef is a type used to parse a PDF content stream.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerRef

func CGPDFScannerCreate

func CGPDFScannerCreate(cs CGPDFContentStreamRef, table CGPDFOperatorTableRef, info unsafe.Pointer) CGPDFScannerRef

CGPDFScannerCreate creates a PDF scanner.

It panics if CGPDFScannerCreate is unavailable at run time; use TryCGPDFScannerCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerCreate(_:_:_:)

func CGPDFScannerRetain

func CGPDFScannerRetain(scanner CGPDFScannerRef) CGPDFScannerRef

CGPDFScannerRetain increments the retain count of a scanner object.

It panics if CGPDFScannerRetain is unavailable at run time; use TryCGPDFScannerRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFScannerRetain(_:)

func TryCGPDFScannerCreate

func TryCGPDFScannerCreate(cs CGPDFContentStreamRef, table CGPDFOperatorTableRef, info unsafe.Pointer) (CGPDFScannerRef, error)

TryCGPDFScannerCreate is like CGPDFScannerCreate but returns an error instead of panicking if CGPDFScannerCreate is unavailable at run time.

func TryCGPDFScannerRetain

func TryCGPDFScannerRetain(scanner CGPDFScannerRef) (CGPDFScannerRef, error)

TryCGPDFScannerRetain is like CGPDFScannerRetain but returns an error instead of panicking if CGPDFScannerRetain is unavailable at run time.

type CGPDFStreamRef

type CGPDFStreamRef uintptr

CGPDFStreamRef is a type that represents a PDF stream.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFStreamRef

type CGPDFStringRef

type CGPDFStringRef uintptr

CGPDFStringRef is a data type that represents a string in a PDF document.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFStringRef

type CGPDFTagType

type CGPDFTagType int32

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFTagType

const (
	CGPDFTagTypeAnnotation         CGPDFTagType = 507
	CGPDFTagTypeArt                CGPDFTagType = 102
	CGPDFTagTypeBibliography       CGPDFTagType = 504
	CGPDFTagTypeBlockQuote         CGPDFTagType = 105
	CGPDFTagTypeCaption            CGPDFTagType = 106
	CGPDFTagTypeCode               CGPDFTagType = 505
	CGPDFTagTypeDiv                CGPDFTagType = 104
	CGPDFTagTypeDocument           CGPDFTagType = 100
	CGPDFTagTypeFigure             CGPDFTagType = 700
	CGPDFTagTypeForm               CGPDFTagType = 702
	CGPDFTagTypeFormula            CGPDFTagType = 701
	CGPDFTagTypeHeader             CGPDFTagType = 201
	CGPDFTagTypeHeader1            CGPDFTagType = 202
	CGPDFTagTypeHeader2            CGPDFTagType = 203
	CGPDFTagTypeHeader3            CGPDFTagType = 204
	CGPDFTagTypeHeader4            CGPDFTagType = 205
	CGPDFTagTypeHeader5            CGPDFTagType = 206
	CGPDFTagTypeHeader6            CGPDFTagType = 207
	CGPDFTagTypeLabel              CGPDFTagType = 302
	CGPDFTagTypeLink               CGPDFTagType = 506
	CGPDFTagTypeList               CGPDFTagType = 300
	CGPDFTagTypeListBody           CGPDFTagType = 303
	CGPDFTagTypeListItem           CGPDFTagType = 301
	CGPDFTagTypeNonStructure       CGPDFTagType = 110
	CGPDFTagTypeNote               CGPDFTagType = 502
	CGPDFTagTypeObject             CGPDFTagType = 800
	CGPDFTagTypeParagraph          CGPDFTagType = 200
	CGPDFTagTypePart               CGPDFTagType = 101
	CGPDFTagTypePrivate            CGPDFTagType = 111
	CGPDFTagTypeQuote              CGPDFTagType = 501
	CGPDFTagTypeReference          CGPDFTagType = 503
	CGPDFTagTypeRuby               CGPDFTagType = 600
	CGPDFTagTypeRubyAnnotationText CGPDFTagType = 602
	CGPDFTagTypeRubyBaseText       CGPDFTagType = 601
	CGPDFTagTypeRubyPunctuation    CGPDFTagType = 603
	CGPDFTagTypeSection            CGPDFTagType = 103
	CGPDFTagTypeSpan               CGPDFTagType = 500
	CGPDFTagTypeTOC                CGPDFTagType = 107
	CGPDFTagTypeTOCI               CGPDFTagType = 108
	CGPDFTagTypeTable              CGPDFTagType = 400
	CGPDFTagTypeTableBody          CGPDFTagType = 405
	CGPDFTagTypeTableDataCell      CGPDFTagType = 403
	CGPDFTagTypeTableFooter        CGPDFTagType = 406
	CGPDFTagTypeTableHeader        CGPDFTagType = 404
	CGPDFTagTypeTableHeaderCell    CGPDFTagType = 402
	CGPDFTagTypeTableRow           CGPDFTagType = 401
	CGPDFTagTypeWarichu            CGPDFTagType = 604
	CGPDFTagTypeWarichuPunctiation CGPDFTagType = 606
	CGPDFTagTypeWarichuText        CGPDFTagType = 605
)

func (CGPDFTagType) String added in v0.5.1

func (e CGPDFTagType) String() string

type CGPSConverterBeginDocumentCallback

type CGPSConverterBeginDocumentCallback = func(info unsafe.Pointer)

CGPSConverterBeginDocumentCallback is performs custom tasks at the beginning of a PostScript conversion process.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverterBeginDocumentCallback

type CGPSConverterBeginPageCallback

type CGPSConverterBeginPageCallback = func(info unsafe.Pointer, pageNumber uint, pageInfo uintptr)

CGPSConverterBeginPageCallback is performs custom tasks at the beginning of each page in a PostScript conversion process.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverterBeginPageCallback

type CGPSConverterCallbacks

type CGPSConverterCallbacks struct {
	Version uint32 // The version number of the structure passed in as a parameter to the converter creation functions. The structure defined below is version `0`.
	// C: CGPSConverterBeginDocumentCallback (void (*)(void *))
	BeginDocument uintptr // The callback called at the beginning of the conversion of the PostScript document, or [NULL].
	// C: CGPSConverterEndDocumentCallback (void (*)(void *, _Bool))
	EndDocument uintptr // The callback called at the end of conversion of the PostScript document, or [NULL].
	// C: CGPSConverterBeginPageCallback (void (*)(void *, unsigned long, const struct __CFDictionary *))
	BeginPage uintptr // The callback called at the start of the conversion of each page in the PostScript document, or [NULL].
	// C: CGPSConverterEndPageCallback (void (*)(void *, unsigned long, const struct __CFDictionary *))
	EndPage uintptr // The callback called at the end of the conversion of each page in the PostScript document, or [NULL].
	// C: CGPSConverterProgressCallback (void (*)(void *))
	NoteProgress uintptr // The callback called periodically during the conversion to indicate that conversion is proceeding, or [NULL].
	// C: CGPSConverterMessageCallback (void (*)(void *, const struct __CFString *))
	NoteMessage uintptr // The callback called to pass any messages that might result during the conversion, or [NULL].
	// C: CGPSConverterReleaseInfoCallback (void (*)(void *))
	ReleaseInfo uintptr // The callback called when the converter is deallocated, or [NULL].

}

CGPSConverterCallbacks - A structure for holding the callbacks provided when you create a PostScript converter object.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGPSConverterCallbacks

type CGPSConverterEndDocumentCallback

type CGPSConverterEndDocumentCallback = func(info unsafe.Pointer, success bool)

CGPSConverterEndDocumentCallback is performs custom tasks at the end of a PostScript conversion process.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverterEndDocumentCallback

type CGPSConverterEndPageCallback

type CGPSConverterEndPageCallback = func(info unsafe.Pointer, pageNumber uint, pageInfo uintptr)

CGPSConverterEndPageCallback is performs custom tasks at the end of each page of a PostScript conversion process.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverterEndPageCallback

type CGPSConverterMessageCallback

type CGPSConverterMessageCallback = func(info unsafe.Pointer, message uintptr)

CGPSConverterMessageCallback is passes messages generated during a PostScript conversion process.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverterMessageCallback

type CGPSConverterProgressCallback

type CGPSConverterProgressCallback = func(info unsafe.Pointer)

CGPSConverterProgressCallback is reports progress periodically during a PostScript conversion process.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverterProgressCallback

type CGPSConverterRef

type CGPSConverterRef uintptr

CGPSConverterRef is an opaque data type used to convert PostScript data to PDF data.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverter

func CGPSConverterCreate

func CGPSConverterCreate(info unsafe.Pointer, callbacks *CGPSConverterCallbacks, options corefoundation.CFDictionaryRef) CGPSConverterRef

CGPSConverterCreate creates a new PostScript converter.

It panics if CGPSConverterCreate is unavailable at run time; use TryCGPSConverterCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverter/init(info:callbacks:options:)

func TryCGPSConverterCreate

func TryCGPSConverterCreate(info unsafe.Pointer, callbacks *CGPSConverterCallbacks, options corefoundation.CFDictionaryRef) (CGPSConverterRef, error)

TryCGPSConverterCreate is like CGPSConverterCreate but returns an error instead of panicking if CGPSConverterCreate is unavailable at run time.

type CGPSConverterReleaseInfoCallback

type CGPSConverterReleaseInfoCallback = func(info unsafe.Pointer)

CGPSConverterReleaseInfoCallback is performs custom tasks when a PostScript converter is released.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverterReleaseInfoCallback

type CGPathApplierFunction

type CGPathApplierFunction = func(unsafe.Pointer, uintptr)

CGPathApplierFunction is defines a callback function that can view an element in a graphics path.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathApplierFunction

type CGPathDrawingMode

type CGPathDrawingMode int32

See: https://developer.apple.com/documentation/CoreGraphics/CGPathDrawingMode

const (
	// KCGPathEOFill: Render the area within the path using the even-odd rule.
	KCGPathEOFill CGPathDrawingMode = 1
	// KCGPathEOFillStroke: First fill and then stroke the path, using the even-odd rule.
	KCGPathEOFillStroke CGPathDrawingMode = 4
	// KCGPathFill: Render the area contained within the path using the non-zero winding number rule.
	KCGPathFill CGPathDrawingMode = 0
	// KCGPathFillStroke: First fill and then stroke the path, using the nonzero winding number rule.
	KCGPathFillStroke CGPathDrawingMode = 3
	// KCGPathStroke: Render a line along the path.
	KCGPathStroke CGPathDrawingMode = 2
)

func (CGPathDrawingMode) String

func (e CGPathDrawingMode) String() string

type CGPathElement

type CGPathElement struct {
	Type   CGPathElementType       // An element type (or operation).
	Points *corefoundation.CGPoint // An array of one or more points that serve as arguments.

}

CGPathElement - A data structure that provides information about a path element.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGPathElement

type CGPathElementType

type CGPathElementType int32

See: https://developer.apple.com/documentation/CoreGraphics/CGPathElementType

const (
	// KCGPathElementAddCurveToPoint: The path element that adds a cubic curve from the current point to the specified point.
	KCGPathElementAddCurveToPoint CGPathElementType = 3
	// KCGPathElementAddLineToPoint: The path element that adds a line from the current point to a new point.
	KCGPathElementAddLineToPoint CGPathElementType = 1
	// KCGPathElementAddQuadCurveToPoint: The path element that adds a quadratic curve from the current point to the specified point.
	KCGPathElementAddQuadCurveToPoint CGPathElementType = 2
	// KCGPathElementCloseSubpath: The path element that closes and completes a subpath.
	KCGPathElementCloseSubpath CGPathElementType = 4
	// KCGPathElementMoveToPoint: The path element that starts a new subpath.
	KCGPathElementMoveToPoint CGPathElementType = 0
)

func (CGPathElementType) String

func (e CGPathElementType) String() string

type CGPathRef

type CGPathRef uintptr

CGPathRef is an immutable graphics path: a mathematical description of shapes or lines to be drawn in a graphics context.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath

func CGContextCopyPath

func CGContextCopyPath(c CGContextRef) CGPathRef

CGContextCopyPath returns a path object built from the current path information in a graphics context.

It panics if CGContextCopyPath is unavailable at run time; use TryCGContextCopyPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGContext/path

func CGPathCreateCopy

func CGPathCreateCopy(path CGPathRef) CGPathRef

CGPathCreateCopy creates an immutable copy of a graphics path.

It panics if CGPathCreateCopy is unavailable at run time; use TryCGPathCreateCopy to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/copy()

func CGPathCreateCopyByDashingPath

func CGPathCreateCopyByDashingPath(path CGPathRef, transform *corefoundation.CGAffineTransform, phase float64, lengths *float64, count uintptr) CGPathRef

CGPathCreateCopyByDashingPath creates a dashed copy of another path.

It panics if CGPathCreateCopyByDashingPath is unavailable at run time; use TryCGPathCreateCopyByDashingPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyByDashingPath

func CGPathCreateCopyByFlattening

func CGPathCreateCopyByFlattening(path CGPathRef, flatteningThreshold float64) CGPathRef

CGPathCreateCopyByFlattening.

It panics if CGPathCreateCopyByFlattening is unavailable at run time; use TryCGPathCreateCopyByFlattening to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyByFlattening

func CGPathCreateCopyByIntersectingPath

func CGPathCreateCopyByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyByIntersectingPath.

It panics if CGPathCreateCopyByIntersectingPath is unavailable at run time; use TryCGPathCreateCopyByIntersectingPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyByIntersectingPath

func CGPathCreateCopyByNormalizing

func CGPathCreateCopyByNormalizing(path CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyByNormalizing.

It panics if CGPathCreateCopyByNormalizing is unavailable at run time; use TryCGPathCreateCopyByNormalizing to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyByNormalizing

func CGPathCreateCopyByStrokingPath added in v0.2.0

func CGPathCreateCopyByStrokingPath(path CGPathRef, transform *corefoundation.CGAffineTransform, lineWidth float64, lineCap CGLineCap, lineJoin CGLineJoin, miterLimit float64) CGPathRef

CGPathCreateCopyByStrokingPath creates a stroked copy of another path.

It panics if CGPathCreateCopyByStrokingPath is unavailable at run time; use TryCGPathCreateCopyByStrokingPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyByStrokingPath

func CGPathCreateCopyBySubtractingPath

func CGPathCreateCopyBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyBySubtractingPath.

It panics if CGPathCreateCopyBySubtractingPath is unavailable at run time; use TryCGPathCreateCopyBySubtractingPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyBySubtractingPath

func CGPathCreateCopyBySymmetricDifferenceOfPath

func CGPathCreateCopyBySymmetricDifferenceOfPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyBySymmetricDifferenceOfPath.

It panics if CGPathCreateCopyBySymmetricDifferenceOfPath is unavailable at run time; use TryCGPathCreateCopyBySymmetricDifferenceOfPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyBySymmetricDifferenceOfPath

func CGPathCreateCopyByTransformingPath

func CGPathCreateCopyByTransformingPath(path CGPathRef, transform *corefoundation.CGAffineTransform) CGPathRef

CGPathCreateCopyByTransformingPath creates an immutable copy of a graphics path transformed by a transformation matrix.

It panics if CGPathCreateCopyByTransformingPath is unavailable at run time; use TryCGPathCreateCopyByTransformingPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/copy(using:)

func CGPathCreateCopyByUnioningPath

func CGPathCreateCopyByUnioningPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyByUnioningPath.

It panics if CGPathCreateCopyByUnioningPath is unavailable at run time; use TryCGPathCreateCopyByUnioningPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyByUnioningPath

func CGPathCreateCopyOfLineByIntersectingPath

func CGPathCreateCopyOfLineByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyOfLineByIntersectingPath.

It panics if CGPathCreateCopyOfLineByIntersectingPath is unavailable at run time; use TryCGPathCreateCopyOfLineByIntersectingPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyOfLineByIntersectingPath

func CGPathCreateCopyOfLineBySubtractingPath

func CGPathCreateCopyOfLineBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyOfLineBySubtractingPath.

It panics if CGPathCreateCopyOfLineBySubtractingPath is unavailable at run time; use TryCGPathCreateCopyOfLineBySubtractingPath to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathCreateCopyOfLineBySubtractingPath

func CGPathCreateWithEllipseInRect

func CGPathCreateWithEllipseInRect(rect corefoundation.CGRect, transform *corefoundation.CGAffineTransform) CGPathRef

CGPathCreateWithEllipseInRect create an immutable path of an ellipse.

It panics if CGPathCreateWithEllipseInRect is unavailable at run time; use TryCGPathCreateWithEllipseInRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/init(ellipseIn:transform:)

func CGPathCreateWithRect

func CGPathCreateWithRect(rect corefoundation.CGRect, transform *corefoundation.CGAffineTransform) CGPathRef

CGPathCreateWithRect create an immutable path of a rectangle.

It panics if CGPathCreateWithRect is unavailable at run time; use TryCGPathCreateWithRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/init(rect:transform:)

func CGPathCreateWithRoundedRect

func CGPathCreateWithRoundedRect(rect corefoundation.CGRect, cornerWidth float64, cornerHeight float64, transform *corefoundation.CGAffineTransform) CGPathRef

CGPathCreateWithRoundedRect create an immutable path of a rounded rectangle.

It panics if CGPathCreateWithRoundedRect is unavailable at run time; use TryCGPathCreateWithRoundedRect to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/init(roundedRect:cornerWidth:cornerHeight:transform:)

func CGPathRetain

func CGPathRetain(path CGPathRef) CGPathRef

CGPathRetain increments the retain count of a graphics path.

It panics if CGPathRetain is unavailable at run time; use TryCGPathRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPathRetain

func TryCGContextCopyPath

func TryCGContextCopyPath(c CGContextRef) (CGPathRef, error)

TryCGContextCopyPath is like CGContextCopyPath but returns an error instead of panicking if CGContextCopyPath is unavailable at run time.

func TryCGPathCreateCopy

func TryCGPathCreateCopy(path CGPathRef) (CGPathRef, error)

TryCGPathCreateCopy is like CGPathCreateCopy but returns an error instead of panicking if CGPathCreateCopy is unavailable at run time.

func TryCGPathCreateCopyByDashingPath

func TryCGPathCreateCopyByDashingPath(path CGPathRef, transform *corefoundation.CGAffineTransform, phase float64, lengths *float64, count uintptr) (CGPathRef, error)

TryCGPathCreateCopyByDashingPath is like CGPathCreateCopyByDashingPath but returns an error instead of panicking if CGPathCreateCopyByDashingPath is unavailable at run time.

func TryCGPathCreateCopyByFlattening

func TryCGPathCreateCopyByFlattening(path CGPathRef, flatteningThreshold float64) (CGPathRef, error)

TryCGPathCreateCopyByFlattening is like CGPathCreateCopyByFlattening but returns an error instead of panicking if CGPathCreateCopyByFlattening is unavailable at run time.

func TryCGPathCreateCopyByIntersectingPath

func TryCGPathCreateCopyByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) (CGPathRef, error)

TryCGPathCreateCopyByIntersectingPath is like CGPathCreateCopyByIntersectingPath but returns an error instead of panicking if CGPathCreateCopyByIntersectingPath is unavailable at run time.

func TryCGPathCreateCopyByNormalizing

func TryCGPathCreateCopyByNormalizing(path CGPathRef, evenOddFillRule bool) (CGPathRef, error)

TryCGPathCreateCopyByNormalizing is like CGPathCreateCopyByNormalizing but returns an error instead of panicking if CGPathCreateCopyByNormalizing is unavailable at run time.

func TryCGPathCreateCopyByStrokingPath

func TryCGPathCreateCopyByStrokingPath(path CGPathRef, transform *corefoundation.CGAffineTransform, lineWidth float64, lineCap CGLineCap, lineJoin CGLineJoin, miterLimit float64) (CGPathRef, error)

TryCGPathCreateCopyByStrokingPath is like CGPathCreateCopyByStrokingPath but returns an error instead of panicking if CGPathCreateCopyByStrokingPath is unavailable at run time.

func TryCGPathCreateCopyBySubtractingPath

func TryCGPathCreateCopyBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) (CGPathRef, error)

TryCGPathCreateCopyBySubtractingPath is like CGPathCreateCopyBySubtractingPath but returns an error instead of panicking if CGPathCreateCopyBySubtractingPath is unavailable at run time.

func TryCGPathCreateCopyBySymmetricDifferenceOfPath

func TryCGPathCreateCopyBySymmetricDifferenceOfPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) (CGPathRef, error)

TryCGPathCreateCopyBySymmetricDifferenceOfPath is like CGPathCreateCopyBySymmetricDifferenceOfPath but returns an error instead of panicking if CGPathCreateCopyBySymmetricDifferenceOfPath is unavailable at run time.

func TryCGPathCreateCopyByTransformingPath

func TryCGPathCreateCopyByTransformingPath(path CGPathRef, transform *corefoundation.CGAffineTransform) (CGPathRef, error)

TryCGPathCreateCopyByTransformingPath is like CGPathCreateCopyByTransformingPath but returns an error instead of panicking if CGPathCreateCopyByTransformingPath is unavailable at run time.

func TryCGPathCreateCopyByUnioningPath

func TryCGPathCreateCopyByUnioningPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) (CGPathRef, error)

TryCGPathCreateCopyByUnioningPath is like CGPathCreateCopyByUnioningPath but returns an error instead of panicking if CGPathCreateCopyByUnioningPath is unavailable at run time.

func TryCGPathCreateCopyOfLineByIntersectingPath

func TryCGPathCreateCopyOfLineByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) (CGPathRef, error)

TryCGPathCreateCopyOfLineByIntersectingPath is like CGPathCreateCopyOfLineByIntersectingPath but returns an error instead of panicking if CGPathCreateCopyOfLineByIntersectingPath is unavailable at run time.

func TryCGPathCreateCopyOfLineBySubtractingPath

func TryCGPathCreateCopyOfLineBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) (CGPathRef, error)

TryCGPathCreateCopyOfLineBySubtractingPath is like CGPathCreateCopyOfLineBySubtractingPath but returns an error instead of panicking if CGPathCreateCopyOfLineBySubtractingPath is unavailable at run time.

func TryCGPathCreateWithEllipseInRect

func TryCGPathCreateWithEllipseInRect(rect corefoundation.CGRect, transform *corefoundation.CGAffineTransform) (CGPathRef, error)

TryCGPathCreateWithEllipseInRect is like CGPathCreateWithEllipseInRect but returns an error instead of panicking if CGPathCreateWithEllipseInRect is unavailable at run time.

func TryCGPathCreateWithRect

func TryCGPathCreateWithRect(rect corefoundation.CGRect, transform *corefoundation.CGAffineTransform) (CGPathRef, error)

TryCGPathCreateWithRect is like CGPathCreateWithRect but returns an error instead of panicking if CGPathCreateWithRect is unavailable at run time.

func TryCGPathCreateWithRoundedRect

func TryCGPathCreateWithRoundedRect(rect corefoundation.CGRect, cornerWidth float64, cornerHeight float64, transform *corefoundation.CGAffineTransform) (CGPathRef, error)

TryCGPathCreateWithRoundedRect is like CGPathCreateWithRoundedRect but returns an error instead of panicking if CGPathCreateWithRoundedRect is unavailable at run time.

func TryCGPathRetain

func TryCGPathRetain(path CGPathRef) (CGPathRef, error)

TryCGPathRetain is like CGPathRetain but returns an error instead of panicking if CGPathRetain is unavailable at run time.

type CGPatternCallbacks

type CGPatternCallbacks struct {
	Version uint32 // The version of the structure passed in as a parameterto the [init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:)](<https://developer.apple.com/documentation/CoreGraphics/CGPattern/init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:)>). Forthis version of the structure, you should set this value to zero.
	// C: CGPatternDrawPatternCallback (void (*)(void *, struct CGContext *))
	DrawPattern uintptr // A pointer to a custom function that draws thepattern. For information about this callback function, see [CGPatternDrawPatternCallback](<https://developer.apple.com/documentation/CoreGraphics/CGPatternDrawPatternCallback>).
	// C: CGPatternReleaseInfoCallback (void (*)(void *))
	ReleaseInfo uintptr // An optional pointer to a custom function that’sinvoked when the pattern is released. [CGPatternReleaseInfoCallback](<https://developer.apple.com/documentation/CoreGraphics/CGPatternReleaseInfoCallback>).

}

CGPatternCallbacks - A structure that holds a version and two callback functions for drawing a custom pattern.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGPatternCallbacks

type CGPatternDrawPatternCallback

type CGPatternDrawPatternCallback = func(info unsafe.Pointer, context CGContextRef)

CGPatternDrawPatternCallback is draws a pattern cell.

See: https://developer.apple.com/documentation/CoreGraphics/CGPatternDrawPatternCallback

type CGPatternRef

type CGPatternRef uintptr

CGPatternRef is a 2D pattern to be used for drawing graphics paths.

See: https://developer.apple.com/documentation/CoreGraphics/CGPattern

func CGColorGetPattern

func CGColorGetPattern(color CGColorRef) CGPatternRef

CGColorGetPattern returns the pattern associated with a color in a pattern color space.

It panics if CGColorGetPattern is unavailable at run time; use TryCGColorGetPattern to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/pattern

func CGPatternCreate

func CGPatternCreate(info unsafe.Pointer, bounds corefoundation.CGRect, matrix corefoundation.CGAffineTransform, xStep float64, yStep float64, tiling CGPatternTiling, isColored bool, callbacks *CGPatternCallbacks) CGPatternRef

CGPatternCreate creates a pattern object.

It panics if CGPatternCreate is unavailable at run time; use TryCGPatternCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPattern/init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:)

func CGPatternRetain

func CGPatternRetain(pattern CGPatternRef) CGPatternRef

CGPatternRetain increments the retain count of a Core Graphics pattern.

It panics if CGPatternRetain is unavailable at run time; use TryCGPatternRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGPatternRetain

func TryCGColorGetPattern

func TryCGColorGetPattern(color CGColorRef) (CGPatternRef, error)

TryCGColorGetPattern is like CGColorGetPattern but returns an error instead of panicking if CGColorGetPattern is unavailable at run time.

func TryCGPatternCreate

func TryCGPatternCreate(info unsafe.Pointer, bounds corefoundation.CGRect, matrix corefoundation.CGAffineTransform, xStep float64, yStep float64, tiling CGPatternTiling, isColored bool, callbacks *CGPatternCallbacks) (CGPatternRef, error)

TryCGPatternCreate is like CGPatternCreate but returns an error instead of panicking if CGPatternCreate is unavailable at run time.

func TryCGPatternRetain

func TryCGPatternRetain(pattern CGPatternRef) (CGPatternRef, error)

TryCGPatternRetain is like CGPatternRetain but returns an error instead of panicking if CGPatternRetain is unavailable at run time.

type CGPatternReleaseInfoCallback

type CGPatternReleaseInfoCallback = func(info unsafe.Pointer)

CGPatternReleaseInfoCallback is release private data or resources associated with the pattern.

See: https://developer.apple.com/documentation/CoreGraphics/CGPatternReleaseInfoCallback

type CGPatternTiling

type CGPatternTiling int32

See: https://developer.apple.com/documentation/CoreGraphics/CGPatternTiling

const (
	// KCGPatternTilingConstantSpacing: Pattern cells are spaced consistently, as with CGPatternTiling.constantSpacingMinimalDistortion.The pattern cell may be distorted additionally to permit a moreefficient implementation.
	KCGPatternTilingConstantSpacing CGPatternTiling = 2
	// KCGPatternTilingConstantSpacingMinimalDistortion: Pattern cells are spaced consistently.
	KCGPatternTilingConstantSpacingMinimalDistortion CGPatternTiling = 1
	// KCGPatternTilingNoDistortion: The pattern cell is not distorted when painted.The spacing between pattern cells may vary by as much as 1 devicepixel.
	KCGPatternTilingNoDistortion CGPatternTiling = 0
)

func (CGPatternTiling) String

func (e CGPatternTiling) String() string

type CGRectCount

type CGRectCount = uint32

CGRectCount is the size of an array of Quartz rectangles.

See: https://developer.apple.com/documentation/CoreGraphics/CGRectCount

type CGRectEdge

type CGRectEdge uint32

See: https://developer.apple.com/documentation/CoreFoundation/CGRectEdge

const (
	CGRectMaxXEdge CGRectEdge = 2
	CGRectMaxYEdge CGRectEdge = 3
	CGRectMinXEdge CGRectEdge = 0
	CGRectMinYEdge CGRectEdge = 1
)

func (CGRectEdge) String

func (e CGRectEdge) String() string

type CGRefreshRate

type CGRefreshRate = float64

CGRefreshRate is a display’s refresh rate in frames per second.

See: https://developer.apple.com/documentation/CoreGraphics/CGRefreshRate

type CGRenderingBufferProviderRef

type CGRenderingBufferProviderRef uintptr

See: https://developer.apple.com/documentation/CoreGraphics/CGRenderingBufferProvider

func CGRenderingBufferProviderCreate

func CGRenderingBufferProviderCreate(info unsafe.Pointer, size uintptr, lockPointer unsafe.Pointer) CGRenderingBufferProviderRef

CGRenderingBufferProviderCreate.

It panics if CGRenderingBufferProviderCreate is unavailable at run time; use TryCGRenderingBufferProviderCreate to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRenderingBufferProviderCreate

func CGRenderingBufferProviderCreateWithCFData

func CGRenderingBufferProviderCreateWithCFData(data corefoundation.CFMutableDataRef) CGRenderingBufferProviderRef

CGRenderingBufferProviderCreateWithCFData.

It panics if CGRenderingBufferProviderCreateWithCFData is unavailable at run time; use TryCGRenderingBufferProviderCreateWithCFData to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGRenderingBufferProviderCreateWithCFData

func TryCGRenderingBufferProviderCreate

func TryCGRenderingBufferProviderCreate(info unsafe.Pointer, size uintptr, lockPointer unsafe.Pointer) (CGRenderingBufferProviderRef, error)

TryCGRenderingBufferProviderCreate is like CGRenderingBufferProviderCreate but returns an error instead of panicking if CGRenderingBufferProviderCreate is unavailable at run time.

func TryCGRenderingBufferProviderCreateWithCFData

func TryCGRenderingBufferProviderCreateWithCFData(data corefoundation.CFMutableDataRef) (CGRenderingBufferProviderRef, error)

TryCGRenderingBufferProviderCreateWithCFData is like CGRenderingBufferProviderCreateWithCFData but returns an error instead of panicking if CGRenderingBufferProviderCreateWithCFData is unavailable at run time.

type CGScreenRefreshCallback

type CGScreenRefreshCallback = func(count uint32, rectArray uintptr, userParameter unsafe.Pointer)

CGScreenRefreshCallback is a client-supplied callback function that’s invoked when an area of the display is modified or refreshed.

See: https://developer.apple.com/documentation/CoreGraphics/CGScreenRefreshCallback

type CGScreenUpdateMoveCallback

type CGScreenUpdateMoveCallback = func(delta CGScreenUpdateMoveDelta, count uint, rectArray uintptr, userParameter unsafe.Pointer)

CGScreenUpdateMoveCallback is a client-supplied callback function invoked when an area of the display is moved.

See: https://developer.apple.com/documentation/CoreGraphics/CGScreenUpdateMoveCallback

type CGScreenUpdateMoveDelta

type CGScreenUpdateMoveDelta struct {
	DX int32
	DY int32
}

CGScreenUpdateMoveDelta - The distance, in pixel units, that an onscreen region moves.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGScreenUpdateMoveDelta

type CGScreenUpdateOperation

type CGScreenUpdateOperation uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGScreenUpdateOperation

const (
	// KCGScreenUpdateOperationMove: A screen-move operation.
	KCGScreenUpdateOperationMove CGScreenUpdateOperation = 1
	// KCGScreenUpdateOperationReducedDirtyRectangleCount: # Discussion
	KCGScreenUpdateOperationReducedDirtyRectangleCount CGScreenUpdateOperation = 2147483648
	// KCGScreenUpdateOperationRefresh: A screen-refresh operation.
	KCGScreenUpdateOperationRefresh CGScreenUpdateOperation = 0
)

func (CGScreenUpdateOperation) String

func (e CGScreenUpdateOperation) String() string

type CGScrollEventUnit

type CGScrollEventUnit uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGScrollEventUnit

const (
	// KCGScrollEventUnitLine: Specifies that the unit of measurement is lines.
	KCGScrollEventUnitLine CGScrollEventUnit = 1
	// KCGScrollEventUnitPixel: Specifies that the unit of measurement is pixels.
	KCGScrollEventUnitPixel CGScrollEventUnit = 0
)

func (CGScrollEventUnit) String

func (e CGScrollEventUnit) String() string

type CGScrollPhase

type CGScrollPhase uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGScrollPhase

const (
	KCGScrollPhaseBegan     CGScrollPhase = 1
	KCGScrollPhaseCancelled CGScrollPhase = 8
	KCGScrollPhaseChanged   CGScrollPhase = 2
	KCGScrollPhaseEnded     CGScrollPhase = 4
	KCGScrollPhaseMayBegin  CGScrollPhase = 128
)

func (CGScrollPhase) String added in v0.5.1

func (e CGScrollPhase) String() string

type CGShadingRef

type CGShadingRef uintptr

CGShadingRef is a definition for a smooth transition between colors, controlled by a custom function you provide, for drawing radial and axial gradient fills.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading

func CGShadingCreateAxial

func CGShadingCreateAxial(space CGColorSpaceRef, start corefoundation.CGPoint, end corefoundation.CGPoint, function CGFunctionRef, extendStart bool, extendEnd bool) CGShadingRef

CGShadingCreateAxial creates a shading object to use for axial shading.

It panics if CGShadingCreateAxial is unavailable at run time; use TryCGShadingCreateAxial to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading/init(axialSpace:start:end:function:extendStart:extendEnd:)

func CGShadingCreateAxialWithContentHeadroom

func CGShadingCreateAxialWithContentHeadroom(headroom float32, space CGColorSpaceRef, start corefoundation.CGPoint, end corefoundation.CGPoint, function CGFunctionRef, extendStart bool, extendEnd bool) CGShadingRef

CGShadingCreateAxialWithContentHeadroom.

It panics if CGShadingCreateAxialWithContentHeadroom is unavailable at run time; use TryCGShadingCreateAxialWithContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading/init(axialHeadroom:space:start:end:function:extendStart:extendEnd:)

func CGShadingCreateRadial

func CGShadingCreateRadial(space CGColorSpaceRef, start corefoundation.CGPoint, startRadius float64, end corefoundation.CGPoint, endRadius float64, function CGFunctionRef, extendStart bool, extendEnd bool) CGShadingRef

CGShadingCreateRadial creates a shading object to use for radial shading.

It panics if CGShadingCreateRadial is unavailable at run time; use TryCGShadingCreateRadial to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading/init(radialSpace:start:startRadius:end:endRadius:function:extendStart:extendEnd:)

func CGShadingCreateRadialWithContentHeadroom

func CGShadingCreateRadialWithContentHeadroom(headroom float32, space CGColorSpaceRef, start corefoundation.CGPoint, startRadius float64, end corefoundation.CGPoint, endRadius float64, function CGFunctionRef, extendStart bool, extendEnd bool) CGShadingRef

CGShadingCreateRadialWithContentHeadroom.

It panics if CGShadingCreateRadialWithContentHeadroom is unavailable at run time; use TryCGShadingCreateRadialWithContentHeadroom to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading/init(radialHeadroom:space:start:startRadius:end:endRadius:function:extendStart:extendEnd:)

func CGShadingRetain

func CGShadingRetain(shading CGShadingRef) CGShadingRef

CGShadingRetain increments the retain count of a shading object.

It panics if CGShadingRetain is unavailable at run time; use TryCGShadingRetain to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShadingRetain

func TryCGShadingCreateAxial

func TryCGShadingCreateAxial(space CGColorSpaceRef, start corefoundation.CGPoint, end corefoundation.CGPoint, function CGFunctionRef, extendStart bool, extendEnd bool) (CGShadingRef, error)

TryCGShadingCreateAxial is like CGShadingCreateAxial but returns an error instead of panicking if CGShadingCreateAxial is unavailable at run time.

func TryCGShadingCreateAxialWithContentHeadroom

func TryCGShadingCreateAxialWithContentHeadroom(headroom float32, space CGColorSpaceRef, start corefoundation.CGPoint, end corefoundation.CGPoint, function CGFunctionRef, extendStart bool, extendEnd bool) (CGShadingRef, error)

TryCGShadingCreateAxialWithContentHeadroom is like CGShadingCreateAxialWithContentHeadroom but returns an error instead of panicking if CGShadingCreateAxialWithContentHeadroom is unavailable at run time.

func TryCGShadingCreateRadial

func TryCGShadingCreateRadial(space CGColorSpaceRef, start corefoundation.CGPoint, startRadius float64, end corefoundation.CGPoint, endRadius float64, function CGFunctionRef, extendStart bool, extendEnd bool) (CGShadingRef, error)

TryCGShadingCreateRadial is like CGShadingCreateRadial but returns an error instead of panicking if CGShadingCreateRadial is unavailable at run time.

func TryCGShadingCreateRadialWithContentHeadroom

func TryCGShadingCreateRadialWithContentHeadroom(headroom float32, space CGColorSpaceRef, start corefoundation.CGPoint, startRadius float64, end corefoundation.CGPoint, endRadius float64, function CGFunctionRef, extendStart bool, extendEnd bool) (CGShadingRef, error)

TryCGShadingCreateRadialWithContentHeadroom is like CGShadingCreateRadialWithContentHeadroom but returns an error instead of panicking if CGShadingCreateRadialWithContentHeadroom is unavailable at run time.

func TryCGShadingRetain

func TryCGShadingRetain(shading CGShadingRef) (CGShadingRef, error)

TryCGShadingRetain is like CGShadingRetain but returns an error instead of panicking if CGShadingRetain is unavailable at run time.

type CGTextDrawingMode

type CGTextDrawingMode int32

See: https://developer.apple.com/documentation/CoreGraphics/CGTextDrawingMode

const (
	// KCGTextClip: Specifies to intersect the text with the current clipping path.
	KCGTextClip CGTextDrawingMode = 7
	// KCGTextFill: Perform a fill operation on the text.
	KCGTextFill CGTextDrawingMode = 0
	// KCGTextFillClip: Perform a fill operation, then intersect the text with the current clipping path.
	KCGTextFillClip CGTextDrawingMode = 4
	// KCGTextFillStroke: Perform fill, then stroke operations on the text.
	KCGTextFillStroke CGTextDrawingMode = 2
	// KCGTextFillStrokeClip: Perform fill then stroke operations, then intersect the text with the current clipping path.
	KCGTextFillStrokeClip CGTextDrawingMode = 6
	// KCGTextInvisible: Do not draw the text, but do update the text position.
	KCGTextInvisible CGTextDrawingMode = 3
	// KCGTextStroke: Perform a stroke operation on the text.
	KCGTextStroke CGTextDrawingMode = 1
	// KCGTextStrokeClip: Perform a stroke operation, then intersect the text with the current clipping path.
	KCGTextStrokeClip CGTextDrawingMode = 5
)

func (CGTextDrawingMode) String

func (e CGTextDrawingMode) String() string

type CGTextEncoding deprecated

type CGTextEncoding int32

Deprecated: Deprecated. See: https://developer.apple.com/documentation/CoreGraphics/CGTextEncoding

const (
	// Deprecated.
	KCGEncodingFontSpecific CGTextEncoding = 0
	// Deprecated.
	KCGEncodingMacRoman CGTextEncoding = 1
)

func (CGTextEncoding) String

func (e CGTextEncoding) String() string

type CGToneMapping

type CGToneMapping uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGToneMapping

const (
	KCGToneMappingDefault                  CGToneMapping = 0
	KCGToneMappingEXRGamma                 CGToneMapping = 4
	KCGToneMappingITURecommended           CGToneMapping = 3
	KCGToneMappingImageSpecificLumaScaling CGToneMapping = 1
	KCGToneMappingNone                     CGToneMapping = 5
	KCGToneMappingReferenceWhiteBased      CGToneMapping = 2
)

func (CGToneMapping) String added in v0.5.1

func (e CGToneMapping) String() string

type CGWheelCount

type CGWheelCount = uint32

CGWheelCount is represents the number of wheels being set in a scroll wheel event.

See: https://developer.apple.com/documentation/CoreGraphics/CGWheelCount

type CGWindowBackingType

type CGWindowBackingType uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowBackingType

const (
	// KCGBackingStoreBuffered: # Discussion
	KCGBackingStoreBuffered CGWindowBackingType = 2
	// KCGBackingStoreNonretained: # Discussion
	KCGBackingStoreNonretained CGWindowBackingType = 1
	// KCGBackingStoreRetained: # Discussion
	KCGBackingStoreRetained CGWindowBackingType = 0
)

func (CGWindowBackingType) String added in v0.5.1

func (e CGWindowBackingType) String() string

type CGWindowID

type CGWindowID = uint32

CGWindowID is the data type used to store window identifiers.

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowID

func CGShieldingWindowID

func CGShieldingWindowID(display CGDirectDisplayID) CGWindowID

CGShieldingWindowID returns the window ID of the shield window for a captured display.

It panics if CGShieldingWindowID is unavailable at run time; use TryCGShieldingWindowID to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShieldingWindowID(_:)

func TryCGShieldingWindowID

func TryCGShieldingWindowID(display CGDirectDisplayID) (CGWindowID, error)

TryCGShieldingWindowID is like CGShieldingWindowID but returns an error instead of panicking if CGShieldingWindowID is unavailable at run time.

type CGWindowImageOption

type CGWindowImageOption uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowImageOption

const (
	// KCGWindowImageBestResolution: When capturing the window, return the best image resolution.
	KCGWindowImageBestResolution CGWindowImageOption = 8
	// KCGWindowImageBoundsIgnoreFraming: # Discussion
	KCGWindowImageBoundsIgnoreFraming CGWindowImageOption = 1
	// KCGWindowImageDefault: # Discussion
	KCGWindowImageDefault CGWindowImageOption = 0
	// KCGWindowImageNominalResolution: When capturing the window, return the nominal image resolution.
	KCGWindowImageNominalResolution CGWindowImageOption = 16
	// KCGWindowImageOnlyShadows: # Discussion
	KCGWindowImageOnlyShadows CGWindowImageOption = 4
	// KCGWindowImageShouldBeOpaque: # Discussion
	KCGWindowImageShouldBeOpaque CGWindowImageOption = 2
)

func (CGWindowImageOption) String

func (e CGWindowImageOption) String() string

type CGWindowLevel

type CGWindowLevel = int32

CGWindowLevel is a level assigned to a window by an application framework.

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowLevel

func CGShieldingWindowLevel

func CGShieldingWindowLevel() CGWindowLevel

CGShieldingWindowLevel returns the window level of the shield window for a captured display.

It panics if CGShieldingWindowLevel is unavailable at run time; use TryCGShieldingWindowLevel to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGShieldingWindowLevel()

func CGWindowLevelForKey

func CGWindowLevelForKey(key CGWindowLevelKey) CGWindowLevel

CGWindowLevelForKey returns the window level that corresponds to one of the standard window types.

It panics if CGWindowLevelForKey is unavailable at run time; use TryCGWindowLevelForKey to get an error instead.

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowLevelForKey(_:)

func TryCGShieldingWindowLevel

func TryCGShieldingWindowLevel() (CGWindowLevel, error)

TryCGShieldingWindowLevel is like CGShieldingWindowLevel but returns an error instead of panicking if CGShieldingWindowLevel is unavailable at run time.

func TryCGWindowLevelForKey

func TryCGWindowLevelForKey(key CGWindowLevelKey) (CGWindowLevel, error)

TryCGWindowLevelForKey is like CGWindowLevelForKey but returns an error instead of panicking if CGWindowLevelForKey is unavailable at run time.

type CGWindowLevelKey

type CGWindowLevelKey int32

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowLevelKey

const (
	// KCGAssistiveTechHighWindowLevelKey: # Discussion
	KCGAssistiveTechHighWindowLevelKey CGWindowLevelKey = 20
	// KCGBackstopMenuLevelKey: # Discussion
	KCGBackstopMenuLevelKey CGWindowLevelKey = 3
	// KCGBaseWindowLevelKey: # Discussion
	KCGBaseWindowLevelKey CGWindowLevelKey = 0
	// KCGCursorWindowLevelKey: # Discussion
	KCGCursorWindowLevelKey CGWindowLevelKey = 19
	// KCGDesktopIconWindowLevelKey: # Discussion
	KCGDesktopIconWindowLevelKey CGWindowLevelKey = 18
	// KCGDesktopWindowLevelKey: # Discussion
	KCGDesktopWindowLevelKey CGWindowLevelKey = 2
	// KCGDockWindowLevelKey: # Discussion
	KCGDockWindowLevelKey CGWindowLevelKey = 7
	// KCGDraggingWindowLevelKey: # Discussion
	KCGDraggingWindowLevelKey CGWindowLevelKey = 12
	// KCGFloatingWindowLevelKey: # Discussion
	KCGFloatingWindowLevelKey CGWindowLevelKey = 5
	// KCGHelpWindowLevelKey: # Discussion
	KCGHelpWindowLevelKey CGWindowLevelKey = 16
	// KCGMainMenuWindowLevelKey: # Discussion
	KCGMainMenuWindowLevelKey CGWindowLevelKey = 8
	// KCGMaximumWindowLevelKey: # Discussion
	KCGMaximumWindowLevelKey CGWindowLevelKey = 14
	// KCGMinimumWindowLevelKey: # Discussion
	KCGMinimumWindowLevelKey CGWindowLevelKey = 1
	// KCGModalPanelWindowLevelKey: # Discussion
	KCGModalPanelWindowLevelKey CGWindowLevelKey = 10
	// KCGNormalWindowLevelKey: # Discussion
	KCGNormalWindowLevelKey CGWindowLevelKey = 4
	// KCGNumberOfWindowLevelKeys: # Discussion
	KCGNumberOfWindowLevelKeys CGWindowLevelKey = 21
	// KCGOverlayWindowLevelKey: # Discussion
	KCGOverlayWindowLevelKey CGWindowLevelKey = 15
	// KCGPopUpMenuWindowLevelKey: # Discussion
	KCGPopUpMenuWindowLevelKey CGWindowLevelKey = 11
	// KCGScreenSaverWindowLevelKey: # Discussion
	KCGScreenSaverWindowLevelKey CGWindowLevelKey = 13
	// KCGStatusWindowLevelKey: # Discussion
	KCGStatusWindowLevelKey CGWindowLevelKey = 9
	// KCGTornOffMenuWindowLevelKey: # Discussion
	KCGTornOffMenuWindowLevelKey CGWindowLevelKey = 6
	// KCGUtilityWindowLevelKey: # Discussion
	KCGUtilityWindowLevelKey CGWindowLevelKey = 17
)

func (CGWindowLevelKey) String added in v0.5.1

func (e CGWindowLevelKey) String() string

type CGWindowListOption

type CGWindowListOption uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowListOption

const (
	// KCGWindowListExcludeDesktopElements: # Discussion
	KCGWindowListExcludeDesktopElements CGWindowListOption = 16
	// KCGWindowListOptionAll: # Discussion
	KCGWindowListOptionAll CGWindowListOption = 0
	// KCGWindowListOptionIncludingWindow: # Discussion
	KCGWindowListOptionIncludingWindow CGWindowListOption = 8
	// KCGWindowListOptionOnScreenAboveWindow: # Discussion
	KCGWindowListOptionOnScreenAboveWindow CGWindowListOption = 2
	// KCGWindowListOptionOnScreenBelowWindow: # Discussion
	KCGWindowListOptionOnScreenBelowWindow CGWindowListOption = 4
	// KCGWindowListOptionOnScreenOnly: # Discussion
	KCGWindowListOptionOnScreenOnly CGWindowListOption = 1
)

func (CGWindowListOption) String

func (e CGWindowListOption) String() string

type CGWindowSharingType

type CGWindowSharingType uint32

See: https://developer.apple.com/documentation/CoreGraphics/CGWindowSharingType

const (
	// KCGWindowSharingNone: # Discussion
	KCGWindowSharingNone CGWindowSharingType = 0
	// KCGWindowSharingReadOnly: # Discussion
	KCGWindowSharingReadOnly CGWindowSharingType = 1
	// KCGWindowSharingReadWrite: # Discussion
	KCGWindowSharingReadWrite CGWindowSharingType = 2
)

func (CGWindowSharingType) String added in v0.5.1

func (e CGWindowSharingType) String() string

Jump to

Keyboard shortcuts

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