Documentation ¶
Overview ¶
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.
Index ¶
- type AffineTransform
- type BitmapContextReleaseDataCallback
- type BitmapInfo
- type BlendMode
- type ButtonCount
- type CaptureOptions
- type CharCode
- type ColorConversionInfoRef
- type ColorConversionInfoTransformType
- type ColorDataFormat
- type ColorRef
- type ColorRenderingIntent
- type ColorSpaceModel
- type ColorSpaceRef
- type ConfigureOption
- type ContextRef
- type DataConsumerCallbacks
- type DataConsumerPutBytesCallback
- type DataConsumerRef
- type DataConsumerReleaseInfoCallback
- type DataProviderDirectCallbacks
- type DataProviderGetBytePointerCallback
- type DataProviderGetBytesCallback
- type DataProviderRef
- type DataProviderReleaseBytePointerCallback
- type DataProviderReleaseDataCallback
- type DataProviderReleaseInfoCallback
- type DataProviderRewindCallback
- type DataProviderSequentialCallbacks
- type DataProviderSkipForwardCallback
- type DeviceColor
- type DirectDisplayID
- type DisplayBlendFraction
- type DisplayChangeSummaryFlags
- type DisplayCount
- type DisplayFadeInterval
- type DisplayFadeReservationToken
- type DisplayModeRef
- type DisplayReconfigurationCallBack
- type DisplayReservationInterval
- type DisplayStreamFrameAvailableHandler
- type DisplayStreamFrameStatus
- type DisplayStreamRef
- type DisplayStreamUpdateRectType
- type DisplayStreamUpdateRef
- type Error
- type ErrorCallback
- type EventField
- type EventFilterMask
- type EventFlags
- type EventMask
- type EventMouseSubtype
- type EventRef
- type EventSourceKeyboardType
- type EventSourceRef
- type EventSourceStateID
- type EventSuppressionState
- type EventTapCallBack
- type EventTapInformation
- type EventTapLocation
- type EventTapOptions
- type EventTapPlacement
- type EventTimestamp
- type EventType
- type Float
- type FontIndex
- type FontPostScriptFormat
- type FontRef
- type FunctionCallbacks
- type FunctionEvaluateCallback
- type FunctionRef
- type FunctionReleaseInfoCallback
- type GammaValue
- type GesturePhase
- type Glyph
- type GlyphDeprecatedEnum
- type GradientDrawingOptions
- type GradientRef
- type ImageAlphaInfo
- type ImageByteOrderInfo
- type ImagePixelFormatInfo
- type ImageRef
- type InterpolationQuality
- type KeyCode
- type LayerRef
- type LineCap
- type LineJoin
- type MomentumScrollPhase
- type MouseButton
- type MutablePathRef
- type OpenGLDisplayMask
- type PDFAccessPermissions
- type PDFArrayApplierBlock
- type PDFBoolean
- type PDFBox
- type PDFDataFormat
- type PDFDictionaryApplierBlock
- type PDFDictionaryApplierFunction
- type PDFDocumentRef
- type PDFInteger
- type PDFObjectType
- type PDFOperatorCallback
- type PDFPageRef
- type PDFReal
- type PDFTagType
- type PSConverterBeginDocumentCallback
- type PSConverterBeginPageCallback
- type PSConverterCallbacks
- type PSConverterEndDocumentCallback
- type PSConverterEndPageCallback
- type PSConverterMessageCallback
- type PSConverterProgressCallback
- type PSConverterRef
- type PSConverterReleaseInfoCallback
- type PathApplierFunction
- type PathApplyBlock
- type PathDrawingMode
- type PathElement
- type PathElementType
- type PatternCallbacks
- type PatternDrawPatternCallback
- type PatternRef
- type PatternReleaseInfoCallback
- type PatternTiling
- type Point
- type Rect
- type RectCount
- type RectEdge
- type RefreshRate
- type ScreenRefreshCallback
- type ScreenUpdateMoveCallback
- type ScreenUpdateMoveDelta
- type ScreenUpdateOperation
- type ScrollEventUnit
- type ScrollPhase
- type ShadingRef
- type Size
- type TextDrawingMode
- type TextEncoding
- type Vector
- type WheelCount
- type WindowBackingType
- type WindowID
- type WindowImageOption
- type WindowLevel
- type WindowLevelKey
- type WindowListOption
- type WindowSharingType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffineTransform ¶
type AffineTransform struct { M11 float64 M12 float64 M21 float64 M22 float64 TX float64 TY float64 }
An affine transformation matrix for use in drawing 2D graphics. Full Topic
type BitmapContextReleaseDataCallback ¶
A callback function used to release data associate with the bitmap context. Full Topic
type BitmapInfo ¶
type BitmapInfo uint32
Component information for a bitmap image. Full Topic
const ( KBitmapAlphaInfoMask BitmapInfo = 31 KBitmapByteOrder16Big BitmapInfo = 12288 KBitmapByteOrder16Little BitmapInfo = 4096 KBitmapByteOrder32Big BitmapInfo = 16384 KBitmapByteOrder32Little BitmapInfo = 8192 KBitmapByteOrderDefault BitmapInfo = 0 KBitmapByteOrderMask BitmapInfo = 28672 KBitmapFloatComponents BitmapInfo = 256 KBitmapFloatInfoMask BitmapInfo = 3840 )
type BlendMode ¶
type BlendMode int32
Compositing operations for images. Full Topic
const ( KBlendModeClear BlendMode = 16 KBlendModeColor BlendMode = 14 KBlendModeColorBurn BlendMode = 7 KBlendModeColorDodge BlendMode = 6 KBlendModeCopy BlendMode = 17 KBlendModeDarken BlendMode = 4 KBlendModeDestinationAtop BlendMode = 24 KBlendModeDestinationIn BlendMode = 22 KBlendModeDestinationOut BlendMode = 23 KBlendModeDestinationOver BlendMode = 21 KBlendModeDifference BlendMode = 10 KBlendModeExclusion BlendMode = 11 KBlendModeHardLight BlendMode = 9 KBlendModeHue BlendMode = 12 KBlendModeLighten BlendMode = 5 KBlendModeLuminosity BlendMode = 15 KBlendModeMultiply BlendMode = 1 KBlendModeNormal BlendMode = 0 KBlendModeOverlay BlendMode = 3 KBlendModePlusDarker BlendMode = 26 KBlendModePlusLighter BlendMode = 27 KBlendModeSaturation BlendMode = 13 KBlendModeScreen BlendMode = 2 KBlendModeSoftLight BlendMode = 8 KBlendModeSourceAtop BlendMode = 20 KBlendModeSourceIn BlendMode = 18 KBlendModeSourceOut BlendMode = 19 KBlendModeXOR BlendMode = 25 )
type ButtonCount ¶
type ButtonCount uint32
Represents the number of buttons being set in a synthetic mouse event. Full Topic
type CaptureOptions ¶
type CaptureOptions uint32
Configuration parameters that are used when capturing displays. Full Topic
const ( KCaptureNoFill CaptureOptions = 1 KCaptureNoOptions CaptureOptions = 0 )
type CharCode ¶
type CharCode uint16
Represents a character generated by pressing one or more keys on a keyboard. Full Topic
type ColorConversionInfoRef ¶
type ColorConversionInfoRef uintptr
An object that describes how to convert between color spaces for use by other system services. Full Topic
type ColorConversionInfoTransformType ¶
type ColorConversionInfoTransformType uint32
Constants describing how a color conversion uses color spaces. Full Topic
const ( KColorConversionTransformApplySpace ColorConversionInfoTransformType = 2 KColorConversionTransformFromSpace ColorConversionInfoTransformType = 0 KColorConversionTransformToSpace ColorConversionInfoTransformType = 1 )
type ColorDataFormat ¶
type ColorDataFormat struct { Version uint32 Colorspace_info uintptr Bitmap_info uint32 Bits_per_component uint64 Bytes_per_row uint64 Intent uint32 Decode *float64 }
[Full Topic]
type ColorRef ¶
type ColorRef uintptr
A set of components that define a color, with a color space specifying how to interpret them. Full Topic
type ColorRenderingIntent ¶
type ColorRenderingIntent int32
Handling options for colors that are not located within the destination color space of a graphics context. Full Topic
const ( KRenderingIntentAbsoluteColorimetric ColorRenderingIntent = 1 KRenderingIntentDefault ColorRenderingIntent = 0 KRenderingIntentPerceptual ColorRenderingIntent = 3 KRenderingIntentRelativeColorimetric ColorRenderingIntent = 2 KRenderingIntentSaturation ColorRenderingIntent = 4 )
type ColorSpaceModel ¶
type ColorSpaceModel int32
Models for color spaces. Full Topic
const ( KColorSpaceModelCMYK ColorSpaceModel = 2 KColorSpaceModelDeviceN ColorSpaceModel = 4 KColorSpaceModelIndexed ColorSpaceModel = 5 KColorSpaceModelLab ColorSpaceModel = 3 KColorSpaceModelMonochrome ColorSpaceModel = 0 KColorSpaceModelPattern ColorSpaceModel = 6 KColorSpaceModelRGB ColorSpaceModel = 1 KColorSpaceModelUnknown ColorSpaceModel = -1 KColorSpaceModelXYZ ColorSpaceModel = 7 )
type ColorSpaceRef ¶
type ColorSpaceRef uintptr
A profile that specifies how to interpret a color value for display. Full Topic
type ConfigureOption ¶
type ConfigureOption uint32
The scope of the changes in a display configuration transaction. Full Topic
const ( KConfigureForAppOnly ConfigureOption = 0 KConfigureForSession ConfigureOption = 1 KConfigurePermanently ConfigureOption = 2 )
type DataConsumerCallbacks ¶
A structure that contains pointers to callback functions that manage the copying of data for a data consumer. Full Topic
type DataConsumerPutBytesCallback ¶
type DataConsumerPutBytesCallback = func(info unsafe.Pointer, buffer unsafe.Pointer, count uint) uint
Copies data from a Core Graphics-supplied buffer into a data consumer. Full Topic
type DataConsumerRef ¶
type DataConsumerRef uintptr
An abstraction for data-writing tasks that eliminates the need to manage a raw memory buffer. Full Topic
type DataConsumerReleaseInfoCallback ¶
Releases any private data or resources associated with the data consumer. Full Topic
type DataProviderDirectCallbacks ¶
type DataProviderDirectCallbacks struct { Version uint32 GetBytePointer uintptr ReleaseBytePointer uintptr GetBytesAtPosition uintptr ReleaseInfo uintptr }
Defines pointers to client-defined callback functions that manage the sending of data for a direct-access data provider. Full Topic
type DataProviderGetBytePointerCallback ¶
A callback function that returns a generic pointer to the provider data. Full Topic
type DataProviderGetBytesCallback ¶
type DataProviderGetBytesCallback = func(info unsafe.Pointer, buffer unsafe.Pointer, count uint) uint
A callback function that copies from a provider data stream into a Core Graphics buffer. Full Topic
type DataProviderRef ¶
type DataProviderRef uintptr
An abstraction for data-reading tasks that eliminates the need to manage a raw memory buffer. Full Topic
type DataProviderReleaseBytePointerCallback ¶
A callback function that releases the pointer Core Graphics obtained by calling CGDataProviderGetBytePointerCallback. Full Topic
type DataProviderReleaseDataCallback ¶
A callback function that releases data you supply to the function coregraphics/cgdataprovidercreatewithdata. Full Topic
type DataProviderReleaseInfoCallback ¶
A callback function that releases any private data or resources associated with the data provider. Full Topic
type DataProviderRewindCallback ¶
A callback function that moves the current position in the data stream back to the beginning. Full Topic
type DataProviderSequentialCallbacks ¶
type DataProviderSequentialCallbacks struct { Version uint32 GetBytes uintptr SkipForward uintptr Rewind uintptr ReleaseInfo uintptr }
Defines a structure containing pointers to client-defined callback functions that manage the sending of data for a sequential-access data provider. Full Topic
type DataProviderSkipForwardCallback ¶
A callback function that advances the current position in the data stream supplied by the provider. Full Topic
type DirectDisplayID ¶
type DirectDisplayID uint32
A unique identifier for an attached display. Full Topic
type DisplayBlendFraction ¶
type DisplayBlendFraction float32
The percentage of blend color used in a fade operation. Full Topic
type DisplayChangeSummaryFlags ¶
type DisplayChangeSummaryFlags uint32
The configuration parameters that are passed to a display reconfiguration callback function. Full Topic
const ( KDisplayAddFlag DisplayChangeSummaryFlags = 16 KDisplayBeginConfigurationFlag DisplayChangeSummaryFlags = 1 KDisplayDesktopShapeChangedFlag DisplayChangeSummaryFlags = 4096 KDisplayDisabledFlag DisplayChangeSummaryFlags = 512 KDisplayEnabledFlag DisplayChangeSummaryFlags = 256 KDisplayMirrorFlag DisplayChangeSummaryFlags = 1024 KDisplayMovedFlag DisplayChangeSummaryFlags = 2 KDisplayRemoveFlag DisplayChangeSummaryFlags = 32 KDisplaySetMainFlag DisplayChangeSummaryFlags = 4 KDisplaySetModeFlag DisplayChangeSummaryFlags = 8 KDisplayUnMirrorFlag DisplayChangeSummaryFlags = 2048 )
type DisplayFadeInterval ¶
type DisplayFadeInterval float32
The duration in seconds of a fade operation or a fade hardware reservation. Full Topic
type DisplayFadeReservationToken ¶
type DisplayFadeReservationToken uint32
A token issued by Quartz when reserving one or more displays for a fade operation during a specified interval. Full Topic
type DisplayReconfigurationCallBack ¶
type DisplayReconfigurationCallBack = func(display DirectDisplayID, flags DisplayChangeSummaryFlags, userInfo unsafe.Pointer)
A client-supplied callback function that’s invoked whenever the configuration of a local display is changed. Full Topic
type DisplayReservationInterval ¶
type DisplayReservationInterval float32
The time interval for a fade reservation. Full Topic
type DisplayStreamFrameAvailableHandler ¶
type DisplayStreamFrameAvailableHandler = func(status DisplayStreamFrameStatus, displayTime uint64, frameSurface iosurface.Ref, updateRef DisplayStreamUpdateRef)
A block called when a data stream has a new frame event to process. Full Topic
type DisplayStreamFrameStatus ¶
type DisplayStreamFrameStatus int32
Describes a frame update event. Full Topic
const ( KDisplayStreamFrameStatusFrameBlank DisplayStreamFrameStatus = 2 KDisplayStreamFrameStatusFrameComplete DisplayStreamFrameStatus = 0 KDisplayStreamFrameStatusFrameIdle DisplayStreamFrameStatus = 1 KDisplayStreamFrameStatusStopped DisplayStreamFrameStatus = 3 )
type DisplayStreamRef ¶
type DisplayStreamRef uintptr
A reference to a display stream object. Full Topic
type DisplayStreamUpdateRectType ¶
type DisplayStreamUpdateRectType int32
Use these constants to determine which rectangles your app is interested in. Full Topic
const ( KDisplayStreamUpdateDirtyRects DisplayStreamUpdateRectType = 2 KDisplayStreamUpdateMovedRects DisplayStreamUpdateRectType = 1 KDisplayStreamUpdateReducedDirtyRects DisplayStreamUpdateRectType = 3 KDisplayStreamUpdateRefreshedRects DisplayStreamUpdateRectType = 0 )
type DisplayStreamUpdateRef ¶
type DisplayStreamUpdateRef uintptr
A reference to frame update’s metadata. Full Topic
type Error ¶
type Error int32
A uniform type for result codes returned by functions in Core Graphics. Full Topic
const ( KErrorCannotComplete Error = 1004 KErrorFailure Error = 1000 KErrorIllegalArgument Error = 1001 KErrorInvalidConnection Error = 1002 KErrorInvalidContext Error = 1003 KErrorInvalidOperation Error = 1010 KErrorNoneAvailable Error = 1011 KErrorNotImplemented Error = 1006 KErrorRangeCheck Error = 1007 KErrorSuccess Error = 0 KErrorTypeCheck Error = 1008 )
type EventField ¶
type EventField uint32
Constants used as keys to access specialized fields in low-level events. Full Topic
const ( KEventSourceGroupID EventField = 44 KEventSourceStateID EventField = 45 KEventSourceUnixProcessID EventField = 41 KEventSourceUserData EventField = 42 KEventSourceUserID EventField = 43 KEventTargetProcessSerialNumber EventField = 39 KEventTargetUnixProcessID EventField = 40 KEventUnacceleratedPointerMovementX EventField = 170 KEventUnacceleratedPointerMovementY EventField = 171 KKeyboardEventAutorepeat EventField = 8 KKeyboardEventKeyboardType EventField = 10 KKeyboardEventKeycode EventField = 9 KMouseEventButtonNumber EventField = 3 KMouseEventClickState EventField = 1 KMouseEventDeltaX EventField = 4 KMouseEventDeltaY EventField = 5 KMouseEventInstantMouser EventField = 6 KMouseEventNumber EventField = 0 KMouseEventPressure EventField = 2 KMouseEventSubtype EventField = 7 KMouseEventWindowUnderMousePointer EventField = 91 KMouseEventWindowUnderMousePointerThatCanHandleThisEvent EventField = 92 KScrollWheelEventDeltaAxis1 EventField = 11 KScrollWheelEventDeltaAxis2 EventField = 12 KScrollWheelEventDeltaAxis3 EventField = 13 KScrollWheelEventFixedPtDeltaAxis1 EventField = 93 KScrollWheelEventFixedPtDeltaAxis2 EventField = 94 KScrollWheelEventFixedPtDeltaAxis3 EventField = 95 KScrollWheelEventInstantMouser EventField = 14 KScrollWheelEventIsContinuous EventField = 88 KScrollWheelEventMomentumPhase EventField = 123 KScrollWheelEventPointDeltaAxis1 EventField = 96 KScrollWheelEventPointDeltaAxis2 EventField = 97 KScrollWheelEventPointDeltaAxis3 EventField = 98 KScrollWheelEventScrollCount EventField = 100 KScrollWheelEventScrollPhase EventField = 99 KTabletEventDeviceID EventField = 24 KTabletEventPointButtons EventField = 18 KTabletEventPointPressure EventField = 19 KTabletEventPointX EventField = 15 KTabletEventPointY EventField = 16 KTabletEventPointZ EventField = 17 KTabletEventRotation EventField = 22 KTabletEventTangentialPressure EventField = 23 KTabletEventTiltX EventField = 20 KTabletEventTiltY EventField = 21 KTabletEventVendor1 EventField = 25 KTabletEventVendor2 EventField = 26 KTabletEventVendor3 EventField = 27 KTabletProximityEventCapabilityMask EventField = 36 KTabletProximityEventDeviceID EventField = 31 KTabletProximityEventEnterProximity EventField = 38 KTabletProximityEventPointerID EventField = 30 KTabletProximityEventPointerType EventField = 37 KTabletProximityEventSystemTabletID EventField = 32 KTabletProximityEventTabletID EventField = 29 KTabletProximityEventVendorID EventField = 28 KTabletProximityEventVendorPointerSerialNumber EventField = 34 KTabletProximityEventVendorPointerType EventField = 33 KTabletProximityEventVendorUniqueID EventField = 35 )
type EventFilterMask ¶
type EventFilterMask uint32
Specify masks for classes of low-level events that can be filtered during event suppression states. Full Topic
const ( KEventFilterMaskPermitLocalKeyboardEvents EventFilterMask = 2 KEventFilterMaskPermitLocalMouseEvents EventFilterMask = 1 KEventFilterMaskPermitSystemDefinedEvents EventFilterMask = 4 )
type EventFlags ¶
type EventFlags uint64
Constants that indicate the modifier key state at the time an event is created, as well as other event-related states. Full Topic
const ( KEventFlagMaskAlphaShift EventFlags = 65536 KEventFlagMaskAlternate EventFlags = 524288 KEventFlagMaskCommand EventFlags = 1048576 KEventFlagMaskControl EventFlags = 262144 KEventFlagMaskHelp EventFlags = 4194304 KEventFlagMaskNonCoalesced EventFlags = 256 KEventFlagMaskNumericPad EventFlags = 2097152 KEventFlagMaskSecondaryFn EventFlags = 8388608 KEventFlagMaskShift EventFlags = 131072 )
type EventMask ¶
type EventMask uint64
Defines a mask that identifies the set of Quartz events to be observed in an event tap. Full Topic
type EventMouseSubtype ¶
type EventMouseSubtype uint32
Constants used with the kCGMouseEventSubtype event field. Full Topic
const ( KEventMouseSubtypeDefault EventMouseSubtype = 0 KEventMouseSubtypeTabletPoint EventMouseSubtype = 1 KEventMouseSubtypeTabletProximity EventMouseSubtype = 2 )
type EventRef ¶
type EventRef uintptr
Defines an opaque type that represents a low-level hardware event. Full Topic
type EventSourceKeyboardType ¶
type EventSourceKeyboardType uint32
Defines a code that represents the type of keyboard used with a specified event source. Full Topic
type EventSourceRef ¶
type EventSourceRef uintptr
Defines an opaque type that represents the source of a Quartz event. Full Topic
type EventSourceStateID ¶
type EventSourceStateID int32
Constants that specify the possible source states of an event source. Full Topic
const ( KEventSourceStateCombinedSessionState EventSourceStateID = 0 KEventSourceStateHIDSystemState EventSourceStateID = 1 KEventSourceStatePrivate EventSourceStateID = -1 )
type EventSuppressionState ¶
type EventSuppressionState uint32
Specify the event suppression states that can occur after posting an event. Full Topic
const ( KEventSuppressionStateRemoteMouseDrag EventSuppressionState = 1 KEventSuppressionStateSuppressionInterval EventSuppressionState = 0 KNumberOfEventSuppressionStates EventSuppressionState = 2 )
type EventTapCallBack ¶
type EventTapCallBack = func(proxy unsafe.Pointer, type_ EventType, event EventRef, userInfo unsafe.Pointer) EventRef
A client-supplied callback function that’s invoked whenever an associated event tap receives a Quartz event. Full Topic
type EventTapInformation ¶
type EventTapInformation struct { EventTapID uint32 TapPoint uint32 Options uint32 EventsOfInterest uint64 TappingProcess int32 ProcessBeingTapped int32 Enabled bool MinUsecLatency float32 AvgUsecLatency float32 MaxUsecLatency float32 }
Defines the structure used to report information about event taps. Full Topic
type EventTapLocation ¶
type EventTapLocation uint32
Constants that specify possible tapping points for events. Full Topic
const ( KAnnotatedSessionEventTap EventTapLocation = 2 KHIDEventTap EventTapLocation = 0 KSessionEventTap EventTapLocation = 1 )
type EventTapOptions ¶
type EventTapOptions uint32
Constants that specify whether a new event tap is an active filter or a passive listener. Full Topic
const ( KEventTapOptionDefault EventTapOptions = 0 KEventTapOptionListenOnly EventTapOptions = 1 )
type EventTapPlacement ¶
type EventTapPlacement uint32
Constants that specify where a new event tap is inserted into the list of active event taps. Full Topic
const ( KHeadInsertEventTap EventTapPlacement = 0 KTailAppendEventTap EventTapPlacement = 1 )
type EventTimestamp ¶
type EventTimestamp uint64
Defines the elapsed time in nanoseconds since startup that a Quartz event occurred. Full Topic
type EventType ¶
type EventType uint32
Constants that specify the different types of input events. Full Topic
const ( KEventFlagsChanged EventType = 12 KEventKeyDown EventType = 10 KEventKeyUp EventType = 11 KEventLeftMouseDown EventType = 1 KEventLeftMouseDragged EventType = 6 KEventLeftMouseUp EventType = 2 KEventMouseMoved EventType = 5 KEventNull EventType = 0 KEventOtherMouseDown EventType = 25 KEventOtherMouseDragged EventType = 27 KEventOtherMouseUp EventType = 26 KEventRightMouseDown EventType = 3 KEventRightMouseDragged EventType = 7 KEventRightMouseUp EventType = 4 KEventScrollWheel EventType = 22 KEventTabletPointer EventType = 23 KEventTabletProximity EventType = 24 KEventTapDisabledByTimeout EventType = 4294967294 KEventTapDisabledByUserInput EventType = 4294967295 )
type FontPostScriptFormat ¶
type FontPostScriptFormat int32
Possible formats for a PostScript font subset. Full Topic
const ( KFontPostScriptFormatType1 FontPostScriptFormat = 1 KFontPostScriptFormatType3 FontPostScriptFormat = 3 KFontPostScriptFormatType42 FontPostScriptFormat = 42 )
type FontRef ¶
type FontRef uintptr
A set of character glyphs and layout information for drawing text. Full Topic
type FunctionCallbacks ¶
A structure that contains callbacks needed by a CGFunctionRef object. Full Topic
type FunctionEvaluateCallback ¶
Performs custom operations on the supplied input data to produce output data. Full Topic
type FunctionRef ¶
type FunctionRef uintptr
A general facility for defining and using callback functions. Full Topic
type FunctionReleaseInfoCallback ¶
Performs custom clean-up tasks when Core Graphics deallocates a CGFunctionRef object. Full Topic
type GammaValue ¶
type GammaValue float32
A value used to map a color generated in software to a color supported by the display hardware. Full Topic
type GesturePhase ¶
type GesturePhase uint32
[Full Topic]
const ( KGesturePhaseBegan GesturePhase = 1 KGesturePhaseCancelled GesturePhase = 8 KGesturePhaseChanged GesturePhase = 2 KGesturePhaseEnded GesturePhase = 4 KGesturePhaseMayBegin GesturePhase = 128 KGesturePhaseNone GesturePhase = 0 )
type GradientDrawingOptions ¶
type GradientDrawingOptions uint32
Drawing locations for gradients. Full Topic
const ( KGradientDrawsAfterEndLocation GradientDrawingOptions = 2 KGradientDrawsBeforeStartLocation GradientDrawingOptions = 1 )
type GradientRef ¶
type GradientRef uintptr
A definition for a smooth transition between colors for drawing radial and axial gradient fills. Full Topic
type ImageAlphaInfo ¶
type ImageAlphaInfo uint32
Storage options for alpha component data. Full Topic
const ( KImageAlphaFirst ImageAlphaInfo = 4 KImageAlphaLast ImageAlphaInfo = 3 KImageAlphaNone ImageAlphaInfo = 0 KImageAlphaNoneSkipFirst ImageAlphaInfo = 6 KImageAlphaNoneSkipLast ImageAlphaInfo = 5 KImageAlphaOnly ImageAlphaInfo = 7 KImageAlphaPremultipliedFirst ImageAlphaInfo = 2 KImageAlphaPremultipliedLast ImageAlphaInfo = 1 )
type ImageByteOrderInfo ¶
type ImageByteOrderInfo uint32
[Full Topic]
const ( KImageByteOrder16Big ImageByteOrderInfo = 12288 KImageByteOrder16Little ImageByteOrderInfo = 4096 KImageByteOrder32Big ImageByteOrderInfo = 16384 KImageByteOrder32Little ImageByteOrderInfo = 8192 KImageByteOrderDefault ImageByteOrderInfo = 0 KImageByteOrderMask ImageByteOrderInfo = 28672 )
type ImagePixelFormatInfo ¶
type ImagePixelFormatInfo uint32
[Full Topic]
const ( KImagePixelFormatMask ImagePixelFormatInfo = 983040 KImagePixelFormatPacked ImagePixelFormatInfo = 0 KImagePixelFormatRGB101010 ImagePixelFormatInfo = 196608 KImagePixelFormatRGB555 ImagePixelFormatInfo = 65536 KImagePixelFormatRGB565 ImagePixelFormatInfo = 131072 KImagePixelFormatRGBCIF10 ImagePixelFormatInfo = 262144 )
type InterpolationQuality ¶
type InterpolationQuality int32
Levels of interpolation quality for rendering an image. Full Topic
const ( KInterpolationDefault InterpolationQuality = 0 KInterpolationHigh InterpolationQuality = 3 KInterpolationLow InterpolationQuality = 2 KInterpolationMedium InterpolationQuality = 4 KInterpolationNone InterpolationQuality = 1 )
type KeyCode ¶
type KeyCode uint16
Represents the virtual key codes used in keyboard events. Full Topic
type LayerRef ¶
type LayerRef uintptr
An offscreen context for reusing content drawn with Core Graphics. Full Topic
type MomentumScrollPhase ¶
type MomentumScrollPhase uint32
[Full Topic]
const ( KMomentumScrollPhaseBegin MomentumScrollPhase = 1 KMomentumScrollPhaseContinue MomentumScrollPhase = 2 KMomentumScrollPhaseEnd MomentumScrollPhase = 3 KMomentumScrollPhaseNone MomentumScrollPhase = 0 )
type MouseButton ¶
type MouseButton uint32
Constants that specify buttons on a one, two, or three-button mouse. Full Topic
const ( KMouseButtonCenter MouseButton = 2 KMouseButtonLeft MouseButton = 0 KMouseButtonRight MouseButton = 1 )
type MutablePathRef ¶
type MutablePathRef uintptr //*_Ctype_struct_CGPath
A mutable graphics path: a mathematical description of shapes or lines to be drawn in a graphics context. Full Topic
type OpenGLDisplayMask ¶
type OpenGLDisplayMask uint32
A bitmask used in OpenGL to specify a set of attached displays. Full Topic
type PDFAccessPermissions ¶
type PDFAccessPermissions uint32
[Full Topic]
const ( KPDFAllowsCommenting PDFAccessPermissions = 64 KPDFAllowsContentAccessibility PDFAccessPermissions = 32 KPDFAllowsContentCopying PDFAccessPermissions = 16 KPDFAllowsDocumentAssembly PDFAccessPermissions = 8 KPDFAllowsDocumentChanges PDFAccessPermissions = 4 KPDFAllowsFormFieldEntry PDFAccessPermissions = 128 KPDFAllowsHighQualityPrinting PDFAccessPermissions = 2 KPDFAllowsLowQualityPrinting PDFAccessPermissions = 1 )
type PDFArrayApplierBlock ¶
[Full Topic]
type PDFDataFormat ¶
type PDFDataFormat int32
The encoding format of PDF data. Full Topic
const ( PDFDataFormatJPEG2000 PDFDataFormat = 2 PDFDataFormatJPEGEncoded PDFDataFormat = 1 PDFDataFormatRaw PDFDataFormat = 0 )
type PDFDictionaryApplierBlock ¶
[Full Topic]
type PDFDictionaryApplierFunction ¶
Performs custom processing on a key-value pair from a PDF dictionary, using optional contextual information. Full Topic
type PDFDocumentRef ¶
type PDFDocumentRef uintptr
A document that contains PDF (Portable Document Format) drawing information. Full Topic
type PDFObjectType ¶
type PDFObjectType int32
Types of PDF object. Full Topic
const ( KPDFObjectTypeArray PDFObjectType = 7 KPDFObjectTypeBoolean PDFObjectType = 2 KPDFObjectTypeDictionary PDFObjectType = 8 KPDFObjectTypeInteger PDFObjectType = 3 KPDFObjectTypeName PDFObjectType = 5 KPDFObjectTypeNull PDFObjectType = 1 KPDFObjectTypeReal PDFObjectType = 4 KPDFObjectTypeStream PDFObjectType = 9 KPDFObjectTypeString PDFObjectType = 6 )
type PDFOperatorCallback ¶
Performs custom processing for PDF operators. Full Topic
type PDFPageRef ¶
type PDFPageRef uintptr
A type that represents a page in a PDF document. Full Topic
type PDFTagType ¶
type PDFTagType int32
[Full Topic]
const ( PDFTagTypeAnnotation PDFTagType = 507 PDFTagTypeArt PDFTagType = 102 PDFTagTypeBibliography PDFTagType = 504 PDFTagTypeBlockQuote PDFTagType = 105 PDFTagTypeCaption PDFTagType = 106 PDFTagTypeCode PDFTagType = 505 PDFTagTypeDiv PDFTagType = 104 PDFTagTypeDocument PDFTagType = 100 PDFTagTypeFigure PDFTagType = 700 PDFTagTypeForm PDFTagType = 702 PDFTagTypeFormula PDFTagType = 701 PDFTagTypeHeader PDFTagType = 201 PDFTagTypeHeader1 PDFTagType = 202 PDFTagTypeHeader2 PDFTagType = 203 PDFTagTypeHeader3 PDFTagType = 204 PDFTagTypeHeader4 PDFTagType = 205 PDFTagTypeHeader5 PDFTagType = 206 PDFTagTypeHeader6 PDFTagType = 207 PDFTagTypeIndex PDFTagType = 109 PDFTagTypeLabel PDFTagType = 302 PDFTagTypeLink PDFTagType = 506 PDFTagTypeList PDFTagType = 300 PDFTagTypeListBody PDFTagType = 303 PDFTagTypeListItem PDFTagType = 301 PDFTagTypeNonStructure PDFTagType = 110 PDFTagTypeNote PDFTagType = 502 PDFTagTypeParagraph PDFTagType = 200 PDFTagTypePart PDFTagType = 101 PDFTagTypePrivate PDFTagType = 111 PDFTagTypeQuote PDFTagType = 501 PDFTagTypeReference PDFTagType = 503 PDFTagTypeRuby PDFTagType = 600 PDFTagTypeRubyAnnotationText PDFTagType = 602 PDFTagTypeRubyBaseText PDFTagType = 601 PDFTagTypeRubyPunctuation PDFTagType = 603 PDFTagTypeSection PDFTagType = 103 PDFTagTypeSpan PDFTagType = 500 PDFTagTypeTOC PDFTagType = 107 PDFTagTypeTOCI PDFTagType = 108 PDFTagTypeTable PDFTagType = 400 PDFTagTypeTableBody PDFTagType = 405 PDFTagTypeTableDataCell PDFTagType = 403 PDFTagTypeTableHeader PDFTagType = 404 PDFTagTypeTableHeaderCell PDFTagType = 402 PDFTagTypeTableRow PDFTagType = 401 PDFTagTypeWarichu PDFTagType = 604 PDFTagTypeWarichuPunctiation PDFTagType = 606 PDFTagTypeWarichuText PDFTagType = 605 )
type PSConverterBeginDocumentCallback ¶
Performs custom tasks at the beginning of a PostScript conversion process. Full Topic
type PSConverterBeginPageCallback ¶
type PSConverterBeginPageCallback = func(info unsafe.Pointer, pageNumber uint, pageInfo corefoundation.DictionaryRef)
Performs custom tasks at the beginning of each page in a PostScript conversion process. Full Topic
type PSConverterCallbacks ¶
type PSConverterCallbacks struct { Version uint32 BeginDocument uintptr EndDocument uintptr BeginPage uintptr EndPage uintptr NoteProgress uintptr NoteMessage uintptr ReleaseInfo uintptr }
A structure for holding the callbacks provided when you create a PostScript converter object. Full Topic
type PSConverterEndDocumentCallback ¶
Performs custom tasks at the end of a PostScript conversion process. Full Topic
type PSConverterEndPageCallback ¶
type PSConverterEndPageCallback = func(info unsafe.Pointer, pageNumber uint, pageInfo corefoundation.DictionaryRef)
Performs custom tasks at the end of each page of a PostScript conversion process. Full Topic
type PSConverterMessageCallback ¶
type PSConverterMessageCallback = func(info unsafe.Pointer, message corefoundation.StringRef)
Passes messages generated during a PostScript conversion process. Full Topic
type PSConverterProgressCallback ¶
Reports progress periodically during a PostScript conversion process. Full Topic
type PSConverterRef ¶
type PSConverterRef uintptr
An opaque data type used to convert PostScript data to PDF data. Full Topic
type PSConverterReleaseInfoCallback ¶
Performs custom tasks when a PostScript converter is released. Full Topic
type PathApplierFunction ¶
type PathApplierFunction = func(info unsafe.Pointer, element *PathElement)
Defines a callback function that can view an element in a graphics path. Full Topic
type PathDrawingMode ¶
type PathDrawingMode int32
Options for rendering a path. Full Topic
const ( KPathEOFill PathDrawingMode = 1 KPathEOFillStroke PathDrawingMode = 4 KPathFill PathDrawingMode = 0 KPathFillStroke PathDrawingMode = 3 KPathStroke PathDrawingMode = 2 )
type PathElement ¶
A data structure that provides information about a path element. Full Topic
type PathElementType ¶
type PathElementType int32
The type of element found in a path. Full Topic
const ( KPathElementAddCurveToPoint PathElementType = 3 KPathElementAddLineToPoint PathElementType = 1 KPathElementAddQuadCurveToPoint PathElementType = 2 KPathElementCloseSubpath PathElementType = 4 KPathElementMoveToPoint PathElementType = 0 )
type PatternCallbacks ¶
A structure that holds a version and two callback functions for drawing a custom pattern. Full Topic
type PatternDrawPatternCallback ¶
type PatternDrawPatternCallback = func(info unsafe.Pointer, context ContextRef)
Draws a pattern cell. Full Topic
type PatternRef ¶
type PatternRef uintptr
A 2D pattern to be used for drawing graphics paths. Full Topic
type PatternReleaseInfoCallback ¶
Release private data or resources associated with the pattern. Full Topic
type PatternTiling ¶
type PatternTiling int32
Different methods for rendering a tiled pattern. Full Topic
const ( KPatternTilingConstantSpacing PatternTiling = 2 KPatternTilingConstantSpacingMinimalDistortion PatternTiling = 1 KPatternTilingNoDistortion PatternTiling = 0 )
type Point ¶
A structure that contains a point in a two-dimensional coordinate system. Full Topic
type Rect ¶
A structure that contains the location and dimensions of a rectangle. Full Topic
type RectEdge ¶
type RectEdge uint32
Coordinates that establish the edges of a rectangle. Full Topic
type RefreshRate ¶
type RefreshRate float64
A display’s refresh rate in frames per second. Full Topic
type ScreenRefreshCallback ¶
A client-supplied callback function that’s invoked when an area of the display is modified or refreshed. Full Topic
type ScreenUpdateMoveCallback ¶
type ScreenUpdateMoveCallback = func(delta ScreenUpdateMoveDelta, count uint, rects *Rect, userInfo unsafe.Pointer)
A client-supplied callback function invoked when an area of the display is moved. Full Topic
type ScreenUpdateMoveDelta ¶
The distance, in pixel units, that an onscreen region moves. Full Topic
type ScreenUpdateOperation ¶
type ScreenUpdateOperation uint32
Types of screen-update operations. Full Topic
const ( KScreenUpdateOperationMove ScreenUpdateOperation = 1 KScreenUpdateOperationReducedDirtyRectangleCount ScreenUpdateOperation = 2147483648 KScreenUpdateOperationRefresh ScreenUpdateOperation = 0 )
type ScrollEventUnit ¶
type ScrollEventUnit uint32
Constants that specify the unit of measurement for a scrolling event. Full Topic
const ( KScrollEventUnitLine ScrollEventUnit = 1 KScrollEventUnitPixel ScrollEventUnit = 0 )
type ScrollPhase ¶
type ScrollPhase uint32
[Full Topic]
const ( KScrollPhaseBegan ScrollPhase = 1 KScrollPhaseCancelled ScrollPhase = 8 KScrollPhaseChanged ScrollPhase = 2 KScrollPhaseEnded ScrollPhase = 4 KScrollPhaseMayBegin ScrollPhase = 128 )
type ShadingRef ¶
type ShadingRef uintptr
A definition for a smooth transition between colors, controlled by a custom function you provide, for drawing radial and axial gradient fills. Full Topic
type Size ¶
A structure that contains width and height values. Full Topic
type TextDrawingMode ¶
type TextDrawingMode int32
Modes for rendering text. Full Topic
const ( KTextClip TextDrawingMode = 7 KTextFill TextDrawingMode = 0 KTextFillClip TextDrawingMode = 4 KTextFillStroke TextDrawingMode = 2 KTextFillStrokeClip TextDrawingMode = 6 KTextInvisible TextDrawingMode = 3 KTextStroke TextDrawingMode = 1 KTextStrokeClip TextDrawingMode = 5 )
type TextEncoding ¶
type TextEncoding int32
Text encodings for fonts. Full Topic
const ( KEncodingFontSpecific TextEncoding = 0 KEncodingMacRoman TextEncoding = 1 )
type Vector ¶
A structure that contains a two-dimensional vector. Full Topic
type WheelCount ¶
type WheelCount uint32
Represents the number of wheels being set in a scroll wheel event. Full Topic
type WindowBackingType ¶
type WindowBackingType uint32
The data type used to specify the backing option for a given window. Full Topic
const ( KBackingStoreBuffered WindowBackingType = 2 KBackingStoreNonretained WindowBackingType = 1 KBackingStoreRetained WindowBackingType = 0 )
type WindowImageOption ¶
type WindowImageOption uint32
The data type to use to specify the type of image to be generated for a window. Full Topic
const ( KWindowImageBestResolution WindowImageOption = 8 KWindowImageBoundsIgnoreFraming WindowImageOption = 1 KWindowImageDefault WindowImageOption = 0 KWindowImageNominalResolution WindowImageOption = 16 KWindowImageOnlyShadows WindowImageOption = 4 KWindowImageShouldBeOpaque WindowImageOption = 2 )
type WindowLevel ¶
type WindowLevel int32
A level assigned to a window by an application framework. Full Topic
type WindowLevelKey ¶
type WindowLevelKey int32
Keys that represent the standard window levels in macOS. Quartz includes these keys to support application frameworks like Cocoa. Applications do not need to use them directly. Full Topic
const ( KAssistiveTechHighWindowLevelKey WindowLevelKey = 20 KBackstopMenuLevelKey WindowLevelKey = 3 KBaseWindowLevelKey WindowLevelKey = 0 KCursorWindowLevelKey WindowLevelKey = 19 KDesktopIconWindowLevelKey WindowLevelKey = 18 KDesktopWindowLevelKey WindowLevelKey = 2 KDockWindowLevelKey WindowLevelKey = 7 KDraggingWindowLevelKey WindowLevelKey = 12 KFloatingWindowLevelKey WindowLevelKey = 5 KHelpWindowLevelKey WindowLevelKey = 16 KMainMenuWindowLevelKey WindowLevelKey = 8 KMaximumWindowLevelKey WindowLevelKey = 14 KMinimumWindowLevelKey WindowLevelKey = 1 KModalPanelWindowLevelKey WindowLevelKey = 10 KNormalWindowLevelKey WindowLevelKey = 4 KNumberOfWindowLevelKeys WindowLevelKey = 21 KOverlayWindowLevelKey WindowLevelKey = 15 KPopUpMenuWindowLevelKey WindowLevelKey = 11 KScreenSaverWindowLevelKey WindowLevelKey = 13 KStatusWindowLevelKey WindowLevelKey = 9 KTornOffMenuWindowLevelKey WindowLevelKey = 6 KUtilityWindowLevelKey WindowLevelKey = 17 )
type WindowListOption ¶
type WindowListOption uint32
The data type used to specify the options for gathering a list of windows. Full Topic
const ( KWindowListExcludeDesktopElements WindowListOption = 16 KWindowListOptionAll WindowListOption = 0 KWindowListOptionIncludingWindow WindowListOption = 8 KWindowListOptionOnScreenAboveWindow WindowListOption = 2 KWindowListOptionOnScreenBelowWindow WindowListOption = 4 KWindowListOptionOnScreenOnly WindowListOption = 1 )
type WindowSharingType ¶
type WindowSharingType uint32
The data type used to specify the sharing mode used by a window. Full Topic
const ( KWindowSharingNone WindowSharingType = 0 KWindowSharingReadOnly WindowSharingType = 1 KWindowSharingReadWrite WindowSharingType = 2 )