coregraphics

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 8 Imported by: 0

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.

Geometric Data Types

  • CGFloat: The basic type for floating-point scalar values in Core Graphics and related frameworks.
  • CGPoint
  • CGSize: A structure that contains width and height values.
  • CGRect
  • CGVector: A structure that contains a two-dimensional vector.
  • CGAffineTransform

2D Drawing

Colors and Fonts

Working with PDF Documents

  • CGPDFDocument: A document that contains PDF (Portable Document Format) drawing information.

Utility and Support Classes

Services

Classes

  • CGRenderingBufferProvider

Enumerations

  • CGBitmapLayout
  • CGComponent
  • CGContentToneMappingInfo
  • CGImageComponentInfo

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
	// 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
	// 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
	// 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
	// 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
	// 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
	// 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 CGAffineTransformConcat

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

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

func CGAffineTransformEqualToTransform

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

CGAffineTransformEqualToTransform checks whether two affine transforms are equal.

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

func CGAffineTransformInvert

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

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.

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.

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.

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.

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.

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

func CGAffineTransformRotate

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

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

func CGAffineTransformScale

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

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

func CGAffineTransformTranslate

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

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.

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.

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.

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.

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.

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.

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

func CGColorConversionInfoGetTypeID

func CGColorConversionInfoGetTypeID() uint

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

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.

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.

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.

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

func CGColorGetNumberOfComponents

func CGColorGetNumberOfComponents(color CGColorRef) uintptr

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

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.

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

func CGColorRelease

func CGColorRelease(color CGColorRef)

CGColorRelease decrements the retain count of a color.

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.

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

func CGColorSpaceCopyName

func CGColorSpaceCopyName(space CGColorSpaceRef) corefoundation.CFStringRef

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

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.

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

func CGColorSpaceGetColorTable

func CGColorSpaceGetColorTable(space CGColorSpaceRef, table *uint8)

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

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.

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

func CGColorSpaceGetNumberOfComponents

func CGColorSpaceGetNumberOfComponents(space CGColorSpaceRef) uintptr

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

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.

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

func CGColorSpaceIsWideGamutRGB

func CGColorSpaceIsWideGamutRGB(arg0 CGColorSpaceRef) bool

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

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

func CGColorSpaceRelease

func CGColorSpaceRelease(space CGColorSpaceRef)

CGColorSpaceRelease decrements the retain count of a color space.

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.

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

func CGContextAddArc

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

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

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.

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 .

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.

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 .

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.

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.

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.

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.

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.

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.

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.

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

func CGContextBeginTransparencyLayer

func CGContextBeginTransparencyLayer(c CGContextRef, auxiliaryInfo corefoundation.CFDictionaryRef)

CGContextBeginTransparencyLayer begins a transparency layer.

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.

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.

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.

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.

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.

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.

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

func CGContextClosePath

func CGContextClosePath(c CGContextRef)

CGContextClosePath closes and terminates the current path’s subpath.

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.

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.

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.

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.

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.

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.

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.

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

func CGContextDrawImage

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

CGContextDrawImage draws an image into a graphics context.

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

func CGContextDrawLayerAtPoint added in v0.2.0

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

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

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

func CGContextDrawLayerInRect added in v0.2.0

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

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

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.

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 int)

CGContextDrawPDFDocument.

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.

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.

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.

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.

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.

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.

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.

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.

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

func CGContextEndTransparencyLayer

func CGContextEndTransparencyLayer(c CGContextRef)

CGContextEndTransparencyLayer ends a transparency layer.

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.

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.

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.

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.

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.

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

func CGContextGetCTM

CGContextGetCTM returns the current transformation matrix.

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.

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

func CGContextGetPathBoundingBox

func CGContextGetPathBoundingBox(c CGContextRef) corefoundation.CGRect

CGContextGetPathBoundingBox returns the smallest rectangle that contains the current path.

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.

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

func CGContextGetTextMatrix

func CGContextGetTextMatrix(c CGContextRef) corefoundation.CGAffineTransform

CGContextGetTextMatrix returns the current text matrix.

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

func CGContextGetTypeID

func CGContextGetTypeID() uint

CGContextGetTypeID returns the type identifier for a graphics context.

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.

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.

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.

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.

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.

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.

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

func CGContextRestoreGState

func CGContextRestoreGState(c CGContextRef)

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

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.

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.

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.

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.

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.

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.

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.

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.

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

func CGContextSetBlendMode added in v0.2.0

func CGContextSetBlendMode(c CGContextRef, mode uintptr)

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

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.

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.

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.

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

func CGContextSetEDRTargetHeadroom

func CGContextSetEDRTargetHeadroom(c CGContextRef, headroom float32) bool

CGContextSetEDRTargetHeadroom.

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

func CGContextSetFillColor

func CGContextSetFillColor(c CGContextRef, components *float64)

CGContextSetFillColor sets the current fill color.

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.

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.

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.

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.

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.

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

func CGContextSetFontSize

func CGContextSetFontSize(c CGContextRef, size float64)

CGContextSetFontSize sets the current font size.

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.

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.

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.

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

func CGContextSetLineCap added in v0.2.0

func CGContextSetLineCap(c CGContextRef, cap_ uintptr)

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

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.

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

func CGContextSetLineJoin added in v0.2.0

func CGContextSetLineJoin(c CGContextRef, join uintptr)

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

func CGContextSetStrokeColor

func CGContextSetStrokeColor(c CGContextRef, components *float64)

CGContextSetStrokeColor sets the current stroke color.

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.

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.

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.

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.

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

func CGContextSetTextMatrix

func CGContextSetTextMatrix(c CGContextRef, t corefoundation.CGAffineTransform)

CGContextSetTextMatrix sets the current text matrix.

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.

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

func CGContextShowGlyphsAtPositions added in v0.2.0

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

CGContextShowGlyphsAtPositions draws glyphs at the provided position.

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.

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.

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

func CGContextStrokePath

func CGContextStrokePath(c CGContextRef)

CGContextStrokePath paints a line along the current path.

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

func CGContextStrokeRect

func CGContextStrokeRect(c CGContextRef, rect corefoundation.CGRect)

CGContextStrokeRect paints a rectangular path.

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.

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

func CGContextSynchronize

func CGContextSynchronize(c CGContextRef)

CGContextSynchronize marks a window context for update.

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

func CGContextTranslateCTM

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

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

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

func CGDataConsumerGetTypeID

func CGDataConsumerGetTypeID() uint

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

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

func CGDataConsumerRelease

func CGDataConsumerRelease(consumer CGDataConsumerRef)

CGDataConsumerRelease decrements the retain count of a data consumer.

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.

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

func CGDataProviderGetTypeID

func CGDataProviderGetTypeID() uint

CGDataProviderGetTypeID returns the Core Foundation type identifier for data providers.

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

func CGDataProviderRelease

func CGDataProviderRelease(provider CGDataProviderRef)

CGDataProviderRelease decrements the retain count of a data provider.

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

func CGDirectDisplayCopyCurrentMetalDevice

func CGDirectDisplayCopyCurrentMetalDevice(display uint32) metal.MTLDeviceObject

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

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

func CGDisplayBounds

func CGDisplayBounds(display uint32) corefoundation.CGRect

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

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

func CGDisplayCopyAllDisplayModes

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

CGDisplayCopyAllDisplayModes returns information about the currently available display modes.

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

func CGDisplayGammaTableCapacity

func CGDisplayGammaTableCapacity(display uint32) uint32

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

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

func CGDisplayIsActive added in v0.2.0

func CGDisplayIsActive(display uint32) objectivec.IObject

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

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

func CGDisplayIsAlwaysInMirrorSet added in v0.2.0

func CGDisplayIsAlwaysInMirrorSet(display uint32) objectivec.IObject

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

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

func CGDisplayIsAsleep added in v0.2.0

func CGDisplayIsAsleep(display uint32) objectivec.IObject

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

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

func CGDisplayIsBuiltin added in v0.2.0

func CGDisplayIsBuiltin(display uint32) objectivec.IObject

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

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

func CGDisplayIsInHWMirrorSet added in v0.2.0

func CGDisplayIsInHWMirrorSet(display uint32) objectivec.IObject

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

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

func CGDisplayIsInMirrorSet added in v0.2.0

func CGDisplayIsInMirrorSet(display uint32) objectivec.IObject

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

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

func CGDisplayIsMain added in v0.2.0

func CGDisplayIsMain(display uint32) objectivec.IObject

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

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

func CGDisplayIsOnline added in v0.2.0

func CGDisplayIsOnline(display uint32) objectivec.IObject

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

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

func CGDisplayIsStereo added in v0.2.0

func CGDisplayIsStereo(display uint32) objectivec.IObject

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

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

func CGDisplayMirrorsDisplay

func CGDisplayMirrorsDisplay(display uint32) uint32

CGDisplayMirrorsDisplay for a secondary display in a mirroring set, returns the primary display.

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

func CGDisplayModeGetHeight

func CGDisplayModeGetHeight(mode CGDisplayModeRef) uintptr

CGDisplayModeGetHeight returns the height of the specified display mode.

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.

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.

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

func CGDisplayModeGetRefreshRate

func CGDisplayModeGetRefreshRate(mode CGDisplayModeRef) float64

CGDisplayModeGetRefreshRate returns the refresh rate of the specified display mode.

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

func CGDisplayModeGetTypeID

func CGDisplayModeGetTypeID() uint

CGDisplayModeGetTypeID returns the type identifier of Quartz display modes.

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.

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.

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

func CGDisplayModeRelease

func CGDisplayModeRelease(mode CGDisplayModeRef)

CGDisplayModeRelease releases a Core Graphics display mode.

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

func CGDisplayModelNumber

func CGDisplayModelNumber(display uint32) uint32

CGDisplayModelNumber returns the model number of a display monitor.

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

func CGDisplayPixelsHigh

func CGDisplayPixelsHigh(display uint32) uintptr

CGDisplayPixelsHigh returns the display height in pixel units.

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

func CGDisplayPixelsWide

func CGDisplayPixelsWide(display uint32) uintptr

CGDisplayPixelsWide returns the display width in pixel units.

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

func CGDisplayPrimaryDisplay

func CGDisplayPrimaryDisplay(display uint32) uint32

CGDisplayPrimaryDisplay returns the primary display in a hardware mirroring set.

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

func CGDisplayRestoreColorSyncSettings

func CGDisplayRestoreColorSyncSettings()

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

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

func CGDisplayRotation

func CGDisplayRotation(display uint32) float64

CGDisplayRotation returns the rotation angle of a display in degrees.

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

func CGDisplayScreenSize

func CGDisplayScreenSize(display uint32) corefoundation.CGSize

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

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

func CGDisplaySerialNumber

func CGDisplaySerialNumber(display uint32) uint32

CGDisplaySerialNumber returns the serial number of a display monitor.

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

func CGDisplayUnitNumber

func CGDisplayUnitNumber(display uint32) uint32

CGDisplayUnitNumber returns the logical unit number of a display.

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

func CGDisplayUsesOpenGLAcceleration added in v0.2.0

func CGDisplayUsesOpenGLAcceleration(display uint32) objectivec.IObject

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

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

func CGDisplayVendorNumber

func CGDisplayVendorNumber(display uint32) uint32

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

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

func CGEventCreateData

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

CGEventCreateData returns a flattened data representation of a Quartz event.

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.

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.

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.

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

func CGEventGetTypeID

func CGEventGetTypeID() uint

CGEventGetTypeID returns the type identifier for the opaque type CGEventRef.

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.

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.

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.

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.

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.

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

func CGEventSetDoubleValueField

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

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

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.

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.

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.

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.

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.

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).

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.

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.

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

func CGEventSourceGetLocalEventsSuppressionInterval

func CGEventSourceGetLocalEventsSuppressionInterval(source CGEventSourceRef) float64

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

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.

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

func CGEventSourceGetTypeID

func CGEventSourceGetTypeID() uint

CGEventSourceGetTypeID returns the type identifier for the opaque type CGEventSourceRef.

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.

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

func CGEventSourceKeyState

func CGEventSourceKeyState(stateID CGEventSourceStateID, key uint16) bool

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

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

func CGEventSourceSecondsSinceLastEventType

func CGEventSourceSecondsSinceLastEventType(stateID CGEventSourceStateID, eventType CGEventType) float64

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

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.

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.

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

func CGEventSourceSetLocalEventsSuppressionInterval

func CGEventSourceSetLocalEventsSuppressionInterval(source CGEventSourceRef, seconds float64)

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

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.

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.

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

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.

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

func CGEventTapEnable

func CGEventTapEnable(tap corefoundation.CFMachPort, enable bool)

CGEventTapEnable enables or disables an event tap.

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

func CGEventTapIsEnabled

func CGEventTapIsEnabled(tap corefoundation.CFMachPort) bool

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

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.

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.

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.

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

func CGFontCopyGlyphNameForGlyph added in v0.2.0

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

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

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.

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.

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.

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.

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.

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

func CGFontCreatePostScriptEncoding added in v0.2.0

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

CGFontCreatePostScriptEncoding creates a PostScript encoding of a font.

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 uintptr, count uintptr, encoding uintptr) corefoundation.CFDataRef

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

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

func CGFontGetAscent

func CGFontGetAscent(font CGFontRef) int

CGFontGetAscent returns the ascent of a font.

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

func CGFontGetCapHeight

func CGFontGetCapHeight(font CGFontRef) int

CGFontGetCapHeight returns the cap height of a font.

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

func CGFontGetDescent

func CGFontGetDescent(font CGFontRef) int

CGFontGetDescent returns the descent of a font.

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.

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

func CGFontGetGlyphAdvances added in v0.2.0

func CGFontGetGlyphAdvances(font CGFontRef, glyphs uintptr, count uintptr, advances []int) bool

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

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

func CGFontGetGlyphBBoxes added in v0.2.0

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

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

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

func CGFontGetGlyphWithGlyphName added in v0.2.0

func CGFontGetGlyphWithGlyphName(font CGFontRef, name corefoundation.CFStringRef) objectivec.IObject

CGFontGetGlyphWithGlyphName returns the glyph for the glyph name associated with the specified font object.

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

func CGFontGetItalicAngle

func CGFontGetItalicAngle(font CGFontRef) float64

CGFontGetItalicAngle returns the italic angle of a font.

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

func CGFontGetLeading

func CGFontGetLeading(font CGFontRef) int

CGFontGetLeading returns the leading of a font.

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.

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.

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.

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

func CGFontGetUnitsPerEm

func CGFontGetUnitsPerEm(font CGFontRef) int

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

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

func CGFontGetXHeight

func CGFontGetXHeight(font CGFontRef) int

CGFontGetXHeight returns the x-height of a font.

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

func CGFontRelease

func CGFontRelease(font CGFontRef)

CGFontRelease decrements the retain count of a font.

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

func CGFunctionGetTypeID

func CGFunctionGetTypeID() uint

CGFunctionGetTypeID returns the type identifier for Core Graphics function objects.

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

func CGFunctionRelease

func CGFunctionRelease(function CGFunctionRef)

CGFunctionRelease decrements the retain count of a function object.

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.

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

func CGGradientGetContentHeadroom

func CGGradientGetContentHeadroom(gradient CGGradientRef) float32

CGGradientGetContentHeadroom.

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

func CGGradientGetTypeID

func CGGradientGetTypeID() uint

CGGradientGetTypeID returns the Core Foundation type identifier for CGGradient objects.

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

func CGGradientRelease

func CGGradientRelease(gradient CGGradientRef)

CGGradientRelease decrements the retain count of a CGGradient object.

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

func CGImageCalculateContentAverageLightLevel

func CGImageCalculateContentAverageLightLevel(image CGImageRef) float32

CGImageCalculateContentAverageLightLevel.

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

func CGImageCalculateContentHeadroom

func CGImageCalculateContentHeadroom(image CGImageRef) float32

CGImageCalculateContentHeadroom.

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

func CGImageContainsImageSpecificToneMappingMetadata

func CGImageContainsImageSpecificToneMappingMetadata(image CGImageRef) bool

CGImageContainsImageSpecificToneMappingMetadata.

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.

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.

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.

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

func CGImageGetContentAverageLightLevel

func CGImageGetContentAverageLightLevel(image CGImageRef) float32

CGImageGetContentAverageLightLevel.

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

func CGImageGetDecode

func CGImageGetDecode(image CGImageRef) *float64

CGImageGetDecode returns the decode array for a bitmap image.

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

func CGImageGetHeight

func CGImageGetHeight(image CGImageRef) uintptr

CGImageGetHeight returns the height of a bitmap image.

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.

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

func CGImageGetTypeID

func CGImageGetTypeID() uint

CGImageGetTypeID returns the type identifier for CGImage objects.

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.

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.

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.

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

func CGImageRelease

func CGImageRelease(image CGImageRef)

CGImageRelease decrements the retain count of a bitmap image.

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

func CGLayerCreateWithContext added in v0.2.0

func CGLayerCreateWithContext(context CGContextRef, size corefoundation.CGSize, auxiliaryInfo corefoundation.CFDictionaryRef) unsafe.Pointer

CGLayerCreateWithContext creates a layer object that is associated with a graphics context.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayer/init(_:size:auxiliaryInfo:)

func CGLayerGetSize added in v0.2.0

func CGLayerGetSize(layer unsafe.Pointer) corefoundation.CGSize

CGLayerGetSize returns the width and height of a layer object.

See: https://developer.apple.com/documentation/CoreGraphics/CGLayer/size

func CGLayerGetTypeID

func CGLayerGetTypeID() uint

CGLayerGetTypeID returns the unique type identifier used for CGLayer objects.

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

func CGLayerRelease added in v0.2.0

func CGLayerRelease(layer unsafe.Pointer)

CGLayerRelease decrements the retain count of a layer object.

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

func CGLayerRetain added in v0.2.0

func CGLayerRetain(layer unsafe.Pointer) unsafe.Pointer

CGLayerRetain increments the retain count of a layer object.

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

func CGMainDisplayID

func CGMainDisplayID() uint32

CGMainDisplayID returns the display ID of the main display.

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

func CGOpenGLDisplayMaskToDisplayID

func CGOpenGLDisplayMaskToDisplayID(mask CGOpenGLDisplayMask) uint32

CGOpenGLDisplayMaskToDisplayID maps an OpenGL display mask to a display ID.

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

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.

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.

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.

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.

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.

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

func CGPDFArrayGetName

func CGPDFArrayGetName(array CGPDFArrayRef, index uintptr, value string) 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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

func CGPDFContextClose

func CGPDFContextClose(context CGContextRef)

CGPDFContextClose closes a PDF document.

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.

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

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.

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

func CGPDFContextSetIDTree

func CGPDFContextSetIDTree(context CGContextRef, IDTreeDictionary CGPDFDictionaryRef)

CGPDFContextSetIDTree.

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

func CGPDFContextSetPageTagStructureTree

func CGPDFContextSetPageTagStructureTree(context CGContextRef, pageTagStructureTreeDictionary corefoundation.CFDictionaryRef)

CGPDFContextSetPageTagStructureTree.

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

func CGPDFContextSetParentTree

func CGPDFContextSetParentTree(context CGContextRef, parentTreeDictionary CGPDFDictionaryRef)

CGPDFContextSetParentTree.

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.

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

func CGPDFDictionaryApplyFunction

func CGPDFDictionaryApplyFunction(dict CGPDFDictionaryRef, function CGPDFDictionaryApplierFunction, info unsafe.Pointer)

CGPDFDictionaryApplyFunction applies a function to each entry in a dictionary.

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.

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.

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.

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.

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.

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

func CGPDFDictionaryGetName

func CGPDFDictionaryGetName(dict CGPDFDictionaryRef, key string, value string) 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.

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.

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.

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.

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.

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

func CGPDFDocumentAllowsCopying

func CGPDFDocumentAllowsCopying(document CGPDFDocumentRef) bool

CGPDFDocumentAllowsCopying returns whether the specified PDF document allows copying.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/allowsCopying

func CGPDFDocumentAllowsPrinting

func CGPDFDocumentAllowsPrinting(document CGPDFDocumentRef) bool

CGPDFDocumentAllowsPrinting returns whether a PDF document allows printing.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/allowsPrinting

func CGPDFDocumentGetArtBox deprecated

func CGPDFDocumentGetArtBox(document CGPDFDocumentRef, page int) corefoundation.CGRect

CGPDFDocumentGetArtBox returns the art box of a page in a PDF document.

Deprecated: Deprecated since macOS 10.5.

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

func CGPDFDocumentGetBleedBox deprecated

func CGPDFDocumentGetBleedBox(document CGPDFDocumentRef, page int) corefoundation.CGRect

CGPDFDocumentGetBleedBox returns the bleed box of a page in a PDF document.

Deprecated: Deprecated since macOS 10.5.

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

func CGPDFDocumentGetCropBox deprecated

func CGPDFDocumentGetCropBox(document CGPDFDocumentRef, page int) corefoundation.CGRect

CGPDFDocumentGetCropBox returns the crop box of a page in a PDF document.

Deprecated: Deprecated since macOS 10.5.

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

func CGPDFDocumentGetMediaBox deprecated

func CGPDFDocumentGetMediaBox(document CGPDFDocumentRef, page int) corefoundation.CGRect

CGPDFDocumentGetMediaBox returns the media box of a page in a PDF document.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/numberOfPages

func CGPDFDocumentGetRotationAngle deprecated

func CGPDFDocumentGetRotationAngle(document CGPDFDocumentRef, page int) int

CGPDFDocumentGetRotationAngle returns the rotation angle of a page in a PDF document.

Deprecated: Deprecated since macOS 10.5.

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

func CGPDFDocumentGetTrimBox deprecated

func CGPDFDocumentGetTrimBox(document CGPDFDocumentRef, page int) corefoundation.CGRect

CGPDFDocumentGetTrimBox returns the trim box of a page in a PDF document.

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.

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

func CGPDFDocumentGetVersion

func CGPDFDocumentGetVersion(document CGPDFDocumentRef, majorVersion []int, minorVersion []int)

CGPDFDocumentGetVersion returns the major and minor version numbers of a Core Graphics PDF document.

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.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/isUnlocked

func CGPDFDocumentRelease

func CGPDFDocumentRelease(document CGPDFDocumentRef)

CGPDFDocumentRelease decrements the retain count of a PDF document.

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.

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.

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

func CGPDFOperatorTableRelease

func CGPDFOperatorTableRelease(table CGPDFOperatorTableRef)

CGPDFOperatorTableRelease decrements the retain count of a CGPDFOperatorTable object.

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.

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.

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

func CGPDFPageGetDrawingTransform

func CGPDFPageGetDrawingTransform(page CGPDFPageRef, box CGPDFBox, rect corefoundation.CGRect, rotate int, preserveAspectRatio bool) corefoundation.CGAffineTransform

CGPDFPageGetDrawingTransform returns the affine transform that maps a box to a given rectangle on a PDF page.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/pageNumber

func CGPDFPageGetRotationAngle

func CGPDFPageGetRotationAngle(page CGPDFPageRef) int

CGPDFPageGetRotationAngle returns the rotation angle of a PDF page, in degrees.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/rotationAngle

func CGPDFPageGetTypeID

func CGPDFPageGetTypeID() uint

CGPDFPageGetTypeID returns the CFType ID for PDF page objects.

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

func CGPDFPageRelease

func CGPDFPageRelease(page CGPDFPageRef)

CGPDFPageRelease decrements the retain count of a PDF page.

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.

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.

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.

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.

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

func CGPDFScannerPopName

func CGPDFScannerPopName(scanner CGPDFScannerRef, value string) bool

CGPDFScannerPopName retrieves a character string from the scanner stack.

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.

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.

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.

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.

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

func CGPDFScannerRelease

func CGPDFScannerRelease(scanner CGPDFScannerRef)

CGPDFScannerRelease decrements the retain count of a scanner object.

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.

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

func CGPDFStreamCopyData

func CGPDFStreamCopyData(stream CGPDFStreamRef, format *CGPDFDataFormat) corefoundation.CFDataRef

CGPDFStreamCopyData returns the data associated with a PDF stream.

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

func CGPDFStringCopyDate

func CGPDFStringCopyDate(string_ CGPDFStringRef) corefoundation.CFDateRef

CGPDFStringCopyDate converts a string to a date.

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.

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.

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.

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

func CGPSConverterAbort

func CGPSConverterAbort(converter CGPSConverterRef) bool

CGPSConverterAbort tells a PostScript converter to abort a conversion at the next available opportunity.

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.

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.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGPSConverter/isConverting

func CGPathApply

func CGPathApply(path CGPathRef, info unsafe.Pointer, function CGPathApplierFunction)

CGPathApply for each element in a graphics path, calls a custom applier function.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/apply(info:function:)

func CGPathCloseSubpath

func CGPathCloseSubpath(path CGMutablePathRef)

CGPathCloseSubpath closes and completes a subpath in a mutable graphics path.

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.

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

func CGPathCreateSeparateComponents

func CGPathCreateSeparateComponents(path CGPathRef, evenOddFillRule bool) corefoundation.CFArrayRef

CGPathCreateSeparateComponents.

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.

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.

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.

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.

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.

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

func CGPathIntersectsPath

func CGPathIntersectsPath(path1 CGPathRef, path2 CGPathRef, evenOddFillRule bool) bool

CGPathIntersectsPath.

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.

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.

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

func CGPathRelease

func CGPathRelease(path CGPathRef)

CGPathRelease decrements the retain count of a graphics path.

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

func CGPatternGetTypeID

func CGPatternGetTypeID() uint

CGPatternGetTypeID returns the type identifier for Core Graphics patterns.

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.

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.

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.

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

func CGPointEqualToPoint deprecated

func CGPointEqualToPoint(point1 corefoundation.CGPoint, point2 corefoundation.CGPoint) bool

CGPointEqualToPoint returns whether two points are equal.

Deprecated: The [CGPoint](<doc://com.apple.documentation/documentation/CoreFoundation/CGPoint>) type adopts the [Equatable] protocol; use the `==` operator 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.

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

func CGPreflightListenEventAccess

func CGPreflightListenEventAccess() bool

CGPreflightListenEventAccess.

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

func CGPreflightPostEventAccess

func CGPreflightPostEventAccess() bool

CGPreflightPostEventAccess.

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

func CGPreflightScreenCaptureAccess

func CGPreflightScreenCaptureAccess() bool

CGPreflightScreenCaptureAccess.

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.

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.

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.

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.

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.

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

func CGRectEqualToRect deprecated

func CGRectEqualToRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool

CGRectEqualToRect returns whether two rectangles are equal in size and position.

Deprecated: The [CGRect](<doc://com.apple.documentation/documentation/CoreFoundation/CGRect>) type adopts the [Equatable] protocol; use the `==` operator instead.

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

func CGRectGetHeight

func CGRectGetHeight(rect corefoundation.CGRect) float64

CGRectGetHeight returns the height of a rectangle.

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.

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.

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.

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.

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.

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.

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

func CGRectGetWidth

func CGRectGetWidth(rect corefoundation.CGRect) float64

CGRectGetWidth returns the width of a rectangle.

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.

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.

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

func CGRectIntersection

CGRectIntersection returns the intersection of two rectangles.

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.

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.

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

func CGRectIsInfinite

func CGRectIsInfinite(rect corefoundation.CGRect) bool

CGRectIsInfinite returns whether a rectangle is infinite.

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.

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.

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.

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.

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

func CGRectUnion

CGRectUnion returns the smallest rectangle that contains the two source rectangles.

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

func CGRenderingBufferProviderGetTypeID

func CGRenderingBufferProviderGetTypeID() uint

CGRenderingBufferProviderGetTypeID.

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

func CGRequestListenEventAccess

func CGRequestListenEventAccess() bool

CGRequestListenEventAccess.

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

func CGRequestScreenCaptureAccess

func CGRequestScreenCaptureAccess() bool

CGRequestScreenCaptureAccess.

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

func CGRestorePermanentDisplayConfiguration

func CGRestorePermanentDisplayConfiguration()

CGRestorePermanentDisplayConfiguration restores the permanent display configuration settings for the current user.

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

func CGSessionCopyCurrentDictionary

func CGSessionCopyCurrentDictionary() corefoundation.CFDictionaryRef

CGSessionCopyCurrentDictionary returns information about the caller’s window server session.

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

func CGShadingGetContentHeadroom

func CGShadingGetContentHeadroom(shading CGShadingRef) float32

CGShadingGetContentHeadroom.

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.

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

func CGShadingRelease

func CGShadingRelease(shading CGShadingRef)

CGShadingRelease decrements the retain count of a shading object.

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.

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.

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

func CGSizeEqualToSize deprecated

func CGSizeEqualToSize(size1 corefoundation.CGSize, size2 corefoundation.CGSize) bool

CGSizeEqualToSize returns whether two sizes are equal.

Deprecated: The [CGSize](<doc://com.apple.documentation/documentation/CoreFoundation/CGSize>) type adopts the [Equatable] protocol; use the `==` operator 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.

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.

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.

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.

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

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 int

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

const (
	// Deprecated.
	KCGBitmapByteOrder16Big CGBitmapInfo = 12288
	// Deprecated.
	KCGBitmapByteOrder16Little CGBitmapInfo = 4096
	// Deprecated.
	KCGBitmapByteOrder32Big CGBitmapInfo = 12289
	// Deprecated.
	KCGBitmapByteOrder32Little CGBitmapInfo = 8192
	// Deprecated.
	KCGBitmapByteOrderDefault CGBitmapInfo = 0
	// Deprecated.
	KCGBitmapFloatComponents CGBitmapInfo = 256
)
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.

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.

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

func (CGBitmapInfo) String

func (e CGBitmapInfo) String() string

type CGBitmapParameters

type CGBitmapParameters struct {
	AlignedBytesPerRow    uintptr
	ByteOrder             int32
	BytesPerPixel         uintptr
	ColorSpace            CGColorSpaceRef
	Component             CGComponent
	EdrTargetHeadroom     float32
	Format                CGImagePixelFormatInfo
	HasPremultipliedAlpha bool
	Height                uintptr
	Layout                CGBitmapLayout
	Width                 uintptr
}

C struct types CGBitmapParameters

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/CoreGraphics/CGBitmapParameters-1cm7j

type CGBlendMode

type CGBlendMode int

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

const (
	// 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
	// KCGBlendModeExclusion: Produces an effect similar to that produced by , but with lower contrast.
	KCGBlendModeExclusion CGBlendMode = 11
	// KCGBlendModeHue: Uses the luminance and saturation values of the background with the hue of the source image.
	KCGBlendModeHue CGBlendMode = 12
	// 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
	// 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
	// KCGBlendModeXOR: .
	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 int

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

const (
	// KCGCaptureNoFill: Disables fill with black.
	KCGCaptureNoFill CGCaptureOptions = 1
)

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorConversionInfo/init(src:dst:)

func CGColorConversionInfoCreateForToneMapping deprecated

func CGColorConversionInfoCreateForToneMapping(from CGColorSpaceRef, source_headroom float32, to CGColorSpaceRef, target_headroom float32, method CGToneMapping, options corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) CGColorConversionInfoRef

CGColorConversionInfoCreateForToneMapping.

Deprecated: declared Swift name 'init(src:srcHeadroom:dst:dstHeadroom:toneMapping:options:)' was adjusted to 'init(src:srcHeadroom:dst:dstHeadroom:toneMapping:options:_:)' because it does not have the correct number of parameters (6 vs. 7); please report this to its maintainer

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.

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

type CGColorConversionInfoTransformType

type CGColorConversionInfoTransformType int

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 int

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

const (
	KCGColorModelCMYK    CGColorModel = 4
	KCGColorModelDeviceN CGColorModel = 16
	KCGColorModelGray    CGColorModel = 1
	KCGColorModelLab     CGColorModel = 8
	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.

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.

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.

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.

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.

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.

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.

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.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGColor/init(srgbRed: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.

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.

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

func CGColorRetain

func CGColorRetain(color CGColorRef) CGColorRef

CGColorRetain increments the retain count of a color.

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

type CGColorRenderingIntent

type CGColorRenderingIntent int

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

const (
	// 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
)

func CGImageGetRenderingIntent

func CGImageGetRenderingIntent(image CGImageRef) CGColorRenderingIntent

CGImageGetRenderingIntent returns the rendering intent setting for a bitmap image.

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

func (CGColorRenderingIntent) String

func (e CGColorRenderingIntent) String() string

type CGColorSpaceModel

type CGColorSpaceModel int

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.

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

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.

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.

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

func CGColorSpaceCreateCalibratedGray

func CGColorSpaceCreateCalibratedGray(whitePoint float64, blackPoint float64, gamma float64) CGColorSpaceRef

CGColorSpaceCreateCalibratedGray creates a calibrated grayscale color space.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(calibratedRGBWhitePoint:blackPoint:gamma:matrix:)

func CGColorSpaceCreateDeviceCMYK

func CGColorSpaceCreateDeviceCMYK() CGColorSpaceRef

CGColorSpaceCreateDeviceCMYK creates a device-dependent CMYK color space.

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

func CGColorSpaceCreateDeviceGray

func CGColorSpaceCreateDeviceGray() CGColorSpaceRef

CGColorSpaceCreateDeviceGray creates a device-dependent grayscale color space.

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

func CGColorSpaceCreateDeviceRGB

func CGColorSpaceCreateDeviceRGB() CGColorSpaceRef

CGColorSpaceCreateDeviceRGB creates a device-dependent RGB color space.

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

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(iccBasedNComponents:range:profile:alternate:)

func CGColorSpaceCreateIndexed

func CGColorSpaceCreateIndexed(baseSpace CGColorSpaceRef, lastIndex uintptr, colorTable string) CGColorSpaceRef

CGColorSpaceCreateIndexed creates an indexed color space, consisting of colors specified by a color lookup table.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGColorSpace/init(labWhitePoint:blackPoint:range:)

func CGColorSpaceCreatePattern

func CGColorSpaceCreatePattern(baseSpace CGColorSpaceRef) CGColorSpaceRef

CGColorSpaceCreatePattern creates a pattern color space.

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

func CGColorSpaceCreateWithICCData

func CGColorSpaceCreateWithICCData(data corefoundation.CFTypeRef) CGColorSpaceRef

CGColorSpaceCreateWithICCData creates an ICC-based color space using the ICC profile contained in the specified data.

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

func CGColorSpaceCreateWithName

func CGColorSpaceCreateWithName(name corefoundation.CFStringRef) CGColorSpaceRef

CGColorSpaceCreateWithName creates a specified type of Quartz color space.

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

func CGColorSpaceCreateWithPropertyList

func CGColorSpaceCreateWithPropertyList(plist corefoundation.CFPropertyListRef) CGColorSpaceRef

CGColorSpaceCreateWithPropertyList creates a color space from a property list.

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.

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.

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

func CGDisplayCopyColorSpace

func CGDisplayCopyColorSpace(display uint32) CGColorSpaceRef

CGDisplayCopyColorSpace returns the color space for a display.

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

func CGImageGetColorSpace

func CGImageGetColorSpace(image CGImageRef) CGColorSpaceRef

CGImageGetColorSpace return the color space for a bitmap image.

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

type CGConfigureOption

type CGConfigureOption int

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

type CGContextRef

type CGContextRef uintptr

CGContextRef is a Quartz 2D drawing environment.

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

func CGBitmapContextCreateAdaptive

func CGBitmapContextCreateAdaptive(width uintptr, height uintptr, auxiliaryInfo corefoundation.CFDictionaryRef, onResolve bool) CGContextRef

CGBitmapContextCreateAdaptive.

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

func CGContextRetain

func CGContextRetain(c CGContextRef) CGContextRef

CGContextRetain increments the retain count of a graphics context.

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

func CGDisplayGetDrawingContext

func CGDisplayGetDrawingContext(display uint32) CGContextRef

CGDisplayGetDrawingContext returns a graphics context suitable for drawing to a captured display.

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

func CGLayerGetContext added in v0.2.0

func CGLayerGetContext(layer unsafe.Pointer) CGContextRef

CGLayerGetContext returns the graphics context associated with a layer object.

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.

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.

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

type CGDataConsumerCallbacks

type CGDataConsumerCallbacks struct {
	PutBytes        CGDataConsumerPutBytesCallback    // A pointer to a function that copies data to the data consumer. For more information, see [CGDataConsumerPutBytesCallback](<doc://com.apple.coregraphics/documentation/CoreGraphics/CGDataConsumerPutBytesCallback>).
	ReleaseConsumer CGDataConsumerReleaseInfoCallback // 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(unsafe.Pointer, unsafe.Pointer, 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.

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.

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.

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.

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

type CGDataConsumerReleaseInfoCallback

type CGDataConsumerReleaseInfoCallback = func(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            uint                                     // The version of this structure. It should be set to 0.
	GetBytePointer     CGDataProviderGetBytePointerCallback     // A pointer to a function that returns a pointer to the provider’s data. For more information, see [CGDataProviderGetBytePointerCallback](<doc://com.apple.coregraphics/documentation/CoreGraphics/CGDataProviderGetBytePointerCallback>).
	ReleaseBytePointer CGDataProviderReleaseBytePointerCallback // A pointer to a function that Core Graphics calls to release a pointer to the provider’s data. For more information, see [CGDataProviderReleaseBytePointerCallback](<doc://com.apple.coregraphics/documentation/CoreGraphics/CGDataProviderReleaseBytePointerCallback>).
	GetBytesAtPosition CGDataProviderGetBytesAtPositionCallback // A pointer to a function that copies data from the provider.
	ReleaseInfo        CGDataProviderReleaseInfoCallback        // A pointer to a function that handles clean-up for the data provider, or [NULL]. For more information, see [CGDataProviderReleaseInfoCallback](<doc://com.apple.coregraphics/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(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(unsafe.Pointer, unsafe.Pointer, int64, 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(unsafe.Pointer, unsafe.Pointer, 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.

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.

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.

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.

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.

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.

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.

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.

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

type CGDataProviderReleaseBytePointerCallback

type CGDataProviderReleaseBytePointerCallback = func(unsafe.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(unsafe.Pointer, unsafe.Pointer, 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(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(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     uint                              // The version of this structure. It should be set to 0.
	GetBytes    CGDataProviderGetBytesCallback    // A pointer to a function that copies data from the provider. For more information, see [CGDataProviderGetBytesCallback](<doc://com.apple.coregraphics/documentation/CoreGraphics/CGDataProviderGetBytesCallback>).
	SkipForward CGDataProviderSkipForwardCallback // A pointer to a function that Core Graphics calls to advance the stream of data supplied by the provider.
	Rewind      CGDataProviderRewindCallback      // A pointer to a function Core Graphics calls to return the provider to the beginning of the data stream. For more information, see [CGDataProviderRewindCallback](<doc://com.apple.coregraphics/documentation/CoreGraphics/CGDataProviderRewindCallback>).
	ReleaseInfo CGDataProviderReleaseInfoCallback // A pointer to a function that handles clean-up for the data provider, or [NULL]. For more information, see [CGDataProviderReleaseInfoCallback](<doc://com.apple.coregraphics/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(unsafe.Pointer, 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

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 int

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 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 uint32) CGDisplayModeRef

CGDisplayCopyDisplayMode returns information about a display’s current configuration.

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

func CGDisplayModeRetain

func CGDisplayModeRetain(mode CGDisplayModeRef) CGDisplayModeRef

CGDisplayModeRetain retains a Core Graphics display mode.

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

type CGDisplayReconfigurationCallBack

type CGDisplayReconfigurationCallBack = func(uint, uint, 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, IOSurfaceRef, *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 int

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
	// KCGMouseEventSubtype: Key to access an integer field that encodes the mouse event subtype as a .
	KCGMouseEventSubtype CGDisplayStreamFrameStatus = 0
)

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

type CGDisplayStreamUpdateRectType

type CGDisplayStreamUpdateRectType int

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

type CGError

type CGError int

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  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 float32, token *CGDisplayFadeReservationToken) CGError

CGAcquireDisplayFadeReservation reserves the fade hardware for a specified time interval.

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

func CGAssociateMouseAndMouseCursorPosition added in v0.2.0

func CGAssociateMouseAndMouseCursorPosition(connected uintptr) CGError

CGAssociateMouseAndMouseCursorPosition connects or disconnects the mouse and cursor while an application is in the foreground.

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

func CGBeginDisplayConfiguration

func CGBeginDisplayConfiguration(config *CGDisplayConfigRef) CGError

CGBeginDisplayConfiguration begins a new set of display configuration changes.

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

func CGCancelDisplayConfiguration

func CGCancelDisplayConfiguration(config CGDisplayConfigRef) CGError

CGCancelDisplayConfiguration cancels a set of display configuration changes.

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.

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

func CGCaptureAllDisplaysWithOptions

func CGCaptureAllDisplaysWithOptions(options CGCaptureOptions) CGError

CGCaptureAllDisplaysWithOptions captures all attached displays, using the specified options.

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.

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

func CGConfigureDisplayFadeEffect

func CGConfigureDisplayFadeEffect(config CGDisplayConfigRef, fadeOutSeconds float32, fadeInSeconds float32, fadeRed float32, fadeGreen float32, fadeBlue float32) CGError

CGConfigureDisplayFadeEffect modifies the settings of the built-in fade effect that occurs during a display configuration.

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

func CGConfigureDisplayMirrorOfDisplay

func CGConfigureDisplayMirrorOfDisplay(config CGDisplayConfigRef, display uint32, master uint32) CGError

CGConfigureDisplayMirrorOfDisplay changes the configuration of a mirroring set.

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

func CGConfigureDisplayOrigin

func CGConfigureDisplayOrigin(config CGDisplayConfigRef, display uint32, x int32, y int32) CGError

CGConfigureDisplayOrigin configures the origin of a display relative to the global display coordinate space.

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

func CGConfigureDisplayStereoOperation added in v0.2.0

func CGConfigureDisplayStereoOperation(config CGDisplayConfigRef, display uint32, stereo uintptr, forceBlueLine uintptr) CGError

CGConfigureDisplayStereoOperation enables or disables stereo operation for a display, as part of a display configuration.

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

func CGConfigureDisplayWithDisplayMode

func CGConfigureDisplayWithDisplayMode(config CGDisplayConfigRef, display uint32, mode CGDisplayModeRef, options corefoundation.CFDictionaryRef) CGError

CGConfigureDisplayWithDisplayMode configures the display mode of a display.

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

func CGDisplayCapture

func CGDisplayCapture(display uint32) CGError

CGDisplayCapture obtains exclusive use of a display, preventing other applications and system services from using the display or changing its configuration.

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

func CGDisplayCaptureWithOptions

func CGDisplayCaptureWithOptions(display uint32, options CGCaptureOptions) CGError

CGDisplayCaptureWithOptions obtains exclusive use of a display for an application using the options you specify.

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

func CGDisplayFade added in v0.2.0

func CGDisplayFade(token CGDisplayFadeReservationToken, duration float32, startBlend CGDisplayBlendFraction, endBlend CGDisplayBlendFraction, redBlend float32, greenBlend float32, blueBlend float32, synchronous uintptr) CGError

CGDisplayFade performs a single fade operation.

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

func CGDisplayHideCursor

func CGDisplayHideCursor(display uint32) CGError

CGDisplayHideCursor hides the mouse cursor, and increments the hide cursor count.

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

func CGDisplayMoveCursorToPoint

func CGDisplayMoveCursorToPoint(display uint32, point corefoundation.CGPoint) CGError

CGDisplayMoveCursorToPoint moves the mouse cursor to a specified point relative to the upper-left corner of the display.

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.

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

func CGDisplayRelease

func CGDisplayRelease(display uint32) CGError

CGDisplayRelease releases a captured display.

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.

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

func CGDisplaySetDisplayMode

func CGDisplaySetDisplayMode(display uint32, mode CGDisplayModeRef, options corefoundation.CFDictionaryRef) CGError

CGDisplaySetDisplayMode switches a display to a different mode.

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

func CGDisplaySetStereoOperation added in v0.2.0

func CGDisplaySetStereoOperation(display uint32, stereo uintptr, forceBlueLine uintptr, option CGConfigureOption) CGError

CGDisplaySetStereoOperation immediately enables or disables stereo operation for a display.

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

func CGDisplayShowCursor

func CGDisplayShowCursor(display uint32) CGError

CGDisplayShowCursor decrements the hide cursor count, and shows the mouse cursor if the count is `0`.

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

func CGGetActiveDisplayList

func CGGetActiveDisplayList(maxDisplays uint32, activeDisplays *uint32, displayCount *uint32) CGError

CGGetActiveDisplayList provides a list of displays that are active for drawing.

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

func CGGetDisplayTransferByFormula

func CGGetDisplayTransferByFormula(display uint32, 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.

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

func CGGetDisplayTransferByTable

func CGGetDisplayTransferByTable(display uint32, capacity uint32, redTable *CGGammaValue, greenTable *CGGammaValue, blueTable *CGGammaValue, sampleCount *uint32) CGError

CGGetDisplayTransferByTable gets the values in the RGB gamma tables for a display.

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

func CGGetDisplaysWithOpenGLDisplayMask

func CGGetDisplaysWithOpenGLDisplayMask(mask CGOpenGLDisplayMask, maxDisplays uint32, displays *uint32, matchingDisplayCount *uint32) CGError

CGGetDisplaysWithOpenGLDisplayMask provides a list of displays that corresponds to the bits set in an OpenGL display mask.

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

func CGGetDisplaysWithPoint

func CGGetDisplaysWithPoint(point corefoundation.CGPoint, maxDisplays uint32, displays *uint32, matchingDisplayCount *uint32) CGError

CGGetDisplaysWithPoint provides a list of online displays with bounds that include the specified point.

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

func CGGetDisplaysWithRect

func CGGetDisplaysWithRect(rect corefoundation.CGRect, maxDisplays uint32, displays *uint32, matchingDisplayCount *uint32) CGError

CGGetDisplaysWithRect gets a list of online displays with bounds that intersect the specified rectangle.

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.

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

func CGGetOnlineDisplayList

func CGGetOnlineDisplayList(maxDisplays uint32, onlineDisplays *uint32, displayCount *uint32) CGError

CGGetOnlineDisplayList provides a list of displays that are online (active, mirrored, or sleeping).

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

func CGPostMouseEvent deprecated added in v0.2.0

func CGPostMouseEvent(mouseCursorPosition corefoundation.CGPoint, updateMouseCursorPosition uintptr, buttonCount CGButtonCount, mouseButtonDown uintptr) CGError

CGPostMouseEvent synthesizes a low-level mouse-button event on the local machine.

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.

Deprecated: Deprecated since macOS 10.6.

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

func CGReleaseAllDisplays

func CGReleaseAllDisplays() CGError

CGReleaseAllDisplays releases all captured displays.

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.

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

func CGSetDisplayTransferByByteTable

func CGSetDisplayTransferByByteTable(display uint32, tableSize uint32, redTable *uint8, greenTable *uint8, blueTable *uint8) CGError

CGSetDisplayTransferByByteTable sets the byte values in the 8-bit RGB gamma tables for a display.

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

func CGSetDisplayTransferByFormula

func CGSetDisplayTransferByFormula(display uint32, 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.

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

func CGSetDisplayTransferByTable

func CGSetDisplayTransferByTable(display uint32, 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.

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

func CGWarpMouseCursorPosition

func CGWarpMouseCursorPosition(newCursorPosition corefoundation.CGPoint) CGError

CGWarpMouseCursorPosition moves the mouse cursor without generating events.

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

func (CGError) String

func (e CGError) String() string

type CGEvent

type CGEvent = CGEventRef

type CGEventField

type CGEventField int

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
	// 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
	// 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
	// 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
	// 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 int

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

const (
	KCGEventFilterMaskPermitLocalKeyboardEvents CGEventFilterMask = 2
	KCGEventFilterMaskPermitLocalMouseEvents    CGEventFilterMask = 1
	KCGEventFilterMaskPermitSystemDefinedEvents CGEventFilterMask = 4
)

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.

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

func (CGEventFilterMask) String

func (e CGEventFilterMask) String() string

type CGEventFlags

type CGEventFlags int

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 = 65536
	// KCGEventFlagMaskAlternate: Indicates that the Alt or Option key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskAlternate CGEventFlags = 524288
	// KCGEventFlagMaskCommand: Indicates that the Command key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskCommand CGEventFlags = 1048576
	// KCGEventFlagMaskControl: Indicates that the Control key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskControl CGEventFlags = 262144
	// KCGEventFlagMaskHelp: Indicates that the Help modifier key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskHelp CGEventFlags = 4194304
	// KCGEventFlagMaskNonCoalesced: Indicates that mouse and pen movement events are not being coalesced.
	KCGEventFlagMaskNonCoalesced CGEventFlags = 256
	// KCGEventFlagMaskNumericPad: Identifies key events from the numeric keypad area on extended keyboards.
	KCGEventFlagMaskNumericPad CGEventFlags = 2097152
	// KCGEventFlagMaskSecondaryFn: Indicates that the Fn (Function) key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskSecondaryFn CGEventFlags = 8388608
	// KCGEventFlagMaskShift: Indicates that the Shift key is down for a keyboard, mouse, or flag-changed event.
	KCGEventFlagMaskShift CGEventFlags = 131072
)

func CGEventGetFlags

func CGEventGetFlags(event CGEventRef) CGEventFlags

CGEventGetFlags returns the event flags of a Quartz event.

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.

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

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 int

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  field selectors may be used to obtain tablet-specific data from the mouse event.
	KCGEventMouseSubtypeTabletPoint CGEventMouseSubtype = 1
)

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.

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.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGEvent/init(withDataAllocator:data:)

func CGEventCreateKeyboardEvent

func CGEventCreateKeyboardEvent(source CGEventSourceRef, virtualKey uint16, keyDown bool) CGEventRef

CGEventCreateKeyboardEvent returns a new Quartz keyboard event.

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.

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.

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

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.

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

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.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGEventSource/init(stateID:)

type CGEventSourceStateID

type CGEventSourceStateID int

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.

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

func (CGEventSourceStateID) String

func (e CGEventSourceStateID) String() string

type CGEventSuppressionState

type CGEventSuppressionState int

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
)

func (CGEventSuppressionState) String

func (e CGEventSuppressionState) String() string

type CGEventTapCallBack

type CGEventTapCallBack = func(uintptr, CGEventType, uintptr, unsafe.Pointer) uintptr

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 = unsafe.Pointer

CGEventTapInformation is defines the structure used to report information about event taps.

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

type CGEventTapLocation

type CGEventTapLocation int

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 CGEventTapPlacement

type CGEventTapPlacement int

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.

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

type CGEventType

type CGEventType int

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 = 4294967294
	// KCGEventTapDisabledByUserInput: Specifies an event indicating the event tap is disabled because of user input.
	KCGEventTapDisabledByUserInput CGEventType = 4294967295
)

func CGEventGetType

func CGEventGetType(event CGEventRef) CGEventType

CGEventGetType returns the event type of a Quartz event (left mouse down, for example).

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

func (CGEventType) String

func (e CGEventType) String() string

type CGFont

type CGFont = 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

const KCGFontIndexMax CGFontIndex = 65534

KCGFontIndexMax is the maximum allowed value of a CGFontIndex(<doc://com.apple.coregraphics/documentation/CoreGraphics/CGFontIndex>).

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

const KCGGlyphMax CGFontIndex = 65534

KCGGlyphMax is the maximum allowed value of a CGGlyph(<doc://com.apple.coregraphics/documentation/CoreGraphics/CGGlyph>).

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

type CGFontPostScriptFormat

type CGFontPostScriptFormat int

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.

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.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGFont/init(_:)-1p4b

func CGFontRetain

func CGFontRetain(font CGFontRef) CGFontRef

CGFontRetain increments the retain count of a font.

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

type CGFunctionCallbacks

type CGFunctionCallbacks struct {
	Version     uint                          // The structure version number. For this structure,the version should be `0`.
	Evaluate    CGFunctionEvaluateCallback    // The callback that evaluates the function.
	ReleaseInfo CGFunctionReleaseInfoCallback // If non-[NULL],the callback used to release the `info` parameterpassed to [init(info:domainDimension:domain:rangeDimension:range:callbacks:)](<doc://com.apple.coregraphics/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(unsafe.Pointer, []float64, []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.

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.

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

type CGFunctionReleaseInfoCallback

type CGFunctionReleaseInfoCallback = func(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 CGGlyph

type CGGlyph = unsafe.Pointer

CGGlyph is an index into the internal glyph table of a font.

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

type CGGlyphDeprecatedEnum

type CGGlyphDeprecatedEnum int

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 int

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.

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.

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.

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.

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

type CGImageAlphaInfo

type CGImageAlphaInfo int

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.

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.

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

func (CGImageAlphaInfo) String

func (e CGImageAlphaInfo) 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.

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

func CGDisplayCreateImage deprecated

func CGDisplayCreateImage(displayID uint32) CGImageRef

CGDisplayCreateImage returns an image containing the contents of the specified display.

Deprecated: Please use ScreenCaptureKit instead.

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

func CGDisplayCreateImageForRect deprecated

func CGDisplayCreateImageForRect(display uint32, rect corefoundation.CGRect) CGImageRef

CGDisplayCreateImageForRect returns an image containing the contents of a portion of the specified display.

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.

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.

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

func CGImageCreateCopyWithCalculatedHDRStats

func CGImageCreateCopyWithCalculatedHDRStats(image CGImageRef) CGImageRef

CGImageCreateCopyWithCalculatedHDRStats.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/copy(colorSpace:)

func CGImageCreateCopyWithContentAverageLightLevel

func CGImageCreateCopyWithContentAverageLightLevel(image CGImageRef, avll float32) CGImageRef

CGImageCreateCopyWithContentAverageLightLevel.

See: https://developer.apple.com/documentation/CoreGraphics/CGImage/copy(contentAverageLightLevel:)

func CGImageCreateCopyWithContentHeadroom

func CGImageCreateCopyWithContentHeadroom(headroom float32, image CGImageRef) CGImageRef

CGImageCreateCopyWithContentHeadroom.

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

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.

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.

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.

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.

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.

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.

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.

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.

Deprecated: Please use ScreenCaptureKit instead.

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

type CGInterpolationQuality

type CGInterpolationQuality int

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.

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

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

type CGLineCap

type CGLineCap int

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 int

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

const (
	// KCGLineJoinBevel: A join with a squared-off end.
	KCGLineJoinBevel CGLineJoin = 2
	// KCGLineJoinRound: A join with a rounded end.
	KCGLineJoinRound CGLineJoin = 1
)

func (CGLineJoin) String

func (e CGLineJoin) 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.

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.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/mutableCopy(using:)

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 uint32) CGOpenGLDisplayMask

CGDisplayIDToOpenGLDisplayMask maps a display ID to an OpenGL display mask.

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

type CGPDFAccessPermissions

type CGPDFAccessPermissions int

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 (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.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFDocument/fileIdentifier

type CGPDFBoolean

type CGPDFBoolean = uint8

CGPDFBoolean is a PDF Boolean value.

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

type CGPDFBox

type CGPDFBox int

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.

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.

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.

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.

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

type CGPDFDataFormat

type CGPDFDataFormat int

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(*byte, uintptr, 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.

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.

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

func CGPDFPageGetDictionary

func CGPDFPageGetDictionary(page CGPDFPageRef) CGPDFDictionaryRef

CGPDFPageGetDictionary returns the dictionary of a PDF page.

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.

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

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.

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.

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.

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

func CGPDFPageGetDocument

func CGPDFPageGetDocument(page CGPDFPageRef) CGPDFDocumentRef

CGPDFPageGetDocument returns the document for a page.

See: https://developer.apple.com/documentation/CoreGraphics/CGPDFPage/document

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.

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

type CGPDFObjectType

type CGPDFObjectType int

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.

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

func (CGPDFObjectType) String

func (e CGPDFObjectType) String() string

type CGPDFOperatorCallback

type CGPDFOperatorCallback = func(uintptr, 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.

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

func CGPDFOperatorTableRetain

func CGPDFOperatorTableRetain(table CGPDFOperatorTableRef) CGPDFOperatorTableRef

CGPDFOperatorTableRetain increments the retain count of a CGPDFOperatorTable object.

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

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.

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.

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

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 CGPDFScannerRetain

func CGPDFScannerRetain(scanner CGPDFScannerRef) CGPDFScannerRef

CGPDFScannerRetain increments the retain count of a scanner object.

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

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 CGPSConverterBeginDocumentCallback

type CGPSConverterBeginDocumentCallback = func(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(unsafe.Pointer, uint, 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       uint                               // The version number of the structure passed in as a parameter to the converter creation functions. The structure defined below is version `0`.
	BeginDocument CGPSConverterBeginDocumentCallback // The callback called at the beginning of the conversion of the PostScript document, or [NULL].
	EndDocument   CGPSConverterEndDocumentCallback   // The callback called at the end of conversion of the PostScript document, or [NULL].
	BeginPage     CGPSConverterBeginPageCallback     // The callback called at the start of the conversion of each page in the PostScript document, or [NULL].
	EndPage       CGPSConverterEndPageCallback       // The callback called at the end of the conversion of each page in the PostScript document, or [NULL].
	NoteProgress  CGPSConverterProgressCallback      // The callback called periodically during the conversion to indicate that conversion is proceeding, or [NULL].
	NoteMessage   CGPSConverterMessageCallback       // The callback called to pass any messages that might result during the conversion, or [NULL].
	ReleaseInfo   CGPSConverterReleaseInfoCallback   // 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(unsafe.Pointer, 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(unsafe.Pointer, uint, 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(unsafe.Pointer, uintptr)

CGPSConverterMessageCallback is passes messages generated during a PostScript conversion process.

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

type CGPSConverterProgressCallback

type CGPSConverterProgressCallback = func(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

type CGPSConverterReleaseInfoCallback

type CGPSConverterReleaseInfoCallback = func(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 int

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 int

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.

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.

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.

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

func CGPathCreateCopyByFlattening

func CGPathCreateCopyByFlattening(path CGPathRef, flatteningThreshold float64) CGPathRef

CGPathCreateCopyByFlattening.

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

func CGPathCreateCopyByIntersectingPath

func CGPathCreateCopyByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyByIntersectingPath.

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

func CGPathCreateCopyByNormalizing

func CGPathCreateCopyByNormalizing(path CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyByNormalizing.

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 uintptr, lineJoin uintptr, miterLimit float64) CGPathRef

CGPathCreateCopyByStrokingPath creates a stroked copy of another path.

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

func CGPathCreateCopyBySubtractingPath

func CGPathCreateCopyBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyBySubtractingPath.

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

func CGPathCreateCopyBySymmetricDifferenceOfPath

func CGPathCreateCopyBySymmetricDifferenceOfPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyBySymmetricDifferenceOfPath.

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.

See: https://developer.apple.com/documentation/CoreGraphics/CGPath/copy(using:)

func CGPathCreateCopyByUnioningPath

func CGPathCreateCopyByUnioningPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyByUnioningPath.

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

func CGPathCreateCopyOfLineByIntersectingPath

func CGPathCreateCopyOfLineByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyOfLineByIntersectingPath.

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

func CGPathCreateCopyOfLineBySubtractingPath

func CGPathCreateCopyOfLineBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef

CGPathCreateCopyOfLineBySubtractingPath.

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.

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.

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.

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.

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

type CGPatternCallbacks

type CGPatternCallbacks struct {
	Version     uint                         // The version of the structure passed in as a parameterto the [init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:)](<doc://com.apple.coregraphics/documentation/CoreGraphics/CGPattern/init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:)>). Forthis version of the structure, you should set this value to zero.
	DrawPattern CGPatternDrawPatternCallback // A pointer to a custom function that draws thepattern. For information about this callback function, see [CGPatternDrawPatternCallback](<doc://com.apple.coregraphics/documentation/CoreGraphics/CGPatternDrawPatternCallback>).
	ReleaseInfo CGPatternReleaseInfoCallback // An optional pointer to a custom function that’sinvoked when the pattern is released. [CGPatternReleaseInfoCallback](<doc://com.apple.coregraphics/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(unsafe.Pointer, uintptr)

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.

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

func CGPatternRetain

func CGPatternRetain(pattern CGPatternRef) CGPatternRef

CGPatternRetain increments the retain count of a Core Graphics pattern.

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

type CGPatternReleaseInfoCallback

type CGPatternReleaseInfoCallback = func(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 int

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

const (
	// KCGPatternTilingConstantSpacing: Pattern cells are spaced consistently, as with .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 int

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 CGScreenRefreshCallback

type CGScreenRefreshCallback = func(uint, uintptr, 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(CGScreenUpdateMoveDelta, uint, uintptr, 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 int

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 int

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 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.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading/init(axialSpace: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.

See: https://developer.apple.com/documentation/CoreGraphics/CGShading/init(radialSpace:start:startRadius:end:endRadius:function:extendStart:extendEnd:)

func CGShadingRetain

func CGShadingRetain(shading CGShadingRef) CGShadingRef

CGShadingRetain increments the retain count of a shading object.

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

type CGTextDrawingMode

type CGTextDrawingMode int

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

type CGTextEncoding int

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

const (
	// KCGEncodingFontSpecific: The built-in encoding of the font.
	KCGEncodingFontSpecific CGTextEncoding = 0
	// KCGEncodingMacRoman: The MacRoman encoding.
	KCGEncodingMacRoman CGTextEncoding = 1
)

func (CGTextEncoding) String

func (e CGTextEncoding) 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 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 uint32) CGWindowID

CGShieldingWindowID returns the window ID of the shield window for a captured display.

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

type CGWindowImageOption

type CGWindowImageOption int

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
	// 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.

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.

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

type CGWindowListOption

type CGWindowListOption int

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

Jump to

Keyboard shortcuts

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