Documentation
¶
Overview ¶
Package coregraphics provides a fluent Go API over the macOS CoreGraphics framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- func CGAffineTransformConcat(t1 corefoundation.CGAffineTransform, t2 corefoundation.CGAffineTransform) corefoundation.CGAffineTransform
- func CGAffineTransformDecompose(transform corefoundation.CGAffineTransform) corefoundation.CGAffineTransformComponents
- func CGAffineTransformEqualToTransform(t1 corefoundation.CGAffineTransform, t2 corefoundation.CGAffineTransform) bool
- func CGAffineTransformIdentity() corefoundation.CGAffineTransform
- func CGAffineTransformInvert(t corefoundation.CGAffineTransform) corefoundation.CGAffineTransform
- func CGAffineTransformIsIdentity(t corefoundation.CGAffineTransform) bool
- func CGAffineTransformMake(a float64, b float64, c float64, d float64, tx float64, ty float64) corefoundation.CGAffineTransform
- func CGAffineTransformMakeRotation(angle float64) corefoundation.CGAffineTransform
- func CGAffineTransformMakeScale(sx float64, sy float64) corefoundation.CGAffineTransform
- func CGAffineTransformMakeTranslation(tx float64, ty float64) corefoundation.CGAffineTransform
- func CGAffineTransformMakeWithComponents(components corefoundation.CGAffineTransformComponents) corefoundation.CGAffineTransform
- func CGAffineTransformRotate(t corefoundation.CGAffineTransform, angle float64) corefoundation.CGAffineTransform
- func CGAffineTransformScale(t corefoundation.CGAffineTransform, sx float64, sy float64) corefoundation.CGAffineTransform
- func CGAffineTransformTranslate(t corefoundation.CGAffineTransform, tx float64, ty float64) corefoundation.CGAffineTransform
- func CGBitmapContextGetBitsPerComponent(context_ CGContextRef) int
- func CGBitmapContextGetBitsPerPixel(context_ CGContextRef) int
- func CGBitmapContextGetBytesPerRow(context_ CGContextRef) int
- func CGBitmapContextGetData(context_ CGContextRef) unsafe.Pointer
- func CGBitmapContextGetHeight(context_ CGContextRef) int
- func CGBitmapContextGetWidth(context_ CGContextRef) int
- func CGColorConversionInfoConvertData(info CGColorConversionInfoRef, width int, height int, dstData unsafe.Pointer, ...) bool
- func CGColorConversionInfoCreateForToneMapping(from CGColorSpaceRef, sourceHeadroom float32, to CGColorSpaceRef, ...) (obj.Object, error)
- func CGColorConversionInfoGetTypeID() int
- func CGColorEqualToColor(color1 CGColorRef, color2 CGColorRef) bool
- func CGColorGetAlpha(color CGColorRef) float64
- func CGColorGetComponents(color CGColorRef) unsafe.Pointer
- func CGColorGetContentHeadroom(color CGColorRef) float32
- func CGColorGetNumberOfComponents(color CGColorRef) int
- func CGColorGetTypeID() int
- func CGColorRelease(color CGColorRef)
- func CGColorSpaceCopyICCData(space CGColorSpaceRef) obj.Object
- func CGColorSpaceCopyICCProfile(space CGColorSpaceRef) obj.Object
- func CGColorSpaceCopyName(space CGColorSpaceRef) obj.Object
- func CGColorSpaceCopyPropertyList(space CGColorSpaceRef) obj.Object
- func CGColorSpaceGetColorTable(space CGColorSpaceRef) (table uint8)
- func CGColorSpaceGetColorTableCount(space CGColorSpaceRef) int
- func CGColorSpaceGetName(space CGColorSpaceRef) obj.Object
- func CGColorSpaceGetNumberOfComponents(space CGColorSpaceRef) int
- func CGColorSpaceGetTypeID() int
- func CGColorSpaceIsHDR(arg CGColorSpaceRef) bool
- func CGColorSpaceIsHLGBased(s CGColorSpaceRef) bool
- func CGColorSpaceIsPQBased(s CGColorSpaceRef) bool
- func CGColorSpaceIsWideGamutRGB(arg CGColorSpaceRef) bool
- func CGColorSpaceRelease(space CGColorSpaceRef)
- func CGColorSpaceSupportsOutput(space CGColorSpaceRef) bool
- func CGColorSpaceUsesExtendedRange(space CGColorSpaceRef) bool
- func CGColorSpaceUsesITUR_2100TF(arg CGColorSpaceRef) bool
- func CGContextAddArc(c CGContextRef, x float64, y float64, radius float64, startAngle float64, ...)
- func CGContextAddArcToPoint(c CGContextRef, x1 float64, y1 float64, x2 float64, y2 float64, radius float64)
- func CGContextAddCurveToPoint(c CGContextRef, cp1x float64, cp1y float64, cp2x float64, cp2y float64, ...)
- func CGContextAddEllipseInRect(c CGContextRef, rect corefoundation.CGRect)
- func CGContextAddLineToPoint(c CGContextRef, x float64, y float64)
- func CGContextAddLines(c CGContextRef, points unsafe.Pointer, count int)
- func CGContextAddPath(c CGContextRef, path CGPathRef)
- func CGContextAddQuadCurveToPoint(c CGContextRef, cpx float64, cpy float64, x float64, y float64)
- func CGContextAddRect(c CGContextRef, rect corefoundation.CGRect)
- func CGContextAddRects(c CGContextRef, rects unsafe.Pointer, count int)
- func CGContextBeginPage(c CGContextRef, mediaBox *corefoundation.CGRect)
- func CGContextBeginPath(c CGContextRef)
- func CGContextBeginTransparencyLayer(c CGContextRef, auxiliaryInfo obj.Object)
- func CGContextBeginTransparencyLayerWithRect(c CGContextRef, rect corefoundation.CGRect, auxInfo obj.Object)
- func CGContextClearRect(c CGContextRef, rect corefoundation.CGRect)
- func CGContextClip(c CGContextRef)
- func CGContextClipToMask(c CGContextRef, rect corefoundation.CGRect, mask CGImageRef)
- func CGContextClipToRect(c CGContextRef, rect corefoundation.CGRect)
- func CGContextClipToRects(c CGContextRef, rects unsafe.Pointer, count int)
- func CGContextClosePath(c CGContextRef)
- func CGContextConcatCTM(c CGContextRef, transform corefoundation.CGAffineTransform)
- func CGContextConvertPointToDeviceSpace(c CGContextRef, point corefoundation.CGPoint) corefoundation.CGPoint
- func CGContextConvertPointToUserSpace(c CGContextRef, point corefoundation.CGPoint) corefoundation.CGPoint
- func CGContextConvertRectToDeviceSpace(c CGContextRef, rect corefoundation.CGRect) corefoundation.CGRect
- func CGContextConvertRectToUserSpace(c CGContextRef, rect corefoundation.CGRect) corefoundation.CGRect
- func CGContextConvertSizeToDeviceSpace(c CGContextRef, size corefoundation.CGSize) corefoundation.CGSize
- func CGContextConvertSizeToUserSpace(c CGContextRef, size corefoundation.CGSize) corefoundation.CGSize
- func CGContextDrawConicGradient(c CGContextRef, gradient CGGradientRef, center corefoundation.CGPoint, ...)
- func CGContextDrawImage(c CGContextRef, rect corefoundation.CGRect, image CGImageRef)
- func CGContextDrawImageApplyingToneMapping(c CGContextRef, r corefoundation.CGRect, image CGImageRef, ...) bool
- func CGContextDrawLayerAtPoint(context_ CGContextRef, point corefoundation.CGPoint, layer CGLayerRef)
- func CGContextDrawLayerInRect(context_ CGContextRef, rect corefoundation.CGRect, layer CGLayerRef)
- func CGContextDrawLinearGradient(c CGContextRef, gradient CGGradientRef, startPoint corefoundation.CGPoint, ...)
- func CGContextDrawPDFDocument(c CGContextRef, rect corefoundation.CGRect, document CGPDFDocumentRef, ...)
- func CGContextDrawPDFPage(c CGContextRef, page CGPDFPageRef)
- func CGContextDrawPath(c CGContextRef, mode CGPathDrawingMode)
- func CGContextDrawRadialGradient(c CGContextRef, gradient CGGradientRef, startCenter corefoundation.CGPoint, ...)
- func CGContextDrawShading(c CGContextRef, shading CGShadingRef)
- func CGContextDrawTiledImage(c CGContextRef, rect corefoundation.CGRect, image CGImageRef)
- func CGContextEOClip(c CGContextRef)
- func CGContextEOFillPath(c CGContextRef)
- func CGContextEndPage(c CGContextRef)
- func CGContextEndTransparencyLayer(c CGContextRef)
- func CGContextFillEllipseInRect(c CGContextRef, rect corefoundation.CGRect)
- func CGContextFillPath(c CGContextRef)
- func CGContextFillRect(c CGContextRef, rect corefoundation.CGRect)
- func CGContextFillRects(c CGContextRef, rects unsafe.Pointer, count int)
- func CGContextFlush(c CGContextRef)
- func CGContextGetCTM(c CGContextRef) corefoundation.CGAffineTransform
- func CGContextGetClipBoundingBox(c CGContextRef) corefoundation.CGRect
- func CGContextGetContentToneMappingInfo(c CGContextRef) unsafe.Pointer
- func CGContextGetEDRTargetHeadroom(c CGContextRef) float32
- func CGContextGetPathBoundingBox(c CGContextRef) corefoundation.CGRect
- func CGContextGetPathCurrentPoint(c CGContextRef) corefoundation.CGPoint
- func CGContextGetTextMatrix(c CGContextRef) corefoundation.CGAffineTransform
- func CGContextGetTextPosition(c CGContextRef) corefoundation.CGPoint
- func CGContextGetTypeID() int
- func CGContextGetUserSpaceToDeviceSpaceTransform(c CGContextRef) corefoundation.CGAffineTransform
- func CGContextIsPathEmpty(c CGContextRef) bool
- func CGContextMoveToPoint(c CGContextRef, x float64, y float64)
- func CGContextPathContainsPoint(c CGContextRef, point corefoundation.CGPoint, mode CGPathDrawingMode) bool
- func CGContextRelease(c CGContextRef)
- func CGContextReplacePathWithStrokedPath(c CGContextRef)
- func CGContextResetClip(c CGContextRef)
- func CGContextRestoreGState(c CGContextRef)
- func CGContextRotateCTM(c CGContextRef, angle float64)
- func CGContextSaveGState(c CGContextRef)
- func CGContextScaleCTM(c CGContextRef, sx float64, sy float64)
- func CGContextSelectFont(c CGContextRef, name unsafe.Pointer, size float64, textEncoding CGTextEncoding)
- func CGContextSetAllowsAntialiasing(c CGContextRef, allowsAntialiasing bool)
- func CGContextSetAllowsFontSmoothing(c CGContextRef, allowsFontSmoothing bool)
- func CGContextSetAllowsFontSubpixelPositioning(c CGContextRef, allowsFontSubpixelPositioning bool)
- func CGContextSetAllowsFontSubpixelQuantization(c CGContextRef, allowsFontSubpixelQuantization bool)
- func CGContextSetAlpha(c CGContextRef, alpha float64)
- func CGContextSetBlendMode(c CGContextRef, mode CGBlendMode)
- func CGContextSetCMYKFillColor(c CGContextRef, cyan float64, magenta float64, yellow float64, black float64, ...)
- func CGContextSetCMYKStrokeColor(c CGContextRef, cyan float64, magenta float64, yellow float64, black float64, ...)
- func CGContextSetCharacterSpacing(c CGContextRef, spacing float64)
- func CGContextSetContentToneMappingInfo(c CGContextRef, info unsafe.Pointer)
- func CGContextSetEDRTargetHeadroom(c CGContextRef, headroom float32) bool
- func CGContextSetFillColor(c CGContextRef, components unsafe.Pointer)
- func CGContextSetFillColorSpace(c CGContextRef, space CGColorSpaceRef)
- func CGContextSetFillColorWithColor(c CGContextRef, color CGColorRef)
- func CGContextSetFillPattern(c CGContextRef, pattern CGPatternRef, components unsafe.Pointer)
- func CGContextSetFlatness(c CGContextRef, flatness float64)
- func CGContextSetFont(c CGContextRef, font CGFontRef)
- func CGContextSetFontSize(c CGContextRef, size float64)
- func CGContextSetGrayFillColor(c CGContextRef, gray float64, alpha float64)
- func CGContextSetGrayStrokeColor(c CGContextRef, gray float64, alpha float64)
- func CGContextSetInterpolationQuality(c CGContextRef, quality CGInterpolationQuality)
- func CGContextSetLineCap(c CGContextRef, cap_ CGLineCap)
- func CGContextSetLineDash(c CGContextRef, phase float64, lengths unsafe.Pointer, count int)
- func CGContextSetLineJoin(c CGContextRef, join CGLineJoin)
- func CGContextSetLineWidth(c CGContextRef, width float64)
- func CGContextSetMiterLimit(c CGContextRef, limit float64)
- func CGContextSetPatternPhase(c CGContextRef, phase corefoundation.CGSize)
- func CGContextSetRGBFillColor(c CGContextRef, red float64, green float64, blue float64, alpha float64)
- func CGContextSetRGBStrokeColor(c CGContextRef, red float64, green float64, blue float64, alpha float64)
- func CGContextSetRenderingIntent(c CGContextRef, intent CGColorRenderingIntent)
- func CGContextSetShadow(c CGContextRef, offset corefoundation.CGSize, blur float64)
- func CGContextSetShadowWithColor(c CGContextRef, offset corefoundation.CGSize, blur float64, color CGColorRef)
- func CGContextSetShouldAntialias(c CGContextRef, shouldAntialias bool)
- func CGContextSetShouldSmoothFonts(c CGContextRef, shouldSmoothFonts bool)
- func CGContextSetShouldSubpixelPositionFonts(c CGContextRef, shouldSubpixelPositionFonts bool)
- func CGContextSetShouldSubpixelQuantizeFonts(c CGContextRef, shouldSubpixelQuantizeFonts bool)
- func CGContextSetStrokeColor(c CGContextRef, components unsafe.Pointer)
- func CGContextSetStrokeColorSpace(c CGContextRef, space CGColorSpaceRef)
- func CGContextSetStrokeColorWithColor(c CGContextRef, color CGColorRef)
- func CGContextSetStrokePattern(c CGContextRef, pattern CGPatternRef, components unsafe.Pointer)
- func CGContextSetTextDrawingMode(c CGContextRef, mode CGTextDrawingMode)
- func CGContextSetTextMatrix(c CGContextRef, t corefoundation.CGAffineTransform)
- func CGContextSetTextPosition(c CGContextRef, x float64, y float64)
- func CGContextShowGlyphs(c CGContextRef, g unsafe.Pointer, count int)
- func CGContextShowGlyphsAtPoint(c CGContextRef, x float64, y float64, glyphs unsafe.Pointer, count int)
- func CGContextShowGlyphsAtPositions(c CGContextRef, glyphs unsafe.Pointer, lpositions unsafe.Pointer, count int)
- func CGContextShowGlyphsWithAdvances(c CGContextRef, glyphs unsafe.Pointer, advances unsafe.Pointer, count int)
- func CGContextShowText(c CGContextRef, str unsafe.Pointer, length int)
- func CGContextShowTextAtPoint(c CGContextRef, x float64, y float64, str unsafe.Pointer, length int)
- func CGContextStrokeEllipseInRect(c CGContextRef, rect corefoundation.CGRect)
- func CGContextStrokeLineSegments(c CGContextRef, points unsafe.Pointer, count int)
- func CGContextStrokePath(c CGContextRef)
- func CGContextStrokeRect(c CGContextRef, rect corefoundation.CGRect)
- func CGContextStrokeRectWithWidth(c CGContextRef, rect corefoundation.CGRect, width float64)
- func CGContextSynchronize(c CGContextRef)
- func CGContextSynchronizeAttributes(c CGContextRef)
- func CGContextTranslateCTM(c CGContextRef, tx float64, ty float64)
- func CGConvertColorDataWithFormat(width int, height int, dstData unsafe.Pointer, dstFormat unsafe.Pointer, ...) bool
- func CGCursorIsDrawnInFramebuffer() int
- func CGCursorIsVisible() int
- func CGDataConsumerGetTypeID() int
- func CGDataConsumerRelease(consumer CGDataConsumerRef)
- func CGDataProviderCopyData(provider CGDataProviderRef) obj.Object
- func CGDataProviderGetInfo(provider CGDataProviderRef) unsafe.Pointer
- func CGDataProviderGetTypeID() int
- func CGDataProviderRelease(provider CGDataProviderRef)
- func CGDirectDisplayCopyCurrentMetalDevice(display uint32) unsafe.Pointer
- func CGDisplayAvailableModes(dsp uint32) obj.Object
- func CGDisplayBestModeForParameters(display uint32, bitsPerPixel int, width int, height int) (result obj.Object, exactMatch int)
- func CGDisplayBestModeForParametersAndRefreshRate(display uint32, bitsPerPixel int, width int, height int, refreshRate float64) (result obj.Object, exactMatch int)
- func CGDisplayBounds(display uint32) corefoundation.CGRect
- func CGDisplayCopyAllDisplayModes(display uint32, options obj.Object) obj.Object
- func CGDisplayCurrentMode(display uint32) obj.Object
- func CGDisplayFadeOperationInProgress() int
- func CGDisplayGammaTableCapacity(display uint32) uint32
- func CGDisplayIDToOpenGLDisplayMask(display uint32) uint32
- func CGDisplayIOServicePort(display uint32) int
- func CGDisplayIsActive(display uint32) int
- func CGDisplayIsAlwaysInMirrorSet(display uint32) int
- func CGDisplayIsAsleep(display uint32) int
- func CGDisplayIsBuiltin(display uint32) int
- func CGDisplayIsCaptured(display uint32) int
- func CGDisplayIsInHWMirrorSet(display uint32) int
- func CGDisplayIsInMirrorSet(display uint32) int
- func CGDisplayIsMain(display uint32) int
- func CGDisplayIsOnline(display uint32) int
- func CGDisplayIsStereo(display uint32) int
- func CGDisplayMirrorsDisplay(display uint32) uint32
- func CGDisplayModeCopyPixelEncoding(mode CGDisplayModeRef) obj.Object
- func CGDisplayModeGetHeight(mode CGDisplayModeRef) int
- func CGDisplayModeGetIODisplayModeID(mode CGDisplayModeRef) int32
- func CGDisplayModeGetIOFlags(mode CGDisplayModeRef) uint32
- func CGDisplayModeGetPixelHeight(mode CGDisplayModeRef) int
- func CGDisplayModeGetPixelWidth(mode CGDisplayModeRef) int
- func CGDisplayModeGetRefreshRate(mode CGDisplayModeRef) float64
- func CGDisplayModeGetTypeID() int
- func CGDisplayModeGetWidth(mode CGDisplayModeRef) int
- func CGDisplayModeIsUsableForDesktopGUI(mode CGDisplayModeRef) bool
- func CGDisplayModeRelease(mode CGDisplayModeRef)
- func CGDisplayModelNumber(display uint32) uint32
- func CGDisplayPixelsHigh(display uint32) int
- func CGDisplayPixelsWide(display uint32) int
- func CGDisplayPrimaryDisplay(display uint32) uint32
- func CGDisplayRestoreColorSyncSettings()
- func CGDisplayRotation(display uint32) float64
- func CGDisplayScreenSize(display uint32) corefoundation.CGSize
- func CGDisplaySerialNumber(display uint32) uint32
- func CGDisplayUnitNumber(display uint32) uint32
- func CGDisplayUsesOpenGLAcceleration(display uint32) int
- func CGDisplayVendorNumber(display uint32) uint32
- func CGEXRToneMappingGammaGetDefaultOptions() obj.Object
- func CGErrorSetCallback(callback unsafe.Pointer)
- func CGEventCreateData(allocator obj.Object, event CGEventRef) obj.Object
- func CGEventGetDoubleValueField(event CGEventRef, field CGEventField) float64
- func CGEventGetIntegerValueField(event CGEventRef, field CGEventField) int64
- func CGEventGetLocation(event CGEventRef) corefoundation.CGPoint
- func CGEventGetTimestamp(event CGEventRef) uint64
- func CGEventGetTypeID() int
- func CGEventGetUnflippedLocation(event CGEventRef) corefoundation.CGPoint
- func CGEventKeyboardGetUnicodeString(event CGEventRef, maxStringLength int) (actualStringLength int, unicodeString uint16)
- func CGEventKeyboardSetUnicodeString(event CGEventRef, stringLength int, unicodeString unsafe.Pointer)
- func CGEventPost(tap CGEventTapLocation, event CGEventRef)
- func CGEventPostToPSN(processSerialNumber unsafe.Pointer, event CGEventRef)
- func CGEventPostToPid(pid int, event CGEventRef)
- func CGEventSetDoubleValueField(event CGEventRef, field CGEventField, value float64)
- func CGEventSetFlags(event CGEventRef, flags CGEventFlags)
- func CGEventSetIntegerValueField(event CGEventRef, field CGEventField, value int64)
- func CGEventSetLocation(event CGEventRef, location corefoundation.CGPoint)
- func CGEventSetSource(event CGEventRef, source CGEventSourceRef)
- func CGEventSetTimestamp(event CGEventRef, timestamp uint64)
- func CGEventSetType(event CGEventRef, type_ CGEventType)
- func CGEventSourceButtonState(stateID CGEventSourceStateID, button CGMouseButton) bool
- func CGEventSourceCounterForEventType(stateID CGEventSourceStateID, eventType CGEventType) uint32
- func CGEventSourceGetKeyboardType(source CGEventSourceRef) uint32
- func CGEventSourceGetLocalEventsSuppressionInterval(source CGEventSourceRef) float64
- func CGEventSourceGetPixelsPerLine(source CGEventSourceRef) float64
- func CGEventSourceGetTypeID() int
- func CGEventSourceGetUserData(source CGEventSourceRef) int64
- func CGEventSourceKeyState(stateID CGEventSourceStateID, key uint16) bool
- func CGEventSourceSecondsSinceLastEventType(stateID CGEventSourceStateID, eventType CGEventType) float64
- func CGEventSourceSetKeyboardType(source CGEventSourceRef, keyboardType uint32)
- func CGEventSourceSetLocalEventsFilterDuringSuppressionState(source CGEventSourceRef, filter CGEventFilterMask, ...)
- func CGEventSourceSetLocalEventsSuppressionInterval(source CGEventSourceRef, seconds float64)
- func CGEventSourceSetPixelsPerLine(source CGEventSourceRef, pixelsPerLine float64)
- func CGEventSourceSetUserData(source CGEventSourceRef, userData int64)
- func CGEventTapCreate(tap CGEventTapLocation, place CGEventTapPlacement, options CGEventTapOptions, ...) obj.Object
- func CGEventTapCreateForPSN(processSerialNumber unsafe.Pointer, place CGEventTapPlacement, ...) obj.Object
- func CGEventTapCreateForPid(pid int, place CGEventTapPlacement, options CGEventTapOptions, ...) obj.Object
- func CGEventTapEnable(tap obj.Object, enable bool)
- func CGEventTapIsEnabled(tap obj.Object) bool
- func CGEventTapPostEvent(proxy CGEventTapProxy, event CGEventRef)
- func CGFontCanCreatePostScriptSubset(font CGFontRef, format CGFontPostScriptFormat) bool
- func CGFontCopyFullName(font CGFontRef) obj.Object
- func CGFontCopyGlyphNameForGlyph(font CGFontRef, glyph uint16) obj.Object
- func CGFontCopyPostScriptName(font CGFontRef) obj.Object
- func CGFontCopyTableForTag(font CGFontRef, tag uint32) obj.Object
- func CGFontCopyTableTags(font CGFontRef) obj.Object
- func CGFontCopyVariationAxes(font CGFontRef) obj.Object
- func CGFontCopyVariations(font CGFontRef) obj.Object
- func CGFontCreatePostScriptEncoding(font CGFontRef, encoding unsafe.Pointer) obj.Object
- func CGFontCreatePostScriptSubset(font CGFontRef, subsetName obj.Object, format CGFontPostScriptFormat, ...) obj.Object
- func CGFontGetAscent(font CGFontRef) int
- func CGFontGetCapHeight(font CGFontRef) int
- func CGFontGetDescent(font CGFontRef) int
- func CGFontGetFontBBox(font CGFontRef) corefoundation.CGRect
- func CGFontGetGlyphAdvances(font CGFontRef, glyphs unsafe.Pointer, count int) (ok bool, advances int32)
- func CGFontGetGlyphBBoxes(font CGFontRef, glyphs unsafe.Pointer, count int, ...) bool
- func CGFontGetGlyphWithGlyphName(font CGFontRef, name obj.Object) uint16
- func CGFontGetItalicAngle(font CGFontRef) float64
- func CGFontGetLeading(font CGFontRef) int
- func CGFontGetNumberOfGlyphs(font CGFontRef) int
- func CGFontGetStemV(font CGFontRef) float64
- func CGFontGetTypeID() int
- func CGFontGetUnitsPerEm(font CGFontRef) int
- func CGFontGetXHeight(font CGFontRef) int
- func CGFontRelease(font CGFontRef)
- func CGFunctionGetTypeID() int
- func CGFunctionRelease(function CGFunctionRef)
- func CGGetLastMouseDelta() (deltaX int32, deltaY int32)
- func CGGradientGetContentHeadroom(gradient CGGradientRef) float32
- func CGGradientGetTypeID() int
- func CGGradientRelease(gradient CGGradientRef)
- func CGImageCalculateContentAverageLightLevel(image CGImageRef) float32
- func CGImageCalculateContentHeadroom(image CGImageRef) float32
- func CGImageContainsImageSpecificToneMappingMetadata(image CGImageRef) bool
- func CGImageGetBitsPerComponent(image CGImageRef) int
- func CGImageGetBitsPerPixel(image CGImageRef) int
- func CGImageGetBytesPerRow(image CGImageRef) int
- func CGImageGetContentAverageLightLevel(image CGImageRef) float32
- func CGImageGetContentHeadroom(image CGImageRef) float32
- func CGImageGetDecode(image CGImageRef) unsafe.Pointer
- func CGImageGetHeight(image CGImageRef) int
- func CGImageGetShouldInterpolate(image CGImageRef) bool
- func CGImageGetTypeID() int
- func CGImageGetUTType(image CGImageRef) obj.Object
- func CGImageGetWidth(image CGImageRef) int
- func CGImageIsMask(image CGImageRef) bool
- func CGImageRelease(image CGImageRef)
- func CGImageShouldToneMap(image CGImageRef) bool
- func CGLayerGetSize(layer CGLayerRef) corefoundation.CGSize
- func CGLayerGetTypeID() int
- func CGLayerRelease(layer CGLayerRef)
- func CGMainDisplayID() uint32
- func CGOpenGLDisplayMaskToDisplayID(mask uint32) uint32
- func CGPDFArrayApplyBlock(array CGPDFArrayRef, block func(int, unsafe.Pointer, unsafe.Pointer) bool, ...)
- func CGPDFArrayGetArray(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
- func CGPDFArrayGetBoolean(array CGPDFArrayRef, index int) (ok bool, value uint8)
- func CGPDFArrayGetCount(array CGPDFArrayRef) int
- func CGPDFArrayGetDictionary(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
- func CGPDFArrayGetInteger(array CGPDFArrayRef, index int) (ok bool, value int)
- func CGPDFArrayGetName(array CGPDFArrayRef, index int, value string) bool
- func CGPDFArrayGetNull(array CGPDFArrayRef, index int) bool
- func CGPDFArrayGetNumber(array CGPDFArrayRef, index int) (ok bool, value float64)
- func CGPDFArrayGetObject(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
- func CGPDFArrayGetStream(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
- func CGPDFArrayGetString(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
- func CGPDFContentStreamGetStreams(cs CGPDFContentStreamRef) obj.Object
- func CGPDFContentStreamRelease(cs CGPDFContentStreamRef)
- func CGPDFContextAddDestinationAtPoint(context_ CGContextRef, name obj.Object, point corefoundation.CGPoint)
- func CGPDFContextAddDocumentMetadata(context_ CGContextRef, metadata obj.Object)
- func CGPDFContextBeginPage(context_ CGContextRef, pageInfo obj.Object)
- func CGPDFContextBeginTag(context_ CGContextRef, tagType CGPDFTagType, tagProperties obj.Object)
- func CGPDFContextClose(context_ CGContextRef)
- func CGPDFContextEndPage(context_ CGContextRef)
- func CGPDFContextEndTag(context_ CGContextRef)
- func CGPDFContextSetDestinationForRect(context_ CGContextRef, name obj.Object, rect corefoundation.CGRect)
- func CGPDFContextSetIDTree(context_ CGContextRef, idTreeDictionary CGPDFDictionaryRef)
- func CGPDFContextSetOutline(context_ CGContextRef, outline obj.Object)
- func CGPDFContextSetPageTagStructureTree(context_ CGContextRef, pageTagStructureTreeDictionary obj.Object)
- func CGPDFContextSetParentTree(context_ CGContextRef, parentTreeDictionary CGPDFDictionaryRef)
- func CGPDFContextSetURLForRect(context_ CGContextRef, url obj.Object, rect corefoundation.CGRect)
- func CGPDFDictionaryApplyBlock(dict CGPDFDictionaryRef, ...)
- func CGPDFDictionaryApplyFunction(dict CGPDFDictionaryRef, function unsafe.Pointer, info unsafe.Pointer)
- func CGPDFDictionaryGetArray(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
- func CGPDFDictionaryGetBoolean(dict CGPDFDictionaryRef, key string) (ok bool, value uint8)
- func CGPDFDictionaryGetCount(dict CGPDFDictionaryRef) int
- func CGPDFDictionaryGetDictionary(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
- func CGPDFDictionaryGetInteger(dict CGPDFDictionaryRef, key string) (ok bool, value int)
- func CGPDFDictionaryGetName(dict CGPDFDictionaryRef, key string, value string) bool
- func CGPDFDictionaryGetNumber(dict CGPDFDictionaryRef, key string) (ok bool, value float64)
- func CGPDFDictionaryGetObject(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
- func CGPDFDictionaryGetStream(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
- func CGPDFDictionaryGetString(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
- func CGPDFDocumentAllowsCopying(document CGPDFDocumentRef) bool
- func CGPDFDocumentAllowsPrinting(document CGPDFDocumentRef) bool
- func CGPDFDocumentGetArtBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
- func CGPDFDocumentGetBleedBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
- func CGPDFDocumentGetCropBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
- func CGPDFDocumentGetMediaBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
- func CGPDFDocumentGetNumberOfPages(document CGPDFDocumentRef) int
- func CGPDFDocumentGetOutline(document CGPDFDocumentRef) obj.Object
- func CGPDFDocumentGetRotationAngle(document CGPDFDocumentRef, page int) int
- func CGPDFDocumentGetTrimBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
- func CGPDFDocumentGetTypeID() int
- func CGPDFDocumentGetVersion(document CGPDFDocumentRef) (majorVersion int32, minorVersion int32)
- func CGPDFDocumentIsEncrypted(document CGPDFDocumentRef) bool
- func CGPDFDocumentIsUnlocked(document CGPDFDocumentRef) bool
- func CGPDFDocumentRelease(document CGPDFDocumentRef)
- func CGPDFDocumentUnlockWithPassword(document CGPDFDocumentRef, password string) bool
- func CGPDFObjectGetValue(object CGPDFObjectRef, type_ CGPDFObjectType, value unsafe.Pointer) bool
- func CGPDFOperatorTableRelease(table CGPDFOperatorTableRef)
- func CGPDFOperatorTableSetCallback(table CGPDFOperatorTableRef, name string, callback unsafe.Pointer)
- func CGPDFPageGetBoxRect(page CGPDFPageRef, box CGPDFBox) corefoundation.CGRect
- func CGPDFPageGetDrawingTransform(page CGPDFPageRef, box CGPDFBox, rect corefoundation.CGRect, rotate int, ...) corefoundation.CGAffineTransform
- func CGPDFPageGetPageNumber(page CGPDFPageRef) int
- func CGPDFPageGetRotationAngle(page CGPDFPageRef) int
- func CGPDFPageGetTypeID() int
- func CGPDFPageRelease(page CGPDFPageRef)
- func CGPDFScannerPopArray(scanner CGPDFScannerRef, value unsafe.Pointer) bool
- func CGPDFScannerPopBoolean(scanner CGPDFScannerRef) (ok bool, value uint8)
- func CGPDFScannerPopDictionary(scanner CGPDFScannerRef, value unsafe.Pointer) bool
- func CGPDFScannerPopInteger(scanner CGPDFScannerRef) (ok bool, value int)
- func CGPDFScannerPopName(scanner CGPDFScannerRef, value string) bool
- func CGPDFScannerPopNumber(scanner CGPDFScannerRef) (ok bool, value float64)
- func CGPDFScannerPopObject(scanner CGPDFScannerRef, value unsafe.Pointer) bool
- func CGPDFScannerPopStream(scanner CGPDFScannerRef, value unsafe.Pointer) bool
- func CGPDFScannerPopString(scanner CGPDFScannerRef, value unsafe.Pointer) bool
- func CGPDFScannerRelease(scanner CGPDFScannerRef)
- func CGPDFScannerScan(scanner CGPDFScannerRef) bool
- func CGPDFScannerStop(s CGPDFScannerRef)
- func CGPDFStringCopyDate(str CGPDFStringRef) obj.Object
- func CGPDFStringCopyTextString(str CGPDFStringRef) obj.Object
- func CGPDFStringGetBytePtr(str CGPDFStringRef) unsafe.Pointer
- func CGPDFStringGetLength(str CGPDFStringRef) int
- func CGPDFTagTypeGetName(tagType CGPDFTagType) string
- func CGPSConverterAbort(converter CGPSConverterRef) bool
- func CGPSConverterConvert(converter CGPSConverterRef, provider CGDataProviderRef, ...) bool
- func CGPSConverterGetTypeID() int
- func CGPSConverterIsConverting(converter CGPSConverterRef) bool
- func CGPathAddArc(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, ...)
- func CGPathAddArcToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x1 float64, ...)
- func CGPathAddCurveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, cp1x float64, ...)
- func CGPathAddEllipseInRect(path CGMutablePathRef, m *corefoundation.CGAffineTransform, ...)
- func CGPathAddLineToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, ...)
- func CGPathAddLines(path CGMutablePathRef, m *corefoundation.CGAffineTransform, ...)
- func CGPathAddPath(path1 CGMutablePathRef, m *corefoundation.CGAffineTransform, path2 CGPathRef)
- func CGPathAddQuadCurveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, cpx float64, ...)
- func CGPathAddRect(path CGMutablePathRef, m *corefoundation.CGAffineTransform, ...)
- func CGPathAddRects(path CGMutablePathRef, m *corefoundation.CGAffineTransform, ...)
- func CGPathAddRelativeArc(path CGMutablePathRef, matrix *corefoundation.CGAffineTransform, x float64, ...)
- func CGPathAddRoundedRect(path CGMutablePathRef, transform *corefoundation.CGAffineTransform, ...)
- func CGPathApply(path CGPathRef, info unsafe.Pointer, function unsafe.Pointer)
- func CGPathApplyWithBlock(path CGPathRef, block unsafe.Pointer)
- func CGPathCloseSubpath(path CGMutablePathRef)
- func CGPathContainsPoint(path CGPathRef, m *corefoundation.CGAffineTransform, ...) bool
- func CGPathCreateSeparateComponents(path CGPathRef, evenOddFillRule bool) obj.Object
- func CGPathEqualToPath(path1 CGPathRef, path2 CGPathRef) bool
- func CGPathGetBoundingBox(path CGPathRef) corefoundation.CGRect
- func CGPathGetCurrentPoint(path CGPathRef) corefoundation.CGPoint
- func CGPathGetPathBoundingBox(path CGPathRef) corefoundation.CGRect
- func CGPathGetTypeID() int
- func CGPathIntersectsPath(path1 CGPathRef, path2 CGPathRef, evenOddFillRule bool) bool
- func CGPathIsEmpty(path CGPathRef) bool
- func CGPathIsRect(path CGPathRef, rect *corefoundation.CGRect) bool
- func CGPathMoveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, ...)
- func CGPathRelease(path CGPathRef)
- func CGPatternGetTypeID() int
- func CGPatternRelease(pattern CGPatternRef)
- func CGPointApplyAffineTransform(point corefoundation.CGPoint, t corefoundation.CGAffineTransform) corefoundation.CGPoint
- func CGPointCreateDictionaryRepresentation(point corefoundation.CGPoint) obj.Object
- func CGPointEqualToPoint(point1 corefoundation.CGPoint, point2 corefoundation.CGPoint) bool
- func CGPointMake(x float64, y float64) corefoundation.CGPoint
- func CGPointMakeWithDictionaryRepresentation(dict obj.Object, point *corefoundation.CGPoint) bool
- func CGPointZero() corefoundation.CGPoint
- func CGPreflightListenEventAccess() bool
- func CGPreflightPostEventAccess() bool
- func CGPreflightScreenCaptureAccess() bool
- func CGRectApplyAffineTransform(rect corefoundation.CGRect, t corefoundation.CGAffineTransform) corefoundation.CGRect
- func CGRectContainsPoint(rect corefoundation.CGRect, point corefoundation.CGPoint) bool
- func CGRectContainsRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool
- func CGRectCreateDictionaryRepresentation(arg corefoundation.CGRect) obj.Object
- func CGRectDivide(rect corefoundation.CGRect, slice *corefoundation.CGRect, ...)
- func CGRectEqualToRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool
- func CGRectGetHeight(rect corefoundation.CGRect) float64
- func CGRectGetMaxX(rect corefoundation.CGRect) float64
- func CGRectGetMaxY(rect corefoundation.CGRect) float64
- func CGRectGetMidX(rect corefoundation.CGRect) float64
- func CGRectGetMidY(rect corefoundation.CGRect) float64
- func CGRectGetMinX(rect corefoundation.CGRect) float64
- func CGRectGetMinY(rect corefoundation.CGRect) float64
- func CGRectGetWidth(rect corefoundation.CGRect) float64
- func CGRectInfinite() corefoundation.CGRect
- func CGRectInset(rect corefoundation.CGRect, dx float64, dy float64) corefoundation.CGRect
- func CGRectIntegral(rect corefoundation.CGRect) corefoundation.CGRect
- func CGRectIntersection(r1 corefoundation.CGRect, r2 corefoundation.CGRect) corefoundation.CGRect
- func CGRectIntersectsRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool
- func CGRectIsEmpty(rect corefoundation.CGRect) bool
- func CGRectIsInfinite(rect corefoundation.CGRect) bool
- func CGRectIsNull(rect corefoundation.CGRect) bool
- func CGRectMake(x float64, y float64, width float64, height float64) corefoundation.CGRect
- func CGRectMakeWithDictionaryRepresentation(dict obj.Object, rect *corefoundation.CGRect) bool
- func CGRectNull() corefoundation.CGRect
- func CGRectOffset(rect corefoundation.CGRect, dx float64, dy float64) corefoundation.CGRect
- func CGRectStandardize(rect corefoundation.CGRect) corefoundation.CGRect
- func CGRectUnion(r1 corefoundation.CGRect, r2 corefoundation.CGRect) corefoundation.CGRect
- func CGRectZero() corefoundation.CGRect
- func CGReleaseScreenRefreshRects(rects *corefoundation.CGRect)
- func CGRenderingBufferLockBytePtr(provider CGRenderingBufferProviderRef) unsafe.Pointer
- func CGRenderingBufferProviderGetSize(provider CGRenderingBufferProviderRef) int
- func CGRenderingBufferProviderGetTypeID() int
- func CGRenderingBufferUnlockBytePtr(provider CGRenderingBufferProviderRef)
- func CGRequestListenEventAccess() bool
- func CGRequestPostEventAccess() bool
- func CGRequestScreenCaptureAccess() bool
- func CGRestorePermanentDisplayConfiguration()
- func CGScreenUnregisterMoveCallback(callback unsafe.Pointer, userInfo unsafe.Pointer)
- func CGSessionCopyCurrentDictionary() obj.Object
- func CGShadingGetContentHeadroom(shading CGShadingRef) float32
- func CGShadingGetTypeID() int
- func CGShadingRelease(shading CGShadingRef)
- func CGShieldingWindowID(display uint32) uint32
- func CGShieldingWindowLevel() int32
- func CGSizeApplyAffineTransform(size corefoundation.CGSize, t corefoundation.CGAffineTransform) corefoundation.CGSize
- func CGSizeCreateDictionaryRepresentation(size corefoundation.CGSize) obj.Object
- func CGSizeEqualToSize(size1 corefoundation.CGSize, size2 corefoundation.CGSize) bool
- func CGSizeMake(width float64, height float64) corefoundation.CGSize
- func CGSizeMakeWithDictionaryRepresentation(dict obj.Object, size *corefoundation.CGSize) bool
- func CGSizeZero() corefoundation.CGSize
- func CGUnregisterScreenRefreshCallback(callback unsafe.Pointer, userInfo unsafe.Pointer)
- func CGVectorMake(dx float64, dy float64) corefoundation.CGVector
- func CGWaitForScreenUpdateRects(requestedOperations CGScreenUpdateOperation, rects *corefoundation.CGRect) (result CGError, currentOperation CGScreenUpdateOperation, rectCount int, ...)
- func CGWindowLevelForKey(key CGWindowLevelKey) int32
- func CGWindowListCopyWindowInfo(option CGWindowListOption, relativeToWindow uint32) obj.Object
- func CGWindowListCreate(option CGWindowListOption, relativeToWindow uint32) obj.Object
- func CGWindowListCreateDescriptionFromArray(windowArray obj.Object) obj.Object
- func CGWindowServerCFMachPort() obj.Object
- func CGWindowServerCreateServerPort() obj.Object
- func KCGAdaptiveMaximumBitDepth() obj.Object
- func KCGColorBlack() obj.Object
- func KCGColorClear() obj.Object
- func KCGColorConversionBlackPointCompensation() obj.Object
- func KCGColorConversionTRCSize() obj.Object
- func KCGColorSpaceACESCGLinear() obj.Object
- func KCGColorSpaceAdobeRGB1998() obj.Object
- func KCGColorSpaceCoreMedia709() obj.Object
- func KCGColorSpaceDCIP3() obj.Object
- func KCGColorSpaceDisplayP3() obj.Object
- func KCGColorSpaceDisplayP3_HLG() obj.Object
- func KCGColorSpaceDisplayP3_PQ() obj.Object
- func KCGColorSpaceDisplayP3_PQ_EOTF() obj.Object
- func KCGColorSpaceExtendedDisplayP3() obj.Object
- func KCGColorSpaceExtendedGray() obj.Object
- func KCGColorSpaceExtendedITUR_2020() obj.Object
- func KCGColorSpaceExtendedLinearDisplayP3() obj.Object
- func KCGColorSpaceExtendedLinearGray() obj.Object
- func KCGColorSpaceExtendedLinearITUR_2020() obj.Object
- func KCGColorSpaceExtendedLinearSRGB() obj.Object
- func KCGColorSpaceExtendedRange() obj.Object
- func KCGColorSpaceExtendedSRGB() obj.Object
- func KCGColorSpaceGenericCMYK() obj.Object
- func KCGColorSpaceGenericGray() obj.Object
- func KCGColorSpaceGenericGrayGamma2_2() obj.Object
- func KCGColorSpaceGenericLab() obj.Object
- func KCGColorSpaceGenericRGB() obj.Object
- func KCGColorSpaceGenericRGBLinear() obj.Object
- func KCGColorSpaceGenericXYZ() obj.Object
- func KCGColorSpaceITUR_709() obj.Object
- func KCGColorSpaceITUR_709_HLG() obj.Object
- func KCGColorSpaceITUR_709_PQ() obj.Object
- func KCGColorSpaceITUR_2020() obj.Object
- func KCGColorSpaceITUR_2020_HLG() obj.Object
- func KCGColorSpaceITUR_2020_PQ() obj.Object
- func KCGColorSpaceITUR_2020_PQ_EOTF() obj.Object
- func KCGColorSpaceITUR_2020_sRGBGamma() obj.Object
- func KCGColorSpaceITUR_2100_HLG() obj.Object
- func KCGColorSpaceITUR_2100_PQ() obj.Object
- func KCGColorSpaceLinearDisplayP3() obj.Object
- func KCGColorSpaceLinearGray() obj.Object
- func KCGColorSpaceLinearITUR_2020() obj.Object
- func KCGColorSpaceLinearSRGB() obj.Object
- func KCGColorSpaceROMMRGB() obj.Object
- func KCGColorSpaceSRGB() obj.Object
- func KCGColorWhite() obj.Object
- func KCGContentAverageLightLevel() obj.Object
- func KCGContentAverageLightLevelNits() obj.Object
- func KCGDefaultHDRImageContentHeadroom() float32
- func KCGDisplayShowDuplicateLowResolutionModes() obj.Object
- func KCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995() obj.Object
- func KCGDynamicRangeConstrained() obj.Object
- func KCGDynamicRangeHigh() obj.Object
- func KCGDynamicRangeStandard() obj.Object
- func KCGEXRToneMappingGammaDefog() obj.Object
- func KCGEXRToneMappingGammaExposure() obj.Object
- func KCGEXRToneMappingGammaKneeHigh() obj.Object
- func KCGEXRToneMappingGammaKneeLow() obj.Object
- func KCGFontVariationAxisDefaultValue() obj.Object
- func KCGFontVariationAxisMaxValue() obj.Object
- func KCGFontVariationAxisMinValue() obj.Object
- func KCGFontVariationAxisName() obj.Object
- func KCGPDFContextAccessPermissions() obj.Object
- func KCGPDFContextAllowsCopying() obj.Object
- func KCGPDFContextAllowsPrinting() obj.Object
- func KCGPDFContextArtBox() obj.Object
- func KCGPDFContextAuthor() obj.Object
- func KCGPDFContextBleedBox() obj.Object
- func KCGPDFContextCreateLinearizedPDF() obj.Object
- func KCGPDFContextCreatePDFA() obj.Object
- func KCGPDFContextCreator() obj.Object
- func KCGPDFContextCropBox() obj.Object
- func KCGPDFContextEncryptionKeyLength() obj.Object
- func KCGPDFContextKeywords() obj.Object
- func KCGPDFContextMediaBox() obj.Object
- func KCGPDFContextOutputIntent() obj.Object
- func KCGPDFContextOutputIntents() obj.Object
- func KCGPDFContextOwnerPassword() obj.Object
- func KCGPDFContextSubject() obj.Object
- func KCGPDFContextTitle() obj.Object
- func KCGPDFContextTrimBox() obj.Object
- func KCGPDFContextUserPassword() obj.Object
- func KCGPDFOutlineChildren() obj.Object
- func KCGPDFOutlineDestination() obj.Object
- func KCGPDFOutlineDestinationRect() obj.Object
- func KCGPDFOutlineTitle() obj.Object
- func KCGPDFTagPropertyActualText() uintptr
- func KCGPDFTagPropertyAlternativeText() uintptr
- func KCGPDFTagPropertyLanguageText() uintptr
- func KCGPDFTagPropertyTitleText() uintptr
- func KCGPDFXDestinationOutputProfile() obj.Object
- func KCGPDFXInfo() obj.Object
- func KCGPDFXOutputCondition() obj.Object
- func KCGPDFXOutputConditionIdentifier() obj.Object
- func KCGPDFXOutputIntentSubtype() obj.Object
- func KCGPDFXRegistryName() obj.Object
- func KCGPreferredDynamicRange() obj.Object
- func KCGSkipBoostToHDR() obj.Object
- func KCGUse100nitsHLGOOTF() obj.Object
- func KCGUseBT1886ForCoreVideoGamma() obj.Object
- func KCGUseLegacyHDREcosystem() obj.Object
- func KCGWindowAlpha() obj.Object
- func KCGWindowBackingLocationVideoMemory() obj.Object
- func KCGWindowBounds() obj.Object
- func KCGWindowIsOnscreen() obj.Object
- func KCGWindowLayer() obj.Object
- func KCGWindowMemoryUsage() obj.Object
- func KCGWindowName() obj.Object
- func KCGWindowNumber() obj.Object
- func KCGWindowOwnerName() obj.Object
- func KCGWindowOwnerPID() obj.Object
- func KCGWindowSharingState() obj.Object
- func KCGWindowStoreType() obj.Object
- func KCGWindowWorkspace() obj.Object
- type CGBitmapInfo
- type CGBitmapLayout
- type CGBitmapParameters
- type CGBlendMode
- type CGCaptureOptions
- type CGColor
- type CGColorBufferFormat
- type CGColorConversionInfo
- type CGColorConversionInfoRef
- func CGColorConversionInfoCreate(src CGColorSpaceRef, dst CGColorSpaceRef) CGColorConversionInfoRef
- func CGColorConversionInfoCreateFromListWithArguments(options obj.Object, arg CGColorSpaceRef, ...) CGColorConversionInfoRef
- func CGColorConversionInfoCreateWithOptions(src CGColorSpaceRef, dst CGColorSpaceRef, options obj.Object) CGColorConversionInfoRef
- type CGColorConversionInfoTransformType
- type CGColorDataFormat
- type CGColorModel
- type CGColorRef
- func CGColorCreate(space CGColorSpaceRef, components unsafe.Pointer) CGColorRef
- func CGColorCreateCopy(color CGColorRef) CGColorRef
- func CGColorCreateCopyByMatchingToColorSpace(arg CGColorSpaceRef, intent CGColorRenderingIntent, color CGColorRef, ...) CGColorRef
- func CGColorCreateCopyWithAlpha(color CGColorRef, alpha float64) CGColorRef
- func CGColorCreateGenericCMYK(cyan float64, magenta float64, yellow float64, black float64, alpha float64) CGColorRef
- func CGColorCreateGenericGray(gray float64, alpha float64) CGColorRef
- func CGColorCreateGenericGrayGamma2_2(gray float64, alpha float64) CGColorRef
- func CGColorCreateGenericRGB(red float64, green float64, blue float64, alpha float64) CGColorRef
- func CGColorCreateSRGB(red float64, green float64, blue float64, alpha float64) CGColorRef
- func CGColorCreateWithContentHeadroom(headroom float32, space CGColorSpaceRef, red float64, green float64, ...) CGColorRef
- func CGColorCreateWithPattern(space CGColorSpaceRef, pattern CGPatternRef, components unsafe.Pointer) CGColorRef
- func CGColorGetConstantColor(colorName obj.Object) CGColorRef
- func CGColorRetain(color CGColorRef) CGColorRef
- type CGColorRenderingIntent
- type CGColorSpace
- type CGColorSpaceModel
- type CGColorSpaceRef
- func CGBitmapContextGetColorSpace(context_ CGContextRef) CGColorSpaceRef
- func CGColorGetColorSpace(color CGColorRef) CGColorSpaceRef
- func CGColorSpaceCopyBaseColorSpace(space CGColorSpaceRef) CGColorSpaceRef
- func CGColorSpaceCreateCalibratedGray(whitePoint unsafe.Pointer, blackPoint unsafe.Pointer, gamma float64) CGColorSpaceRef
- func CGColorSpaceCreateCalibratedRGB(whitePoint unsafe.Pointer, blackPoint unsafe.Pointer, gamma unsafe.Pointer, ...) CGColorSpaceRef
- func CGColorSpaceCreateCopyWithStandardRange(space CGColorSpaceRef) CGColorSpaceRef
- func CGColorSpaceCreateDeviceCMYK() CGColorSpaceRef
- func CGColorSpaceCreateDeviceGray() CGColorSpaceRef
- func CGColorSpaceCreateDeviceRGB() CGColorSpaceRef
- func CGColorSpaceCreateExtended(space CGColorSpaceRef) CGColorSpaceRef
- func CGColorSpaceCreateExtendedLinearized(space CGColorSpaceRef) CGColorSpaceRef
- func CGColorSpaceCreateICCBased(nComponents int, range_ unsafe.Pointer, profile CGDataProviderRef, ...) CGColorSpaceRef
- func CGColorSpaceCreateIndexed(baseSpace CGColorSpaceRef, lastIndex int, colorTable unsafe.Pointer) CGColorSpaceRef
- func CGColorSpaceCreateLab(whitePoint unsafe.Pointer, blackPoint unsafe.Pointer, range_ unsafe.Pointer) CGColorSpaceRef
- func CGColorSpaceCreateLinearized(space CGColorSpaceRef) CGColorSpaceRef
- func CGColorSpaceCreatePattern(baseSpace CGColorSpaceRef) CGColorSpaceRef
- func CGColorSpaceCreateWithColorSyncProfile(arg obj.Object, options obj.Object) CGColorSpaceRef
- func CGColorSpaceCreateWithICCData(data obj.Object) CGColorSpaceRef
- func CGColorSpaceCreateWithICCProfile(data obj.Object) CGColorSpaceRef
- func CGColorSpaceCreateWithName(name obj.Object) CGColorSpaceRef
- func CGColorSpaceCreateWithPlatformColorSpace(ref unsafe.Pointer) CGColorSpaceRef
- func CGColorSpaceCreateWithPropertyList(plist obj.Object) CGColorSpaceRef
- func CGColorSpaceGetBaseColorSpace(space CGColorSpaceRef) CGColorSpaceRef
- func CGColorSpaceRetain(space CGColorSpaceRef) CGColorSpaceRef
- func CGDisplayCopyColorSpace(display uint32) CGColorSpaceRef
- func CGImageGetColorSpace(image CGImageRef) CGColorSpaceRef
- type CGComponent
- type CGConfigureOption
- type CGContentInfo
- type CGContentToneMappingInfo
- type CGContext
- type CGContextRef
- func CGBitmapContextCreate(data unsafe.Pointer, width int, height int, bitsPerComponent int, ...) CGContextRef
- func CGBitmapContextCreateAdaptive(width int, height int, auxiliaryInfo obj.Object, onResolve unsafe.Pointer, ...) CGContextRef
- func CGBitmapContextCreateWithData(data unsafe.Pointer, width int, height int, bitsPerComponent int, ...) CGContextRef
- func CGContextRetain(c CGContextRef) CGContextRef
- func CGDisplayGetDrawingContext(display uint32) CGContextRef
- func CGLayerGetContext(layer CGLayerRef) CGContextRef
- func CGPDFContextCreate(consumer CGDataConsumerRef, mediaBox *corefoundation.CGRect, ...) CGContextRef
- func CGPDFContextCreateWithURL(url obj.Object, mediaBox *corefoundation.CGRect, auxiliaryInfo obj.Object) CGContextRef
- type CGDataConsumer
- type CGDataConsumerCallbacks
- type CGDataConsumerRef
- type CGDataProvider
- type CGDataProviderDirectCallbacks
- type CGDataProviderRef
- func CGDataProviderCreateDirect(info unsafe.Pointer, size int64, callbacks unsafe.Pointer) CGDataProviderRef
- func CGDataProviderCreateSequential(info unsafe.Pointer, callbacks unsafe.Pointer) CGDataProviderRef
- func CGDataProviderCreateWithCFData(data obj.Object) CGDataProviderRef
- func CGDataProviderCreateWithData(info unsafe.Pointer, data unsafe.Pointer, size int, releaseData unsafe.Pointer) CGDataProviderRef
- func CGDataProviderCreateWithFilename(filename string) CGDataProviderRef
- func CGDataProviderCreateWithURL(url obj.Object) CGDataProviderRef
- func CGDataProviderRetain(provider CGDataProviderRef) CGDataProviderRef
- func CGImageGetDataProvider(image CGImageRef) CGDataProviderRef
- type CGDataProviderSequentialCallbacks
- type CGDeviceColor
- type CGDisplayChangeSummaryFlags
- type CGDisplayConfigRef
- type CGDisplayMode
- type CGDisplayModeRef
- type CGDisplayStream
- type CGDisplayStreamFrameStatus
- type CGDisplayStreamRef
- type CGDisplayStreamUpdate
- type CGDisplayStreamUpdateRectType
- type CGDisplayStreamUpdateRef
- type CGError
- func CGAcquireDisplayFadeReservation(seconds float32) (result CGError, token uint32)
- func CGAssociateMouseAndMouseCursorPosition(connected int) CGError
- func CGBeginDisplayConfiguration(config unsafe.Pointer) CGError
- func CGCancelDisplayConfiguration(config CGDisplayConfigRef) CGError
- func CGCaptureAllDisplays() CGError
- func CGCaptureAllDisplaysWithOptions(options CGCaptureOptions) CGError
- func CGCompleteDisplayConfiguration(config CGDisplayConfigRef, option CGConfigureOption) CGError
- func CGConfigureDisplayFadeEffect(config CGDisplayConfigRef, fadeOutSeconds float32, fadeInSeconds float32, ...) CGError
- func CGConfigureDisplayMirrorOfDisplay(config CGDisplayConfigRef, display uint32, master uint32) CGError
- func CGConfigureDisplayMode(config CGDisplayConfigRef, display uint32, mode obj.Object) CGError
- func CGConfigureDisplayOrigin(config CGDisplayConfigRef, display uint32, x int32, y int32) CGError
- func CGConfigureDisplayStereoOperation(config CGDisplayConfigRef, display uint32, stereo int, forceBlueLine int) CGError
- func CGConfigureDisplayWithDisplayMode(config CGDisplayConfigRef, display uint32, mode CGDisplayModeRef, ...) CGError
- func CGDisplayCapture(display uint32) CGError
- func CGDisplayCaptureWithOptions(display uint32, options CGCaptureOptions) CGError
- func CGDisplayFade(token uint32, duration float32, startBlend float32, endBlend float32, ...) CGError
- func CGDisplayHideCursor(display uint32) CGError
- func CGDisplayMoveCursorToPoint(display uint32, point corefoundation.CGPoint) CGError
- func CGDisplayRegisterReconfigurationCallback(callback unsafe.Pointer, userInfo unsafe.Pointer) CGError
- func CGDisplayRelease(display uint32) CGError
- func CGDisplayRemoveReconfigurationCallback(callback unsafe.Pointer, userInfo unsafe.Pointer) CGError
- func CGDisplaySetDisplayMode(display uint32, mode CGDisplayModeRef, options obj.Object) CGError
- func CGDisplaySetStereoOperation(display uint32, stereo int, forceBlueLine int, option CGConfigureOption) CGError
- func CGDisplayShowCursor(display uint32) CGError
- func CGDisplaySwitchToMode(display uint32, mode obj.Object) CGError
- func CGEnableEventStateCombining(combineState int) CGError
- func CGGetActiveDisplayList(maxDisplays uint32, activeDisplays unsafe.Pointer) (result CGError, displayCount uint32)
- func CGGetDisplayTransferByFormula(display uint32) (result CGError, redMin float32, redMax float32, redGamma float32, ...)
- func CGGetDisplayTransferByTable(display uint32, capacity uint32, blueTable unsafe.Pointer) (result CGError, redTable float32, greenTable float32, sampleCount uint32)
- func CGGetDisplaysWithOpenGLDisplayMask(mask uint32, maxDisplays uint32, displays unsafe.Pointer) (result CGError, matchingDisplayCount uint32)
- func CGGetDisplaysWithPoint(point corefoundation.CGPoint, maxDisplays uint32, displays unsafe.Pointer) (result CGError, matchingDisplayCount uint32)
- func CGGetDisplaysWithRect(rect corefoundation.CGRect, maxDisplays uint32, displays unsafe.Pointer) (result CGError, matchingDisplayCount uint32)
- func CGGetEventTapList(maxNumberOfTaps uint32, tapList unsafe.Pointer) (result CGError, eventTapCount uint32)
- func CGGetOnlineDisplayList(maxDisplays uint32, onlineDisplays unsafe.Pointer) (result CGError, displayCount uint32)
- func CGInhibitLocalEvents(inhibit int) CGError
- func CGPostKeyboardEvent(keyChar uint16, virtualKey uint16, keyDown int) CGError
- func CGRegisterScreenRefreshCallback(callback unsafe.Pointer, userInfo unsafe.Pointer) CGError
- func CGReleaseAllDisplays() CGError
- func CGReleaseDisplayFadeReservation(token uint32) CGError
- func CGScreenRegisterMoveCallback(callback unsafe.Pointer, userInfo unsafe.Pointer) CGError
- func CGSetDisplayTransferByByteTable(display uint32, tableSize uint32, redTable unsafe.Pointer, ...) CGError
- func CGSetDisplayTransferByFormula(display uint32, redMin float32, redMax float32, redGamma float32, ...) CGError
- func CGSetDisplayTransferByTable(display uint32, tableSize uint32, redTable unsafe.Pointer, ...) CGError
- func CGSetLocalEventsFilterDuringSuppressionState(filter CGEventFilterMask, state CGEventSuppressionState) CGError
- func CGSetLocalEventsSuppressionInterval(seconds float64) CGError
- func CGWaitForScreenRefreshRects(rects *corefoundation.CGRect) (result CGError, count uint32)
- func CGWarpMouseCursorPosition(newCursorPosition corefoundation.CGPoint) CGError
- type CGEvent
- type CGEventField
- type CGEventFilterMask
- type CGEventFlags
- type CGEventMouseSubtype
- type CGEventRef
- func CGEventCreate(source CGEventSourceRef) CGEventRef
- func CGEventCreateCopy(event CGEventRef) CGEventRef
- func CGEventCreateFromData(allocator obj.Object, data obj.Object) CGEventRef
- func CGEventCreateKeyboardEvent(source CGEventSourceRef, virtualKey uint16, keyDown bool) CGEventRef
- func CGEventCreateMouseEvent(source CGEventSourceRef, mouseType CGEventType, ...) CGEventRef
- func CGEventCreateScrollWheelEvent2(source CGEventSourceRef, units CGScrollEventUnit, wheelCount uint32, ...) CGEventRef
- type CGEventSource
- type CGEventSourceRef
- type CGEventSourceStateID
- type CGEventSuppressionState
- type CGEventTapInformation
- type CGEventTapLocation
- type CGEventTapOptions
- type CGEventTapPlacement
- type CGEventTapProxy
- type CGEventType
- type CGFont
- type CGFontPostScriptFormat
- type CGFontRef
- func CGFontCreateCopyWithVariations(font CGFontRef, variations obj.Object) CGFontRef
- func CGFontCreateWithDataProvider(provider CGDataProviderRef) CGFontRef
- func CGFontCreateWithFontName(name obj.Object) CGFontRef
- func CGFontCreateWithPlatformFont(platformFontReference unsafe.Pointer) CGFontRef
- func CGFontRetain(font CGFontRef) CGFontRef
- type CGFunction
- type CGFunctionCallbacks
- type CGFunctionRef
- type CGGesturePhase
- type CGGlyphDeprecatedEnum
- type CGGradient
- type CGGradientDrawingOptions
- type CGGradientRef
- func CGGradientCreateWithColorComponents(space CGColorSpaceRef, components unsafe.Pointer, locations unsafe.Pointer, ...) CGGradientRef
- func CGGradientCreateWithColors(space CGColorSpaceRef, colors obj.Object, locations unsafe.Pointer) CGGradientRef
- func CGGradientCreateWithContentHeadroom(headroom float32, space CGColorSpaceRef, components unsafe.Pointer, ...) CGGradientRef
- func CGGradientRetain(gradient CGGradientRef) CGGradientRef
- type CGImage
- type CGImageAlphaInfo
- type CGImageByteOrderInfo
- type CGImageComponentInfo
- type CGImageDestinationRef
- type CGImageMetadataRef
- type CGImageMetadataTagRef
- type CGImagePixelFormatInfo
- type CGImageRef
- func CGBitmapContextCreateImage(context_ CGContextRef) CGImageRef
- func CGImageCreate(width int, height int, bitsPerComponent int, bitsPerPixel int, bytesPerRow int, ...) CGImageRef
- func CGImageCreateCopy(image CGImageRef) CGImageRef
- func CGImageCreateCopyWithCalculatedHDRStats(image CGImageRef) CGImageRef
- func CGImageCreateCopyWithColorSpace(image CGImageRef, space CGColorSpaceRef) CGImageRef
- func CGImageCreateCopyWithContentAverageLightLevel(image CGImageRef, avll float32) CGImageRef
- func CGImageCreateCopyWithContentHeadroom(headroom float32, image CGImageRef) CGImageRef
- func CGImageCreateWithContentHeadroom(headroom float32, width int, height int, bitsPerComponent int, ...) CGImageRef
- func CGImageCreateWithImageInRect(image CGImageRef, rect corefoundation.CGRect) CGImageRef
- func CGImageCreateWithJPEGDataProvider(source CGDataProviderRef, decode unsafe.Pointer, shouldInterpolate bool, ...) CGImageRef
- func CGImageCreateWithMask(image CGImageRef, mask CGImageRef) CGImageRef
- func CGImageCreateWithMaskingColors(image CGImageRef, components unsafe.Pointer) CGImageRef
- func CGImageCreateWithPNGDataProvider(source CGDataProviderRef, decode unsafe.Pointer, shouldInterpolate bool, ...) CGImageRef
- func CGImageMaskCreate(width int, height int, bitsPerComponent int, bitsPerPixel int, bytesPerRow int, ...) CGImageRef
- func CGImageRetain(image CGImageRef) CGImageRef
- func CGWindowListCreateImage(screenBounds corefoundation.CGRect, listOption CGWindowListOption, ...) CGImageRef
- func CGWindowListCreateImageFromArray(screenBounds corefoundation.CGRect, windowArray obj.Object, ...) CGImageRef
- type CGImageSourceRef
- type CGInterpolationQuality
- type CGLayer
- type CGLayerRef
- type CGLineCap
- type CGLineJoin
- type CGMomentumScrollPhase
- type CGMouseButton
- type CGMutableImageMetadataRef
- type CGMutablePathRef
- type CGPDFAccessPermissions
- type CGPDFArray
- type CGPDFArrayRef
- type CGPDFBox
- type CGPDFContentStream
- type CGPDFContentStreamRef
- func CGPDFContentStreamCreateWithPage(page CGPDFPageRef) CGPDFContentStreamRef
- func CGPDFContentStreamCreateWithStream(stream CGPDFStreamRef, streamResources CGPDFDictionaryRef, ...) CGPDFContentStreamRef
- func CGPDFContentStreamRetain(cs CGPDFContentStreamRef) CGPDFContentStreamRef
- func CGPDFScannerGetContentStream(scanner CGPDFScannerRef) CGPDFContentStreamRef
- type CGPDFDataFormat
- type CGPDFDictionary
- type CGPDFDictionaryRef
- type CGPDFDocument
- type CGPDFDocumentRef
- type CGPDFObject
- type CGPDFObjectRef
- type CGPDFObjectType
- type CGPDFOperatorTable
- type CGPDFOperatorTableRef
- type CGPDFPage
- type CGPDFPageRef
- type CGPDFScanner
- type CGPDFScannerRef
- type CGPDFStream
- type CGPDFStreamRef
- type CGPDFString
- type CGPDFStringRef
- type CGPDFTagType
- type CGPSConverter
- type CGPSConverterCallbacks
- type CGPSConverterRef
- type CGPath
- type CGPathDrawingMode
- type CGPathElement
- type CGPathElementType
- type CGPathRef
- func CGContextCopyPath(c CGContextRef) CGPathRef
- func CGPathCreateCopy(path CGPathRef) CGPathRef
- func CGPathCreateCopyByDashingPath(path CGPathRef, transform *corefoundation.CGAffineTransform, phase float64, ...) CGPathRef
- func CGPathCreateCopyByFlattening(path CGPathRef, flatteningThreshold float64) CGPathRef
- func CGPathCreateCopyByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
- func CGPathCreateCopyByNormalizing(path CGPathRef, evenOddFillRule bool) CGPathRef
- func CGPathCreateCopyByStrokingPath(path CGPathRef, transform *corefoundation.CGAffineTransform, lineWidth float64, ...) CGPathRef
- func CGPathCreateCopyBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
- func CGPathCreateCopyBySymmetricDifferenceOfPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
- func CGPathCreateCopyByTransformingPath(path CGPathRef, transform *corefoundation.CGAffineTransform) CGPathRef
- func CGPathCreateCopyByUnioningPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
- func CGPathCreateCopyOfLineByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
- func CGPathCreateCopyOfLineBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
- func CGPathCreateWithEllipseInRect(rect corefoundation.CGRect, transform *corefoundation.CGAffineTransform) CGPathRef
- func CGPathCreateWithRect(rect corefoundation.CGRect, transform *corefoundation.CGAffineTransform) CGPathRef
- func CGPathCreateWithRoundedRect(rect corefoundation.CGRect, cornerWidth float64, cornerHeight float64, ...) CGPathRef
- func CGPathRetain(path CGPathRef) CGPathRef
- type CGPattern
- type CGPatternCallbacks
- type CGPatternRef
- type CGPatternTiling
- type CGRenderingBufferProvider
- type CGRenderingBufferProviderRef
- type CGScreenUpdateMoveDelta
- type CGScreenUpdateOperation
- type CGScrollEventUnit
- type CGScrollPhase
- type CGShading
- type CGShadingRef
- func CGShadingCreateAxial(space CGColorSpaceRef, start corefoundation.CGPoint, ...) CGShadingRef
- func CGShadingCreateAxialWithContentHeadroom(headroom float32, space CGColorSpaceRef, start corefoundation.CGPoint, ...) CGShadingRef
- func CGShadingCreateRadial(space CGColorSpaceRef, start corefoundation.CGPoint, startRadius float64, ...) CGShadingRef
- func CGShadingCreateRadialWithContentHeadroom(headroom float32, space CGColorSpaceRef, start corefoundation.CGPoint, ...) CGShadingRef
- func CGShadingRetain(shading CGShadingRef) CGShadingRef
- type CGTextDrawingMode
- type CGTextEncodingdeprecated
- type CGToneMapping
- type CGWindowBackingType
- type CGWindowImageOption
- type CGWindowLevelKey
- type CGWindowListOption
- type CGWindowSharingType
- type Clockid
- type ColorSyncProfile
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type IOSurface
- type IOSurfaceRef
- type Idtype
- type IpcInfoObjectType
- type MTLDevice
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NXMouseButton
- type OSClockid
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CGAffineTransformConcat ¶
func CGAffineTransformConcat(t1 corefoundation.CGAffineTransform, t2 corefoundation.CGAffineTransform) corefoundation.CGAffineTransform
CGAffineTransformConcat calls the CoreGraphics framework function CGAffineTransformConcat.
func CGAffineTransformDecompose ¶
func CGAffineTransformDecompose(transform corefoundation.CGAffineTransform) corefoundation.CGAffineTransformComponents
CGAffineTransformDecompose calls the CoreGraphics framework function CGAffineTransformDecompose.
func CGAffineTransformEqualToTransform ¶
func CGAffineTransformEqualToTransform(t1 corefoundation.CGAffineTransform, t2 corefoundation.CGAffineTransform) bool
CGAffineTransformEqualToTransform calls the CoreGraphics framework function CGAffineTransformEqualToTransform.
func CGAffineTransformIdentity ¶
func CGAffineTransformIdentity() corefoundation.CGAffineTransform
CGAffineTransformIdentity returns the value of the constant CGAffineTransformIdentity.
func CGAffineTransformInvert ¶
func CGAffineTransformInvert(t corefoundation.CGAffineTransform) corefoundation.CGAffineTransform
CGAffineTransformInvert calls the CoreGraphics framework function CGAffineTransformInvert.
func CGAffineTransformIsIdentity ¶
func CGAffineTransformIsIdentity(t corefoundation.CGAffineTransform) bool
CGAffineTransformIsIdentity calls the CoreGraphics framework function CGAffineTransformIsIdentity.
func CGAffineTransformMake ¶
func CGAffineTransformMake(a float64, b float64, c float64, d float64, tx float64, ty float64) corefoundation.CGAffineTransform
CGAffineTransformMake calls the CoreGraphics framework function CGAffineTransformMake.
func CGAffineTransformMakeRotation ¶
func CGAffineTransformMakeRotation(angle float64) corefoundation.CGAffineTransform
CGAffineTransformMakeRotation calls the CoreGraphics framework function CGAffineTransformMakeRotation.
func CGAffineTransformMakeScale ¶
func CGAffineTransformMakeScale(sx float64, sy float64) corefoundation.CGAffineTransform
CGAffineTransformMakeScale calls the CoreGraphics framework function CGAffineTransformMakeScale.
func CGAffineTransformMakeTranslation ¶
func CGAffineTransformMakeTranslation(tx float64, ty float64) corefoundation.CGAffineTransform
CGAffineTransformMakeTranslation calls the CoreGraphics framework function CGAffineTransformMakeTranslation.
func CGAffineTransformMakeWithComponents ¶
func CGAffineTransformMakeWithComponents(components corefoundation.CGAffineTransformComponents) corefoundation.CGAffineTransform
CGAffineTransformMakeWithComponents calls the CoreGraphics framework function CGAffineTransformMakeWithComponents.
func CGAffineTransformRotate ¶
func CGAffineTransformRotate(t corefoundation.CGAffineTransform, angle float64) corefoundation.CGAffineTransform
CGAffineTransformRotate calls the CoreGraphics framework function CGAffineTransformRotate.
func CGAffineTransformScale ¶
func CGAffineTransformScale(t corefoundation.CGAffineTransform, sx float64, sy float64) corefoundation.CGAffineTransform
CGAffineTransformScale calls the CoreGraphics framework function CGAffineTransformScale.
func CGAffineTransformTranslate ¶
func CGAffineTransformTranslate(t corefoundation.CGAffineTransform, tx float64, ty float64) corefoundation.CGAffineTransform
CGAffineTransformTranslate calls the CoreGraphics framework function CGAffineTransformTranslate.
func CGBitmapContextGetBitsPerComponent ¶
func CGBitmapContextGetBitsPerComponent(context_ CGContextRef) int
CGBitmapContextGetBitsPerComponent calls the CoreGraphics framework function CGBitmapContextGetBitsPerComponent.
func CGBitmapContextGetBitsPerPixel ¶
func CGBitmapContextGetBitsPerPixel(context_ CGContextRef) int
CGBitmapContextGetBitsPerPixel calls the CoreGraphics framework function CGBitmapContextGetBitsPerPixel.
func CGBitmapContextGetBytesPerRow ¶
func CGBitmapContextGetBytesPerRow(context_ CGContextRef) int
CGBitmapContextGetBytesPerRow calls the CoreGraphics framework function CGBitmapContextGetBytesPerRow.
func CGBitmapContextGetData ¶
func CGBitmapContextGetData(context_ CGContextRef) unsafe.Pointer
CGBitmapContextGetData calls the CoreGraphics framework function CGBitmapContextGetData.
func CGBitmapContextGetHeight ¶
func CGBitmapContextGetHeight(context_ CGContextRef) int
CGBitmapContextGetHeight calls the CoreGraphics framework function CGBitmapContextGetHeight.
func CGBitmapContextGetWidth ¶
func CGBitmapContextGetWidth(context_ CGContextRef) int
CGBitmapContextGetWidth calls the CoreGraphics framework function CGBitmapContextGetWidth.
func CGColorConversionInfoConvertData ¶
func CGColorConversionInfoConvertData(info CGColorConversionInfoRef, width int, height int, dstData unsafe.Pointer, dstFormat CGColorBufferFormat, srcData unsafe.Pointer, srcFormat CGColorBufferFormat, options obj.Object) bool
CGColorConversionInfoConvertData calls the CoreGraphics framework function CGColorConversionInfoConvertData.
func CGColorConversionInfoCreateForToneMapping ¶
func CGColorConversionInfoCreateForToneMapping(from CGColorSpaceRef, sourceHeadroom float32, to CGColorSpaceRef, targetHeadroom float32, method CGToneMapping, options obj.Object) (obj.Object, error)
func CGColorConversionInfoGetTypeID ¶
func CGColorConversionInfoGetTypeID() int
CGColorConversionInfoGetTypeID calls the CoreGraphics framework function CGColorConversionInfoGetTypeID.
func CGColorEqualToColor ¶
func CGColorEqualToColor(color1 CGColorRef, color2 CGColorRef) bool
CGColorEqualToColor calls the CoreGraphics framework function CGColorEqualToColor.
func CGColorGetAlpha ¶
func CGColorGetAlpha(color CGColorRef) float64
CGColorGetAlpha calls the CoreGraphics framework function CGColorGetAlpha.
func CGColorGetComponents ¶
func CGColorGetComponents(color CGColorRef) unsafe.Pointer
CGColorGetComponents calls the CoreGraphics framework function CGColorGetComponents.
func CGColorGetContentHeadroom ¶
func CGColorGetContentHeadroom(color CGColorRef) float32
CGColorGetContentHeadroom calls the CoreGraphics framework function CGColorGetContentHeadroom.
func CGColorGetNumberOfComponents ¶
func CGColorGetNumberOfComponents(color CGColorRef) int
CGColorGetNumberOfComponents calls the CoreGraphics framework function CGColorGetNumberOfComponents.
func CGColorGetTypeID ¶
func CGColorGetTypeID() int
CGColorGetTypeID calls the CoreGraphics framework function CGColorGetTypeID.
func CGColorRelease ¶
func CGColorRelease(color CGColorRef)
CGColorRelease calls the CoreGraphics framework function CGColorRelease.
func CGColorSpaceCopyICCData ¶
func CGColorSpaceCopyICCData(space CGColorSpaceRef) obj.Object
CGColorSpaceCopyICCData calls the CoreGraphics framework function CGColorSpaceCopyICCData.
func CGColorSpaceCopyICCProfile ¶
func CGColorSpaceCopyICCProfile(space CGColorSpaceRef) obj.Object
CGColorSpaceCopyICCProfile calls the CoreGraphics framework function CGColorSpaceCopyICCProfile.
func CGColorSpaceCopyName ¶
func CGColorSpaceCopyName(space CGColorSpaceRef) obj.Object
CGColorSpaceCopyName calls the CoreGraphics framework function CGColorSpaceCopyName.
func CGColorSpaceCopyPropertyList ¶
func CGColorSpaceCopyPropertyList(space CGColorSpaceRef) obj.Object
CGColorSpaceCopyPropertyList calls the CoreGraphics framework function CGColorSpaceCopyPropertyList.
func CGColorSpaceGetColorTable ¶
func CGColorSpaceGetColorTable(space CGColorSpaceRef) (table uint8)
CGColorSpaceGetColorTable calls the CoreGraphics framework function CGColorSpaceGetColorTable.
func CGColorSpaceGetColorTableCount ¶
func CGColorSpaceGetColorTableCount(space CGColorSpaceRef) int
CGColorSpaceGetColorTableCount calls the CoreGraphics framework function CGColorSpaceGetColorTableCount.
func CGColorSpaceGetName ¶
func CGColorSpaceGetName(space CGColorSpaceRef) obj.Object
CGColorSpaceGetName calls the CoreGraphics framework function CGColorSpaceGetName.
func CGColorSpaceGetNumberOfComponents ¶
func CGColorSpaceGetNumberOfComponents(space CGColorSpaceRef) int
CGColorSpaceGetNumberOfComponents calls the CoreGraphics framework function CGColorSpaceGetNumberOfComponents.
func CGColorSpaceGetTypeID ¶
func CGColorSpaceGetTypeID() int
CGColorSpaceGetTypeID calls the CoreGraphics framework function CGColorSpaceGetTypeID.
func CGColorSpaceIsHDR ¶
func CGColorSpaceIsHDR(arg CGColorSpaceRef) bool
CGColorSpaceIsHDR calls the CoreGraphics framework function CGColorSpaceIsHDR.
func CGColorSpaceIsHLGBased ¶
func CGColorSpaceIsHLGBased(s CGColorSpaceRef) bool
CGColorSpaceIsHLGBased calls the CoreGraphics framework function CGColorSpaceIsHLGBased.
func CGColorSpaceIsPQBased ¶
func CGColorSpaceIsPQBased(s CGColorSpaceRef) bool
CGColorSpaceIsPQBased calls the CoreGraphics framework function CGColorSpaceIsPQBased.
func CGColorSpaceIsWideGamutRGB ¶
func CGColorSpaceIsWideGamutRGB(arg CGColorSpaceRef) bool
CGColorSpaceIsWideGamutRGB calls the CoreGraphics framework function CGColorSpaceIsWideGamutRGB.
func CGColorSpaceRelease ¶
func CGColorSpaceRelease(space CGColorSpaceRef)
CGColorSpaceRelease calls the CoreGraphics framework function CGColorSpaceRelease.
func CGColorSpaceSupportsOutput ¶
func CGColorSpaceSupportsOutput(space CGColorSpaceRef) bool
CGColorSpaceSupportsOutput calls the CoreGraphics framework function CGColorSpaceSupportsOutput.
func CGColorSpaceUsesExtendedRange ¶
func CGColorSpaceUsesExtendedRange(space CGColorSpaceRef) bool
CGColorSpaceUsesExtendedRange calls the CoreGraphics framework function CGColorSpaceUsesExtendedRange.
func CGColorSpaceUsesITUR_2100TF ¶
func CGColorSpaceUsesITUR_2100TF(arg CGColorSpaceRef) bool
CGColorSpaceUsesITUR_2100TF calls the CoreGraphics framework function CGColorSpaceUsesITUR_2100TF.
func CGContextAddArc ¶
func CGContextAddArc(c CGContextRef, x float64, y float64, radius float64, startAngle float64, endAngle float64, clockwise int)
CGContextAddArc calls the CoreGraphics framework function CGContextAddArc.
func CGContextAddArcToPoint ¶
func CGContextAddArcToPoint(c CGContextRef, x1 float64, y1 float64, x2 float64, y2 float64, radius float64)
CGContextAddArcToPoint calls the CoreGraphics framework function CGContextAddArcToPoint.
func CGContextAddCurveToPoint ¶
func CGContextAddCurveToPoint(c CGContextRef, cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)
CGContextAddCurveToPoint calls the CoreGraphics framework function CGContextAddCurveToPoint.
func CGContextAddEllipseInRect ¶
func CGContextAddEllipseInRect(c CGContextRef, rect corefoundation.CGRect)
CGContextAddEllipseInRect calls the CoreGraphics framework function CGContextAddEllipseInRect.
func CGContextAddLineToPoint ¶
func CGContextAddLineToPoint(c CGContextRef, x float64, y float64)
CGContextAddLineToPoint calls the CoreGraphics framework function CGContextAddLineToPoint.
func CGContextAddLines ¶
func CGContextAddLines(c CGContextRef, points unsafe.Pointer, count int)
CGContextAddLines calls the CoreGraphics framework function CGContextAddLines.
func CGContextAddPath ¶
func CGContextAddPath(c CGContextRef, path CGPathRef)
CGContextAddPath calls the CoreGraphics framework function CGContextAddPath.
func CGContextAddQuadCurveToPoint ¶
func CGContextAddQuadCurveToPoint(c CGContextRef, cpx float64, cpy float64, x float64, y float64)
CGContextAddQuadCurveToPoint calls the CoreGraphics framework function CGContextAddQuadCurveToPoint.
func CGContextAddRect ¶
func CGContextAddRect(c CGContextRef, rect corefoundation.CGRect)
CGContextAddRect calls the CoreGraphics framework function CGContextAddRect.
func CGContextAddRects ¶
func CGContextAddRects(c CGContextRef, rects unsafe.Pointer, count int)
CGContextAddRects calls the CoreGraphics framework function CGContextAddRects.
func CGContextBeginPage ¶
func CGContextBeginPage(c CGContextRef, mediaBox *corefoundation.CGRect)
CGContextBeginPage calls the CoreGraphics framework function CGContextBeginPage.
func CGContextBeginPath ¶
func CGContextBeginPath(c CGContextRef)
CGContextBeginPath calls the CoreGraphics framework function CGContextBeginPath.
func CGContextBeginTransparencyLayer ¶
func CGContextBeginTransparencyLayer(c CGContextRef, auxiliaryInfo obj.Object)
CGContextBeginTransparencyLayer calls the CoreGraphics framework function CGContextBeginTransparencyLayer.
func CGContextBeginTransparencyLayerWithRect ¶
func CGContextBeginTransparencyLayerWithRect(c CGContextRef, rect corefoundation.CGRect, auxInfo obj.Object)
CGContextBeginTransparencyLayerWithRect calls the CoreGraphics framework function CGContextBeginTransparencyLayerWithRect.
func CGContextClearRect ¶
func CGContextClearRect(c CGContextRef, rect corefoundation.CGRect)
CGContextClearRect calls the CoreGraphics framework function CGContextClearRect.
func CGContextClip ¶
func CGContextClip(c CGContextRef)
CGContextClip calls the CoreGraphics framework function CGContextClip.
func CGContextClipToMask ¶
func CGContextClipToMask(c CGContextRef, rect corefoundation.CGRect, mask CGImageRef)
CGContextClipToMask calls the CoreGraphics framework function CGContextClipToMask.
func CGContextClipToRect ¶
func CGContextClipToRect(c CGContextRef, rect corefoundation.CGRect)
CGContextClipToRect calls the CoreGraphics framework function CGContextClipToRect.
func CGContextClipToRects ¶
func CGContextClipToRects(c CGContextRef, rects unsafe.Pointer, count int)
CGContextClipToRects calls the CoreGraphics framework function CGContextClipToRects.
func CGContextClosePath ¶
func CGContextClosePath(c CGContextRef)
CGContextClosePath calls the CoreGraphics framework function CGContextClosePath.
func CGContextConcatCTM ¶
func CGContextConcatCTM(c CGContextRef, transform corefoundation.CGAffineTransform)
CGContextConcatCTM calls the CoreGraphics framework function CGContextConcatCTM.
func CGContextConvertPointToDeviceSpace ¶
func CGContextConvertPointToDeviceSpace(c CGContextRef, point corefoundation.CGPoint) corefoundation.CGPoint
CGContextConvertPointToDeviceSpace calls the CoreGraphics framework function CGContextConvertPointToDeviceSpace.
func CGContextConvertPointToUserSpace ¶
func CGContextConvertPointToUserSpace(c CGContextRef, point corefoundation.CGPoint) corefoundation.CGPoint
CGContextConvertPointToUserSpace calls the CoreGraphics framework function CGContextConvertPointToUserSpace.
func CGContextConvertRectToDeviceSpace ¶
func CGContextConvertRectToDeviceSpace(c CGContextRef, rect corefoundation.CGRect) corefoundation.CGRect
CGContextConvertRectToDeviceSpace calls the CoreGraphics framework function CGContextConvertRectToDeviceSpace.
func CGContextConvertRectToUserSpace ¶
func CGContextConvertRectToUserSpace(c CGContextRef, rect corefoundation.CGRect) corefoundation.CGRect
CGContextConvertRectToUserSpace calls the CoreGraphics framework function CGContextConvertRectToUserSpace.
func CGContextConvertSizeToDeviceSpace ¶
func CGContextConvertSizeToDeviceSpace(c CGContextRef, size corefoundation.CGSize) corefoundation.CGSize
CGContextConvertSizeToDeviceSpace calls the CoreGraphics framework function CGContextConvertSizeToDeviceSpace.
func CGContextConvertSizeToUserSpace ¶
func CGContextConvertSizeToUserSpace(c CGContextRef, size corefoundation.CGSize) corefoundation.CGSize
CGContextConvertSizeToUserSpace calls the CoreGraphics framework function CGContextConvertSizeToUserSpace.
func CGContextDrawConicGradient ¶
func CGContextDrawConicGradient(c CGContextRef, gradient CGGradientRef, center corefoundation.CGPoint, angle float64)
CGContextDrawConicGradient calls the CoreGraphics framework function CGContextDrawConicGradient.
func CGContextDrawImage ¶
func CGContextDrawImage(c CGContextRef, rect corefoundation.CGRect, image CGImageRef)
CGContextDrawImage calls the CoreGraphics framework function CGContextDrawImage.
func CGContextDrawImageApplyingToneMapping ¶
func CGContextDrawImageApplyingToneMapping(c CGContextRef, r corefoundation.CGRect, image CGImageRef, method CGToneMapping, options obj.Object) bool
CGContextDrawImageApplyingToneMapping calls the CoreGraphics framework function CGContextDrawImageApplyingToneMapping.
func CGContextDrawLayerAtPoint ¶
func CGContextDrawLayerAtPoint(context_ CGContextRef, point corefoundation.CGPoint, layer CGLayerRef)
CGContextDrawLayerAtPoint calls the CoreGraphics framework function CGContextDrawLayerAtPoint.
func CGContextDrawLayerInRect ¶
func CGContextDrawLayerInRect(context_ CGContextRef, rect corefoundation.CGRect, layer CGLayerRef)
CGContextDrawLayerInRect calls the CoreGraphics framework function CGContextDrawLayerInRect.
func CGContextDrawLinearGradient ¶
func CGContextDrawLinearGradient(c CGContextRef, gradient CGGradientRef, startPoint corefoundation.CGPoint, endPoint corefoundation.CGPoint, options CGGradientDrawingOptions)
CGContextDrawLinearGradient calls the CoreGraphics framework function CGContextDrawLinearGradient.
func CGContextDrawPDFDocument ¶
func CGContextDrawPDFDocument(c CGContextRef, rect corefoundation.CGRect, document CGPDFDocumentRef, page int)
CGContextDrawPDFDocument calls the CoreGraphics framework function CGContextDrawPDFDocument.
func CGContextDrawPDFPage ¶
func CGContextDrawPDFPage(c CGContextRef, page CGPDFPageRef)
CGContextDrawPDFPage calls the CoreGraphics framework function CGContextDrawPDFPage.
func CGContextDrawPath ¶
func CGContextDrawPath(c CGContextRef, mode CGPathDrawingMode)
CGContextDrawPath calls the CoreGraphics framework function CGContextDrawPath.
func CGContextDrawRadialGradient ¶
func CGContextDrawRadialGradient(c CGContextRef, gradient CGGradientRef, startCenter corefoundation.CGPoint, startRadius float64, endCenter corefoundation.CGPoint, endRadius float64, options CGGradientDrawingOptions)
CGContextDrawRadialGradient calls the CoreGraphics framework function CGContextDrawRadialGradient.
func CGContextDrawShading ¶
func CGContextDrawShading(c CGContextRef, shading CGShadingRef)
CGContextDrawShading calls the CoreGraphics framework function CGContextDrawShading.
func CGContextDrawTiledImage ¶
func CGContextDrawTiledImage(c CGContextRef, rect corefoundation.CGRect, image CGImageRef)
CGContextDrawTiledImage calls the CoreGraphics framework function CGContextDrawTiledImage.
func CGContextEOClip ¶
func CGContextEOClip(c CGContextRef)
CGContextEOClip calls the CoreGraphics framework function CGContextEOClip.
func CGContextEOFillPath ¶
func CGContextEOFillPath(c CGContextRef)
CGContextEOFillPath calls the CoreGraphics framework function CGContextEOFillPath.
func CGContextEndPage ¶
func CGContextEndPage(c CGContextRef)
CGContextEndPage calls the CoreGraphics framework function CGContextEndPage.
func CGContextEndTransparencyLayer ¶
func CGContextEndTransparencyLayer(c CGContextRef)
CGContextEndTransparencyLayer calls the CoreGraphics framework function CGContextEndTransparencyLayer.
func CGContextFillEllipseInRect ¶
func CGContextFillEllipseInRect(c CGContextRef, rect corefoundation.CGRect)
CGContextFillEllipseInRect calls the CoreGraphics framework function CGContextFillEllipseInRect.
func CGContextFillPath ¶
func CGContextFillPath(c CGContextRef)
CGContextFillPath calls the CoreGraphics framework function CGContextFillPath.
func CGContextFillRect ¶
func CGContextFillRect(c CGContextRef, rect corefoundation.CGRect)
CGContextFillRect calls the CoreGraphics framework function CGContextFillRect.
func CGContextFillRects ¶
func CGContextFillRects(c CGContextRef, rects unsafe.Pointer, count int)
CGContextFillRects calls the CoreGraphics framework function CGContextFillRects.
func CGContextFlush ¶
func CGContextFlush(c CGContextRef)
CGContextFlush calls the CoreGraphics framework function CGContextFlush.
func CGContextGetCTM ¶
func CGContextGetCTM(c CGContextRef) corefoundation.CGAffineTransform
CGContextGetCTM calls the CoreGraphics framework function CGContextGetCTM.
func CGContextGetClipBoundingBox ¶
func CGContextGetClipBoundingBox(c CGContextRef) corefoundation.CGRect
CGContextGetClipBoundingBox calls the CoreGraphics framework function CGContextGetClipBoundingBox.
func CGContextGetContentToneMappingInfo ¶
func CGContextGetContentToneMappingInfo(c CGContextRef) unsafe.Pointer
CGContextGetContentToneMappingInfo calls the CoreGraphics framework function CGContextGetContentToneMappingInfo.
func CGContextGetEDRTargetHeadroom ¶
func CGContextGetEDRTargetHeadroom(c CGContextRef) float32
CGContextGetEDRTargetHeadroom calls the CoreGraphics framework function CGContextGetEDRTargetHeadroom.
func CGContextGetPathBoundingBox ¶
func CGContextGetPathBoundingBox(c CGContextRef) corefoundation.CGRect
CGContextGetPathBoundingBox calls the CoreGraphics framework function CGContextGetPathBoundingBox.
func CGContextGetPathCurrentPoint ¶
func CGContextGetPathCurrentPoint(c CGContextRef) corefoundation.CGPoint
CGContextGetPathCurrentPoint calls the CoreGraphics framework function CGContextGetPathCurrentPoint.
func CGContextGetTextMatrix ¶
func CGContextGetTextMatrix(c CGContextRef) corefoundation.CGAffineTransform
CGContextGetTextMatrix calls the CoreGraphics framework function CGContextGetTextMatrix.
func CGContextGetTextPosition ¶
func CGContextGetTextPosition(c CGContextRef) corefoundation.CGPoint
CGContextGetTextPosition calls the CoreGraphics framework function CGContextGetTextPosition.
func CGContextGetTypeID ¶
func CGContextGetTypeID() int
CGContextGetTypeID calls the CoreGraphics framework function CGContextGetTypeID.
func CGContextGetUserSpaceToDeviceSpaceTransform ¶
func CGContextGetUserSpaceToDeviceSpaceTransform(c CGContextRef) corefoundation.CGAffineTransform
CGContextGetUserSpaceToDeviceSpaceTransform calls the CoreGraphics framework function CGContextGetUserSpaceToDeviceSpaceTransform.
func CGContextIsPathEmpty ¶
func CGContextIsPathEmpty(c CGContextRef) bool
CGContextIsPathEmpty calls the CoreGraphics framework function CGContextIsPathEmpty.
func CGContextMoveToPoint ¶
func CGContextMoveToPoint(c CGContextRef, x float64, y float64)
CGContextMoveToPoint calls the CoreGraphics framework function CGContextMoveToPoint.
func CGContextPathContainsPoint ¶
func CGContextPathContainsPoint(c CGContextRef, point corefoundation.CGPoint, mode CGPathDrawingMode) bool
CGContextPathContainsPoint calls the CoreGraphics framework function CGContextPathContainsPoint.
func CGContextRelease ¶
func CGContextRelease(c CGContextRef)
CGContextRelease calls the CoreGraphics framework function CGContextRelease.
func CGContextReplacePathWithStrokedPath ¶
func CGContextReplacePathWithStrokedPath(c CGContextRef)
CGContextReplacePathWithStrokedPath calls the CoreGraphics framework function CGContextReplacePathWithStrokedPath.
func CGContextResetClip ¶
func CGContextResetClip(c CGContextRef)
CGContextResetClip calls the CoreGraphics framework function CGContextResetClip.
func CGContextRestoreGState ¶
func CGContextRestoreGState(c CGContextRef)
CGContextRestoreGState calls the CoreGraphics framework function CGContextRestoreGState.
func CGContextRotateCTM ¶
func CGContextRotateCTM(c CGContextRef, angle float64)
CGContextRotateCTM calls the CoreGraphics framework function CGContextRotateCTM.
func CGContextSaveGState ¶
func CGContextSaveGState(c CGContextRef)
CGContextSaveGState calls the CoreGraphics framework function CGContextSaveGState.
func CGContextScaleCTM ¶
func CGContextScaleCTM(c CGContextRef, sx float64, sy float64)
CGContextScaleCTM calls the CoreGraphics framework function CGContextScaleCTM.
func CGContextSelectFont ¶
func CGContextSelectFont(c CGContextRef, name unsafe.Pointer, size float64, textEncoding CGTextEncoding)
CGContextSelectFont calls the CoreGraphics framework function CGContextSelectFont.
func CGContextSetAllowsAntialiasing ¶
func CGContextSetAllowsAntialiasing(c CGContextRef, allowsAntialiasing bool)
CGContextSetAllowsAntialiasing calls the CoreGraphics framework function CGContextSetAllowsAntialiasing.
func CGContextSetAllowsFontSmoothing ¶
func CGContextSetAllowsFontSmoothing(c CGContextRef, allowsFontSmoothing bool)
CGContextSetAllowsFontSmoothing calls the CoreGraphics framework function CGContextSetAllowsFontSmoothing.
func CGContextSetAllowsFontSubpixelPositioning ¶
func CGContextSetAllowsFontSubpixelPositioning(c CGContextRef, allowsFontSubpixelPositioning bool)
CGContextSetAllowsFontSubpixelPositioning calls the CoreGraphics framework function CGContextSetAllowsFontSubpixelPositioning.
func CGContextSetAllowsFontSubpixelQuantization ¶
func CGContextSetAllowsFontSubpixelQuantization(c CGContextRef, allowsFontSubpixelQuantization bool)
CGContextSetAllowsFontSubpixelQuantization calls the CoreGraphics framework function CGContextSetAllowsFontSubpixelQuantization.
func CGContextSetAlpha ¶
func CGContextSetAlpha(c CGContextRef, alpha float64)
CGContextSetAlpha calls the CoreGraphics framework function CGContextSetAlpha.
func CGContextSetBlendMode ¶
func CGContextSetBlendMode(c CGContextRef, mode CGBlendMode)
CGContextSetBlendMode calls the CoreGraphics framework function CGContextSetBlendMode.
func CGContextSetCMYKFillColor ¶
func CGContextSetCMYKFillColor(c CGContextRef, cyan float64, magenta float64, yellow float64, black float64, alpha float64)
CGContextSetCMYKFillColor calls the CoreGraphics framework function CGContextSetCMYKFillColor.
func CGContextSetCMYKStrokeColor ¶
func CGContextSetCMYKStrokeColor(c CGContextRef, cyan float64, magenta float64, yellow float64, black float64, alpha float64)
CGContextSetCMYKStrokeColor calls the CoreGraphics framework function CGContextSetCMYKStrokeColor.
func CGContextSetCharacterSpacing ¶
func CGContextSetCharacterSpacing(c CGContextRef, spacing float64)
CGContextSetCharacterSpacing calls the CoreGraphics framework function CGContextSetCharacterSpacing.
func CGContextSetContentToneMappingInfo ¶
func CGContextSetContentToneMappingInfo(c CGContextRef, info unsafe.Pointer)
CGContextSetContentToneMappingInfo calls the CoreGraphics framework function CGContextSetContentToneMappingInfo.
func CGContextSetEDRTargetHeadroom ¶
func CGContextSetEDRTargetHeadroom(c CGContextRef, headroom float32) bool
CGContextSetEDRTargetHeadroom calls the CoreGraphics framework function CGContextSetEDRTargetHeadroom.
func CGContextSetFillColor ¶
func CGContextSetFillColor(c CGContextRef, components unsafe.Pointer)
CGContextSetFillColor calls the CoreGraphics framework function CGContextSetFillColor.
func CGContextSetFillColorSpace ¶
func CGContextSetFillColorSpace(c CGContextRef, space CGColorSpaceRef)
CGContextSetFillColorSpace calls the CoreGraphics framework function CGContextSetFillColorSpace.
func CGContextSetFillColorWithColor ¶
func CGContextSetFillColorWithColor(c CGContextRef, color CGColorRef)
CGContextSetFillColorWithColor calls the CoreGraphics framework function CGContextSetFillColorWithColor.
func CGContextSetFillPattern ¶
func CGContextSetFillPattern(c CGContextRef, pattern CGPatternRef, components unsafe.Pointer)
CGContextSetFillPattern calls the CoreGraphics framework function CGContextSetFillPattern.
func CGContextSetFlatness ¶
func CGContextSetFlatness(c CGContextRef, flatness float64)
CGContextSetFlatness calls the CoreGraphics framework function CGContextSetFlatness.
func CGContextSetFont ¶
func CGContextSetFont(c CGContextRef, font CGFontRef)
CGContextSetFont calls the CoreGraphics framework function CGContextSetFont.
func CGContextSetFontSize ¶
func CGContextSetFontSize(c CGContextRef, size float64)
CGContextSetFontSize calls the CoreGraphics framework function CGContextSetFontSize.
func CGContextSetGrayFillColor ¶
func CGContextSetGrayFillColor(c CGContextRef, gray float64, alpha float64)
CGContextSetGrayFillColor calls the CoreGraphics framework function CGContextSetGrayFillColor.
func CGContextSetGrayStrokeColor ¶
func CGContextSetGrayStrokeColor(c CGContextRef, gray float64, alpha float64)
CGContextSetGrayStrokeColor calls the CoreGraphics framework function CGContextSetGrayStrokeColor.
func CGContextSetInterpolationQuality ¶
func CGContextSetInterpolationQuality(c CGContextRef, quality CGInterpolationQuality)
CGContextSetInterpolationQuality calls the CoreGraphics framework function CGContextSetInterpolationQuality.
func CGContextSetLineCap ¶
func CGContextSetLineCap(c CGContextRef, cap_ CGLineCap)
CGContextSetLineCap calls the CoreGraphics framework function CGContextSetLineCap.
func CGContextSetLineDash ¶
func CGContextSetLineDash(c CGContextRef, phase float64, lengths unsafe.Pointer, count int)
CGContextSetLineDash calls the CoreGraphics framework function CGContextSetLineDash.
func CGContextSetLineJoin ¶
func CGContextSetLineJoin(c CGContextRef, join CGLineJoin)
CGContextSetLineJoin calls the CoreGraphics framework function CGContextSetLineJoin.
func CGContextSetLineWidth ¶
func CGContextSetLineWidth(c CGContextRef, width float64)
CGContextSetLineWidth calls the CoreGraphics framework function CGContextSetLineWidth.
func CGContextSetMiterLimit ¶
func CGContextSetMiterLimit(c CGContextRef, limit float64)
CGContextSetMiterLimit calls the CoreGraphics framework function CGContextSetMiterLimit.
func CGContextSetPatternPhase ¶
func CGContextSetPatternPhase(c CGContextRef, phase corefoundation.CGSize)
CGContextSetPatternPhase calls the CoreGraphics framework function CGContextSetPatternPhase.
func CGContextSetRGBFillColor ¶
func CGContextSetRGBFillColor(c CGContextRef, red float64, green float64, blue float64, alpha float64)
CGContextSetRGBFillColor calls the CoreGraphics framework function CGContextSetRGBFillColor.
func CGContextSetRGBStrokeColor ¶
func CGContextSetRGBStrokeColor(c CGContextRef, red float64, green float64, blue float64, alpha float64)
CGContextSetRGBStrokeColor calls the CoreGraphics framework function CGContextSetRGBStrokeColor.
func CGContextSetRenderingIntent ¶
func CGContextSetRenderingIntent(c CGContextRef, intent CGColorRenderingIntent)
CGContextSetRenderingIntent calls the CoreGraphics framework function CGContextSetRenderingIntent.
func CGContextSetShadow ¶
func CGContextSetShadow(c CGContextRef, offset corefoundation.CGSize, blur float64)
CGContextSetShadow calls the CoreGraphics framework function CGContextSetShadow.
func CGContextSetShadowWithColor ¶
func CGContextSetShadowWithColor(c CGContextRef, offset corefoundation.CGSize, blur float64, color CGColorRef)
CGContextSetShadowWithColor calls the CoreGraphics framework function CGContextSetShadowWithColor.
func CGContextSetShouldAntialias ¶
func CGContextSetShouldAntialias(c CGContextRef, shouldAntialias bool)
CGContextSetShouldAntialias calls the CoreGraphics framework function CGContextSetShouldAntialias.
func CGContextSetShouldSmoothFonts ¶
func CGContextSetShouldSmoothFonts(c CGContextRef, shouldSmoothFonts bool)
CGContextSetShouldSmoothFonts calls the CoreGraphics framework function CGContextSetShouldSmoothFonts.
func CGContextSetShouldSubpixelPositionFonts ¶
func CGContextSetShouldSubpixelPositionFonts(c CGContextRef, shouldSubpixelPositionFonts bool)
CGContextSetShouldSubpixelPositionFonts calls the CoreGraphics framework function CGContextSetShouldSubpixelPositionFonts.
func CGContextSetShouldSubpixelQuantizeFonts ¶
func CGContextSetShouldSubpixelQuantizeFonts(c CGContextRef, shouldSubpixelQuantizeFonts bool)
CGContextSetShouldSubpixelQuantizeFonts calls the CoreGraphics framework function CGContextSetShouldSubpixelQuantizeFonts.
func CGContextSetStrokeColor ¶
func CGContextSetStrokeColor(c CGContextRef, components unsafe.Pointer)
CGContextSetStrokeColor calls the CoreGraphics framework function CGContextSetStrokeColor.
func CGContextSetStrokeColorSpace ¶
func CGContextSetStrokeColorSpace(c CGContextRef, space CGColorSpaceRef)
CGContextSetStrokeColorSpace calls the CoreGraphics framework function CGContextSetStrokeColorSpace.
func CGContextSetStrokeColorWithColor ¶
func CGContextSetStrokeColorWithColor(c CGContextRef, color CGColorRef)
CGContextSetStrokeColorWithColor calls the CoreGraphics framework function CGContextSetStrokeColorWithColor.
func CGContextSetStrokePattern ¶
func CGContextSetStrokePattern(c CGContextRef, pattern CGPatternRef, components unsafe.Pointer)
CGContextSetStrokePattern calls the CoreGraphics framework function CGContextSetStrokePattern.
func CGContextSetTextDrawingMode ¶
func CGContextSetTextDrawingMode(c CGContextRef, mode CGTextDrawingMode)
CGContextSetTextDrawingMode calls the CoreGraphics framework function CGContextSetTextDrawingMode.
func CGContextSetTextMatrix ¶
func CGContextSetTextMatrix(c CGContextRef, t corefoundation.CGAffineTransform)
CGContextSetTextMatrix calls the CoreGraphics framework function CGContextSetTextMatrix.
func CGContextSetTextPosition ¶
func CGContextSetTextPosition(c CGContextRef, x float64, y float64)
CGContextSetTextPosition calls the CoreGraphics framework function CGContextSetTextPosition.
func CGContextShowGlyphs ¶
func CGContextShowGlyphs(c CGContextRef, g unsafe.Pointer, count int)
CGContextShowGlyphs calls the CoreGraphics framework function CGContextShowGlyphs.
func CGContextShowGlyphsAtPoint ¶
func CGContextShowGlyphsAtPoint(c CGContextRef, x float64, y float64, glyphs unsafe.Pointer, count int)
CGContextShowGlyphsAtPoint calls the CoreGraphics framework function CGContextShowGlyphsAtPoint.
func CGContextShowGlyphsAtPositions ¶
func CGContextShowGlyphsAtPositions(c CGContextRef, glyphs unsafe.Pointer, lpositions unsafe.Pointer, count int)
CGContextShowGlyphsAtPositions calls the CoreGraphics framework function CGContextShowGlyphsAtPositions.
func CGContextShowGlyphsWithAdvances ¶
func CGContextShowGlyphsWithAdvances(c CGContextRef, glyphs unsafe.Pointer, advances unsafe.Pointer, count int)
CGContextShowGlyphsWithAdvances calls the CoreGraphics framework function CGContextShowGlyphsWithAdvances.
func CGContextShowText ¶
func CGContextShowText(c CGContextRef, str unsafe.Pointer, length int)
CGContextShowText calls the CoreGraphics framework function CGContextShowText.
func CGContextShowTextAtPoint ¶
CGContextShowTextAtPoint calls the CoreGraphics framework function CGContextShowTextAtPoint.
func CGContextStrokeEllipseInRect ¶
func CGContextStrokeEllipseInRect(c CGContextRef, rect corefoundation.CGRect)
CGContextStrokeEllipseInRect calls the CoreGraphics framework function CGContextStrokeEllipseInRect.
func CGContextStrokeLineSegments ¶
func CGContextStrokeLineSegments(c CGContextRef, points unsafe.Pointer, count int)
CGContextStrokeLineSegments calls the CoreGraphics framework function CGContextStrokeLineSegments.
func CGContextStrokePath ¶
func CGContextStrokePath(c CGContextRef)
CGContextStrokePath calls the CoreGraphics framework function CGContextStrokePath.
func CGContextStrokeRect ¶
func CGContextStrokeRect(c CGContextRef, rect corefoundation.CGRect)
CGContextStrokeRect calls the CoreGraphics framework function CGContextStrokeRect.
func CGContextStrokeRectWithWidth ¶
func CGContextStrokeRectWithWidth(c CGContextRef, rect corefoundation.CGRect, width float64)
CGContextStrokeRectWithWidth calls the CoreGraphics framework function CGContextStrokeRectWithWidth.
func CGContextSynchronize ¶
func CGContextSynchronize(c CGContextRef)
CGContextSynchronize calls the CoreGraphics framework function CGContextSynchronize.
func CGContextSynchronizeAttributes ¶
func CGContextSynchronizeAttributes(c CGContextRef)
CGContextSynchronizeAttributes calls the CoreGraphics framework function CGContextSynchronizeAttributes.
func CGContextTranslateCTM ¶
func CGContextTranslateCTM(c CGContextRef, tx float64, ty float64)
CGContextTranslateCTM calls the CoreGraphics framework function CGContextTranslateCTM.
func CGConvertColorDataWithFormat ¶
func CGConvertColorDataWithFormat(width int, height int, dstData unsafe.Pointer, dstFormat unsafe.Pointer, srcData unsafe.Pointer, srcFormat unsafe.Pointer, options obj.Object) bool
CGConvertColorDataWithFormat calls the CoreGraphics framework function CGConvertColorDataWithFormat.
func CGCursorIsDrawnInFramebuffer ¶
func CGCursorIsDrawnInFramebuffer() int
CGCursorIsDrawnInFramebuffer calls the CoreGraphics framework function CGCursorIsDrawnInFramebuffer.
func CGCursorIsVisible ¶
func CGCursorIsVisible() int
CGCursorIsVisible calls the CoreGraphics framework function CGCursorIsVisible.
func CGDataConsumerGetTypeID ¶
func CGDataConsumerGetTypeID() int
CGDataConsumerGetTypeID calls the CoreGraphics framework function CGDataConsumerGetTypeID.
func CGDataConsumerRelease ¶
func CGDataConsumerRelease(consumer CGDataConsumerRef)
CGDataConsumerRelease calls the CoreGraphics framework function CGDataConsumerRelease.
func CGDataProviderCopyData ¶
func CGDataProviderCopyData(provider CGDataProviderRef) obj.Object
CGDataProviderCopyData calls the CoreGraphics framework function CGDataProviderCopyData.
func CGDataProviderGetInfo ¶
func CGDataProviderGetInfo(provider CGDataProviderRef) unsafe.Pointer
CGDataProviderGetInfo calls the CoreGraphics framework function CGDataProviderGetInfo.
func CGDataProviderGetTypeID ¶
func CGDataProviderGetTypeID() int
CGDataProviderGetTypeID calls the CoreGraphics framework function CGDataProviderGetTypeID.
func CGDataProviderRelease ¶
func CGDataProviderRelease(provider CGDataProviderRef)
CGDataProviderRelease calls the CoreGraphics framework function CGDataProviderRelease.
func CGDirectDisplayCopyCurrentMetalDevice ¶
CGDirectDisplayCopyCurrentMetalDevice calls the CoreGraphics framework function CGDirectDisplayCopyCurrentMetalDevice.
func CGDisplayAvailableModes ¶
CGDisplayAvailableModes calls the CoreGraphics framework function CGDisplayAvailableModes.
func CGDisplayBestModeForParameters ¶
func CGDisplayBestModeForParameters(display uint32, bitsPerPixel int, width int, height int) (result obj.Object, exactMatch int)
CGDisplayBestModeForParameters calls the CoreGraphics framework function CGDisplayBestModeForParameters.
func CGDisplayBestModeForParametersAndRefreshRate ¶
func CGDisplayBestModeForParametersAndRefreshRate(display uint32, bitsPerPixel int, width int, height int, refreshRate float64) (result obj.Object, exactMatch int)
CGDisplayBestModeForParametersAndRefreshRate calls the CoreGraphics framework function CGDisplayBestModeForParametersAndRefreshRate.
func CGDisplayBounds ¶
func CGDisplayBounds(display uint32) corefoundation.CGRect
CGDisplayBounds calls the CoreGraphics framework function CGDisplayBounds.
func CGDisplayCopyAllDisplayModes ¶
CGDisplayCopyAllDisplayModes calls the CoreGraphics framework function CGDisplayCopyAllDisplayModes.
func CGDisplayCurrentMode ¶
CGDisplayCurrentMode calls the CoreGraphics framework function CGDisplayCurrentMode.
func CGDisplayFadeOperationInProgress ¶
func CGDisplayFadeOperationInProgress() int
CGDisplayFadeOperationInProgress calls the CoreGraphics framework function CGDisplayFadeOperationInProgress.
func CGDisplayGammaTableCapacity ¶
CGDisplayGammaTableCapacity calls the CoreGraphics framework function CGDisplayGammaTableCapacity.
func CGDisplayIDToOpenGLDisplayMask ¶
CGDisplayIDToOpenGLDisplayMask calls the CoreGraphics framework function CGDisplayIDToOpenGLDisplayMask.
func CGDisplayIOServicePort ¶
CGDisplayIOServicePort calls the CoreGraphics framework function CGDisplayIOServicePort.
func CGDisplayIsActive ¶
CGDisplayIsActive calls the CoreGraphics framework function CGDisplayIsActive.
func CGDisplayIsAlwaysInMirrorSet ¶
CGDisplayIsAlwaysInMirrorSet calls the CoreGraphics framework function CGDisplayIsAlwaysInMirrorSet.
func CGDisplayIsAsleep ¶
CGDisplayIsAsleep calls the CoreGraphics framework function CGDisplayIsAsleep.
func CGDisplayIsBuiltin ¶
CGDisplayIsBuiltin calls the CoreGraphics framework function CGDisplayIsBuiltin.
func CGDisplayIsCaptured ¶
CGDisplayIsCaptured calls the CoreGraphics framework function CGDisplayIsCaptured.
func CGDisplayIsInHWMirrorSet ¶
CGDisplayIsInHWMirrorSet calls the CoreGraphics framework function CGDisplayIsInHWMirrorSet.
func CGDisplayIsInMirrorSet ¶
CGDisplayIsInMirrorSet calls the CoreGraphics framework function CGDisplayIsInMirrorSet.
func CGDisplayIsMain ¶
CGDisplayIsMain calls the CoreGraphics framework function CGDisplayIsMain.
func CGDisplayIsOnline ¶
CGDisplayIsOnline calls the CoreGraphics framework function CGDisplayIsOnline.
func CGDisplayIsStereo ¶
CGDisplayIsStereo calls the CoreGraphics framework function CGDisplayIsStereo.
func CGDisplayMirrorsDisplay ¶
CGDisplayMirrorsDisplay calls the CoreGraphics framework function CGDisplayMirrorsDisplay.
func CGDisplayModeCopyPixelEncoding ¶
func CGDisplayModeCopyPixelEncoding(mode CGDisplayModeRef) obj.Object
CGDisplayModeCopyPixelEncoding calls the CoreGraphics framework function CGDisplayModeCopyPixelEncoding.
func CGDisplayModeGetHeight ¶
func CGDisplayModeGetHeight(mode CGDisplayModeRef) int
CGDisplayModeGetHeight calls the CoreGraphics framework function CGDisplayModeGetHeight.
func CGDisplayModeGetIODisplayModeID ¶
func CGDisplayModeGetIODisplayModeID(mode CGDisplayModeRef) int32
CGDisplayModeGetIODisplayModeID calls the CoreGraphics framework function CGDisplayModeGetIODisplayModeID.
func CGDisplayModeGetIOFlags ¶
func CGDisplayModeGetIOFlags(mode CGDisplayModeRef) uint32
CGDisplayModeGetIOFlags calls the CoreGraphics framework function CGDisplayModeGetIOFlags.
func CGDisplayModeGetPixelHeight ¶
func CGDisplayModeGetPixelHeight(mode CGDisplayModeRef) int
CGDisplayModeGetPixelHeight calls the CoreGraphics framework function CGDisplayModeGetPixelHeight.
func CGDisplayModeGetPixelWidth ¶
func CGDisplayModeGetPixelWidth(mode CGDisplayModeRef) int
CGDisplayModeGetPixelWidth calls the CoreGraphics framework function CGDisplayModeGetPixelWidth.
func CGDisplayModeGetRefreshRate ¶
func CGDisplayModeGetRefreshRate(mode CGDisplayModeRef) float64
CGDisplayModeGetRefreshRate calls the CoreGraphics framework function CGDisplayModeGetRefreshRate.
func CGDisplayModeGetTypeID ¶
func CGDisplayModeGetTypeID() int
CGDisplayModeGetTypeID calls the CoreGraphics framework function CGDisplayModeGetTypeID.
func CGDisplayModeGetWidth ¶
func CGDisplayModeGetWidth(mode CGDisplayModeRef) int
CGDisplayModeGetWidth calls the CoreGraphics framework function CGDisplayModeGetWidth.
func CGDisplayModeIsUsableForDesktopGUI ¶
func CGDisplayModeIsUsableForDesktopGUI(mode CGDisplayModeRef) bool
CGDisplayModeIsUsableForDesktopGUI calls the CoreGraphics framework function CGDisplayModeIsUsableForDesktopGUI.
func CGDisplayModeRelease ¶
func CGDisplayModeRelease(mode CGDisplayModeRef)
CGDisplayModeRelease calls the CoreGraphics framework function CGDisplayModeRelease.
func CGDisplayModelNumber ¶
CGDisplayModelNumber calls the CoreGraphics framework function CGDisplayModelNumber.
func CGDisplayPixelsHigh ¶
CGDisplayPixelsHigh calls the CoreGraphics framework function CGDisplayPixelsHigh.
func CGDisplayPixelsWide ¶
CGDisplayPixelsWide calls the CoreGraphics framework function CGDisplayPixelsWide.
func CGDisplayPrimaryDisplay ¶
CGDisplayPrimaryDisplay calls the CoreGraphics framework function CGDisplayPrimaryDisplay.
func CGDisplayRestoreColorSyncSettings ¶
func CGDisplayRestoreColorSyncSettings()
CGDisplayRestoreColorSyncSettings calls the CoreGraphics framework function CGDisplayRestoreColorSyncSettings.
func CGDisplayRotation ¶
CGDisplayRotation calls the CoreGraphics framework function CGDisplayRotation.
func CGDisplayScreenSize ¶
func CGDisplayScreenSize(display uint32) corefoundation.CGSize
CGDisplayScreenSize calls the CoreGraphics framework function CGDisplayScreenSize.
func CGDisplaySerialNumber ¶
CGDisplaySerialNumber calls the CoreGraphics framework function CGDisplaySerialNumber.
func CGDisplayUnitNumber ¶
CGDisplayUnitNumber calls the CoreGraphics framework function CGDisplayUnitNumber.
func CGDisplayUsesOpenGLAcceleration ¶
CGDisplayUsesOpenGLAcceleration calls the CoreGraphics framework function CGDisplayUsesOpenGLAcceleration.
func CGDisplayVendorNumber ¶
CGDisplayVendorNumber calls the CoreGraphics framework function CGDisplayVendorNumber.
func CGEXRToneMappingGammaGetDefaultOptions ¶
CGEXRToneMappingGammaGetDefaultOptions calls the CoreGraphics framework function CGEXRToneMappingGammaGetDefaultOptions.
func CGErrorSetCallback ¶
CGErrorSetCallback calls the CoreGraphics framework function CGErrorSetCallback.
func CGEventCreateData ¶
func CGEventCreateData(allocator obj.Object, event CGEventRef) obj.Object
CGEventCreateData calls the CoreGraphics framework function CGEventCreateData.
func CGEventGetDoubleValueField ¶
func CGEventGetDoubleValueField(event CGEventRef, field CGEventField) float64
CGEventGetDoubleValueField calls the CoreGraphics framework function CGEventGetDoubleValueField.
func CGEventGetIntegerValueField ¶
func CGEventGetIntegerValueField(event CGEventRef, field CGEventField) int64
CGEventGetIntegerValueField calls the CoreGraphics framework function CGEventGetIntegerValueField.
func CGEventGetLocation ¶
func CGEventGetLocation(event CGEventRef) corefoundation.CGPoint
CGEventGetLocation calls the CoreGraphics framework function CGEventGetLocation.
func CGEventGetTimestamp ¶
func CGEventGetTimestamp(event CGEventRef) uint64
CGEventGetTimestamp calls the CoreGraphics framework function CGEventGetTimestamp.
func CGEventGetTypeID ¶
func CGEventGetTypeID() int
CGEventGetTypeID calls the CoreGraphics framework function CGEventGetTypeID.
func CGEventGetUnflippedLocation ¶
func CGEventGetUnflippedLocation(event CGEventRef) corefoundation.CGPoint
CGEventGetUnflippedLocation calls the CoreGraphics framework function CGEventGetUnflippedLocation.
func CGEventKeyboardGetUnicodeString ¶
func CGEventKeyboardGetUnicodeString(event CGEventRef, maxStringLength int) (actualStringLength int, unicodeString uint16)
CGEventKeyboardGetUnicodeString calls the CoreGraphics framework function CGEventKeyboardGetUnicodeString.
func CGEventKeyboardSetUnicodeString ¶
func CGEventKeyboardSetUnicodeString(event CGEventRef, stringLength int, unicodeString unsafe.Pointer)
CGEventKeyboardSetUnicodeString calls the CoreGraphics framework function CGEventKeyboardSetUnicodeString.
func CGEventPost ¶
func CGEventPost(tap CGEventTapLocation, event CGEventRef)
CGEventPost calls the CoreGraphics framework function CGEventPost.
func CGEventPostToPSN ¶
func CGEventPostToPSN(processSerialNumber unsafe.Pointer, event CGEventRef)
CGEventPostToPSN calls the CoreGraphics framework function CGEventPostToPSN.
func CGEventPostToPid ¶
func CGEventPostToPid(pid int, event CGEventRef)
CGEventPostToPid calls the CoreGraphics framework function CGEventPostToPid.
func CGEventSetDoubleValueField ¶
func CGEventSetDoubleValueField(event CGEventRef, field CGEventField, value float64)
CGEventSetDoubleValueField calls the CoreGraphics framework function CGEventSetDoubleValueField.
func CGEventSetFlags ¶
func CGEventSetFlags(event CGEventRef, flags CGEventFlags)
CGEventSetFlags calls the CoreGraphics framework function CGEventSetFlags.
func CGEventSetIntegerValueField ¶
func CGEventSetIntegerValueField(event CGEventRef, field CGEventField, value int64)
CGEventSetIntegerValueField calls the CoreGraphics framework function CGEventSetIntegerValueField.
func CGEventSetLocation ¶
func CGEventSetLocation(event CGEventRef, location corefoundation.CGPoint)
CGEventSetLocation calls the CoreGraphics framework function CGEventSetLocation.
func CGEventSetSource ¶
func CGEventSetSource(event CGEventRef, source CGEventSourceRef)
CGEventSetSource calls the CoreGraphics framework function CGEventSetSource.
func CGEventSetTimestamp ¶
func CGEventSetTimestamp(event CGEventRef, timestamp uint64)
CGEventSetTimestamp calls the CoreGraphics framework function CGEventSetTimestamp.
func CGEventSetType ¶
func CGEventSetType(event CGEventRef, type_ CGEventType)
CGEventSetType calls the CoreGraphics framework function CGEventSetType.
func CGEventSourceButtonState ¶
func CGEventSourceButtonState(stateID CGEventSourceStateID, button CGMouseButton) bool
CGEventSourceButtonState calls the CoreGraphics framework function CGEventSourceButtonState.
func CGEventSourceCounterForEventType ¶
func CGEventSourceCounterForEventType(stateID CGEventSourceStateID, eventType CGEventType) uint32
CGEventSourceCounterForEventType calls the CoreGraphics framework function CGEventSourceCounterForEventType.
func CGEventSourceGetKeyboardType ¶
func CGEventSourceGetKeyboardType(source CGEventSourceRef) uint32
CGEventSourceGetKeyboardType calls the CoreGraphics framework function CGEventSourceGetKeyboardType.
func CGEventSourceGetLocalEventsSuppressionInterval ¶
func CGEventSourceGetLocalEventsSuppressionInterval(source CGEventSourceRef) float64
CGEventSourceGetLocalEventsSuppressionInterval calls the CoreGraphics framework function CGEventSourceGetLocalEventsSuppressionInterval.
func CGEventSourceGetPixelsPerLine ¶
func CGEventSourceGetPixelsPerLine(source CGEventSourceRef) float64
CGEventSourceGetPixelsPerLine calls the CoreGraphics framework function CGEventSourceGetPixelsPerLine.
func CGEventSourceGetTypeID ¶
func CGEventSourceGetTypeID() int
CGEventSourceGetTypeID calls the CoreGraphics framework function CGEventSourceGetTypeID.
func CGEventSourceGetUserData ¶
func CGEventSourceGetUserData(source CGEventSourceRef) int64
CGEventSourceGetUserData calls the CoreGraphics framework function CGEventSourceGetUserData.
func CGEventSourceKeyState ¶
func CGEventSourceKeyState(stateID CGEventSourceStateID, key uint16) bool
CGEventSourceKeyState calls the CoreGraphics framework function CGEventSourceKeyState.
func CGEventSourceSecondsSinceLastEventType ¶
func CGEventSourceSecondsSinceLastEventType(stateID CGEventSourceStateID, eventType CGEventType) float64
CGEventSourceSecondsSinceLastEventType calls the CoreGraphics framework function CGEventSourceSecondsSinceLastEventType.
func CGEventSourceSetKeyboardType ¶
func CGEventSourceSetKeyboardType(source CGEventSourceRef, keyboardType uint32)
CGEventSourceSetKeyboardType calls the CoreGraphics framework function CGEventSourceSetKeyboardType.
func CGEventSourceSetLocalEventsFilterDuringSuppressionState ¶
func CGEventSourceSetLocalEventsFilterDuringSuppressionState(source CGEventSourceRef, filter CGEventFilterMask, state CGEventSuppressionState)
CGEventSourceSetLocalEventsFilterDuringSuppressionState calls the CoreGraphics framework function CGEventSourceSetLocalEventsFilterDuringSuppressionState.
func CGEventSourceSetLocalEventsSuppressionInterval ¶
func CGEventSourceSetLocalEventsSuppressionInterval(source CGEventSourceRef, seconds float64)
CGEventSourceSetLocalEventsSuppressionInterval calls the CoreGraphics framework function CGEventSourceSetLocalEventsSuppressionInterval.
func CGEventSourceSetPixelsPerLine ¶
func CGEventSourceSetPixelsPerLine(source CGEventSourceRef, pixelsPerLine float64)
CGEventSourceSetPixelsPerLine calls the CoreGraphics framework function CGEventSourceSetPixelsPerLine.
func CGEventSourceSetUserData ¶
func CGEventSourceSetUserData(source CGEventSourceRef, userData int64)
CGEventSourceSetUserData calls the CoreGraphics framework function CGEventSourceSetUserData.
func CGEventTapCreate ¶
func CGEventTapCreate(tap CGEventTapLocation, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest uint64, callback unsafe.Pointer, userInfo unsafe.Pointer) obj.Object
CGEventTapCreate calls the CoreGraphics framework function CGEventTapCreate.
func CGEventTapCreateForPSN ¶
func CGEventTapCreateForPSN(processSerialNumber unsafe.Pointer, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest uint64, callback unsafe.Pointer, userInfo unsafe.Pointer) obj.Object
CGEventTapCreateForPSN calls the CoreGraphics framework function CGEventTapCreateForPSN.
func CGEventTapCreateForPid ¶
func CGEventTapCreateForPid(pid int, place CGEventTapPlacement, options CGEventTapOptions, eventsOfInterest uint64, callback unsafe.Pointer, userInfo unsafe.Pointer) obj.Object
CGEventTapCreateForPid calls the CoreGraphics framework function CGEventTapCreateForPid.
func CGEventTapEnable ¶
CGEventTapEnable calls the CoreGraphics framework function CGEventTapEnable.
func CGEventTapIsEnabled ¶
CGEventTapIsEnabled calls the CoreGraphics framework function CGEventTapIsEnabled.
func CGEventTapPostEvent ¶
func CGEventTapPostEvent(proxy CGEventTapProxy, event CGEventRef)
CGEventTapPostEvent calls the CoreGraphics framework function CGEventTapPostEvent.
func CGFontCanCreatePostScriptSubset ¶
func CGFontCanCreatePostScriptSubset(font CGFontRef, format CGFontPostScriptFormat) bool
CGFontCanCreatePostScriptSubset calls the CoreGraphics framework function CGFontCanCreatePostScriptSubset.
func CGFontCopyFullName ¶
CGFontCopyFullName calls the CoreGraphics framework function CGFontCopyFullName.
func CGFontCopyGlyphNameForGlyph ¶
CGFontCopyGlyphNameForGlyph calls the CoreGraphics framework function CGFontCopyGlyphNameForGlyph.
func CGFontCopyPostScriptName ¶
CGFontCopyPostScriptName calls the CoreGraphics framework function CGFontCopyPostScriptName.
func CGFontCopyTableForTag ¶
CGFontCopyTableForTag calls the CoreGraphics framework function CGFontCopyTableForTag.
func CGFontCopyTableTags ¶
CGFontCopyTableTags calls the CoreGraphics framework function CGFontCopyTableTags.
func CGFontCopyVariationAxes ¶
CGFontCopyVariationAxes calls the CoreGraphics framework function CGFontCopyVariationAxes.
func CGFontCopyVariations ¶
CGFontCopyVariations calls the CoreGraphics framework function CGFontCopyVariations.
func CGFontCreatePostScriptEncoding ¶
CGFontCreatePostScriptEncoding calls the CoreGraphics framework function CGFontCreatePostScriptEncoding.
func CGFontCreatePostScriptSubset ¶
func CGFontCreatePostScriptSubset(font CGFontRef, subsetName obj.Object, format CGFontPostScriptFormat, glyphs unsafe.Pointer, count int, encoding unsafe.Pointer) obj.Object
CGFontCreatePostScriptSubset calls the CoreGraphics framework function CGFontCreatePostScriptSubset.
func CGFontGetAscent ¶
CGFontGetAscent calls the CoreGraphics framework function CGFontGetAscent.
func CGFontGetCapHeight ¶
CGFontGetCapHeight calls the CoreGraphics framework function CGFontGetCapHeight.
func CGFontGetDescent ¶
CGFontGetDescent calls the CoreGraphics framework function CGFontGetDescent.
func CGFontGetFontBBox ¶
func CGFontGetFontBBox(font CGFontRef) corefoundation.CGRect
CGFontGetFontBBox calls the CoreGraphics framework function CGFontGetFontBBox.
func CGFontGetGlyphAdvances ¶
func CGFontGetGlyphAdvances(font CGFontRef, glyphs unsafe.Pointer, count int) (ok bool, advances int32)
CGFontGetGlyphAdvances calls the CoreGraphics framework function CGFontGetGlyphAdvances.
func CGFontGetGlyphBBoxes ¶
func CGFontGetGlyphBBoxes(font CGFontRef, glyphs unsafe.Pointer, count int, bboxes *corefoundation.CGRect) bool
CGFontGetGlyphBBoxes calls the CoreGraphics framework function CGFontGetGlyphBBoxes.
func CGFontGetGlyphWithGlyphName ¶
CGFontGetGlyphWithGlyphName calls the CoreGraphics framework function CGFontGetGlyphWithGlyphName.
func CGFontGetItalicAngle ¶
CGFontGetItalicAngle calls the CoreGraphics framework function CGFontGetItalicAngle.
func CGFontGetLeading ¶
CGFontGetLeading calls the CoreGraphics framework function CGFontGetLeading.
func CGFontGetNumberOfGlyphs ¶
CGFontGetNumberOfGlyphs calls the CoreGraphics framework function CGFontGetNumberOfGlyphs.
func CGFontGetStemV ¶
CGFontGetStemV calls the CoreGraphics framework function CGFontGetStemV.
func CGFontGetTypeID ¶
func CGFontGetTypeID() int
CGFontGetTypeID calls the CoreGraphics framework function CGFontGetTypeID.
func CGFontGetUnitsPerEm ¶
CGFontGetUnitsPerEm calls the CoreGraphics framework function CGFontGetUnitsPerEm.
func CGFontGetXHeight ¶
CGFontGetXHeight calls the CoreGraphics framework function CGFontGetXHeight.
func CGFontRelease ¶
func CGFontRelease(font CGFontRef)
CGFontRelease calls the CoreGraphics framework function CGFontRelease.
func CGFunctionGetTypeID ¶
func CGFunctionGetTypeID() int
CGFunctionGetTypeID calls the CoreGraphics framework function CGFunctionGetTypeID.
func CGFunctionRelease ¶
func CGFunctionRelease(function CGFunctionRef)
CGFunctionRelease calls the CoreGraphics framework function CGFunctionRelease.
func CGGetLastMouseDelta ¶
CGGetLastMouseDelta calls the CoreGraphics framework function CGGetLastMouseDelta.
func CGGradientGetContentHeadroom ¶
func CGGradientGetContentHeadroom(gradient CGGradientRef) float32
CGGradientGetContentHeadroom calls the CoreGraphics framework function CGGradientGetContentHeadroom.
func CGGradientGetTypeID ¶
func CGGradientGetTypeID() int
CGGradientGetTypeID calls the CoreGraphics framework function CGGradientGetTypeID.
func CGGradientRelease ¶
func CGGradientRelease(gradient CGGradientRef)
CGGradientRelease calls the CoreGraphics framework function CGGradientRelease.
func CGImageCalculateContentAverageLightLevel ¶
func CGImageCalculateContentAverageLightLevel(image CGImageRef) float32
CGImageCalculateContentAverageLightLevel calls the CoreGraphics framework function CGImageCalculateContentAverageLightLevel.
func CGImageCalculateContentHeadroom ¶
func CGImageCalculateContentHeadroom(image CGImageRef) float32
CGImageCalculateContentHeadroom calls the CoreGraphics framework function CGImageCalculateContentHeadroom.
func CGImageContainsImageSpecificToneMappingMetadata ¶
func CGImageContainsImageSpecificToneMappingMetadata(image CGImageRef) bool
CGImageContainsImageSpecificToneMappingMetadata calls the CoreGraphics framework function CGImageContainsImageSpecificToneMappingMetadata.
func CGImageGetBitsPerComponent ¶
func CGImageGetBitsPerComponent(image CGImageRef) int
CGImageGetBitsPerComponent calls the CoreGraphics framework function CGImageGetBitsPerComponent.
func CGImageGetBitsPerPixel ¶
func CGImageGetBitsPerPixel(image CGImageRef) int
CGImageGetBitsPerPixel calls the CoreGraphics framework function CGImageGetBitsPerPixel.
func CGImageGetBytesPerRow ¶
func CGImageGetBytesPerRow(image CGImageRef) int
CGImageGetBytesPerRow calls the CoreGraphics framework function CGImageGetBytesPerRow.
func CGImageGetContentAverageLightLevel ¶
func CGImageGetContentAverageLightLevel(image CGImageRef) float32
CGImageGetContentAverageLightLevel calls the CoreGraphics framework function CGImageGetContentAverageLightLevel.
func CGImageGetContentHeadroom ¶
func CGImageGetContentHeadroom(image CGImageRef) float32
CGImageGetContentHeadroom calls the CoreGraphics framework function CGImageGetContentHeadroom.
func CGImageGetDecode ¶
func CGImageGetDecode(image CGImageRef) unsafe.Pointer
CGImageGetDecode calls the CoreGraphics framework function CGImageGetDecode.
func CGImageGetHeight ¶
func CGImageGetHeight(image CGImageRef) int
CGImageGetHeight calls the CoreGraphics framework function CGImageGetHeight.
func CGImageGetShouldInterpolate ¶
func CGImageGetShouldInterpolate(image CGImageRef) bool
CGImageGetShouldInterpolate calls the CoreGraphics framework function CGImageGetShouldInterpolate.
func CGImageGetTypeID ¶
func CGImageGetTypeID() int
CGImageGetTypeID calls the CoreGraphics framework function CGImageGetTypeID.
func CGImageGetUTType ¶
func CGImageGetUTType(image CGImageRef) obj.Object
CGImageGetUTType calls the CoreGraphics framework function CGImageGetUTType.
func CGImageGetWidth ¶
func CGImageGetWidth(image CGImageRef) int
CGImageGetWidth calls the CoreGraphics framework function CGImageGetWidth.
func CGImageIsMask ¶
func CGImageIsMask(image CGImageRef) bool
CGImageIsMask calls the CoreGraphics framework function CGImageIsMask.
func CGImageRelease ¶
func CGImageRelease(image CGImageRef)
CGImageRelease calls the CoreGraphics framework function CGImageRelease.
func CGImageShouldToneMap ¶
func CGImageShouldToneMap(image CGImageRef) bool
CGImageShouldToneMap calls the CoreGraphics framework function CGImageShouldToneMap.
func CGLayerGetSize ¶
func CGLayerGetSize(layer CGLayerRef) corefoundation.CGSize
CGLayerGetSize calls the CoreGraphics framework function CGLayerGetSize.
func CGLayerGetTypeID ¶
func CGLayerGetTypeID() int
CGLayerGetTypeID calls the CoreGraphics framework function CGLayerGetTypeID.
func CGLayerRelease ¶
func CGLayerRelease(layer CGLayerRef)
CGLayerRelease calls the CoreGraphics framework function CGLayerRelease.
func CGMainDisplayID ¶
func CGMainDisplayID() uint32
CGMainDisplayID calls the CoreGraphics framework function CGMainDisplayID.
func CGOpenGLDisplayMaskToDisplayID ¶
CGOpenGLDisplayMaskToDisplayID calls the CoreGraphics framework function CGOpenGLDisplayMaskToDisplayID.
func CGPDFArrayApplyBlock ¶
func CGPDFArrayApplyBlock(array CGPDFArrayRef, block func(int, unsafe.Pointer, unsafe.Pointer) bool, info unsafe.Pointer)
CGPDFArrayApplyBlock calls the CoreGraphics framework function CGPDFArrayApplyBlock.
func CGPDFArrayGetArray ¶
func CGPDFArrayGetArray(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
CGPDFArrayGetArray calls the CoreGraphics framework function CGPDFArrayGetArray.
func CGPDFArrayGetBoolean ¶
func CGPDFArrayGetBoolean(array CGPDFArrayRef, index int) (ok bool, value uint8)
CGPDFArrayGetBoolean calls the CoreGraphics framework function CGPDFArrayGetBoolean.
func CGPDFArrayGetCount ¶
func CGPDFArrayGetCount(array CGPDFArrayRef) int
CGPDFArrayGetCount calls the CoreGraphics framework function CGPDFArrayGetCount.
func CGPDFArrayGetDictionary ¶
func CGPDFArrayGetDictionary(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
CGPDFArrayGetDictionary calls the CoreGraphics framework function CGPDFArrayGetDictionary.
func CGPDFArrayGetInteger ¶
func CGPDFArrayGetInteger(array CGPDFArrayRef, index int) (ok bool, value int)
CGPDFArrayGetInteger calls the CoreGraphics framework function CGPDFArrayGetInteger.
func CGPDFArrayGetName ¶
func CGPDFArrayGetName(array CGPDFArrayRef, index int, value string) bool
CGPDFArrayGetName calls the CoreGraphics framework function CGPDFArrayGetName.
func CGPDFArrayGetNull ¶
func CGPDFArrayGetNull(array CGPDFArrayRef, index int) bool
CGPDFArrayGetNull calls the CoreGraphics framework function CGPDFArrayGetNull.
func CGPDFArrayGetNumber ¶
func CGPDFArrayGetNumber(array CGPDFArrayRef, index int) (ok bool, value float64)
CGPDFArrayGetNumber calls the CoreGraphics framework function CGPDFArrayGetNumber.
func CGPDFArrayGetObject ¶
func CGPDFArrayGetObject(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
CGPDFArrayGetObject calls the CoreGraphics framework function CGPDFArrayGetObject.
func CGPDFArrayGetStream ¶
func CGPDFArrayGetStream(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
CGPDFArrayGetStream calls the CoreGraphics framework function CGPDFArrayGetStream.
func CGPDFArrayGetString ¶
func CGPDFArrayGetString(array CGPDFArrayRef, index int, value unsafe.Pointer) bool
CGPDFArrayGetString calls the CoreGraphics framework function CGPDFArrayGetString.
func CGPDFContentStreamGetStreams ¶
func CGPDFContentStreamGetStreams(cs CGPDFContentStreamRef) obj.Object
CGPDFContentStreamGetStreams calls the CoreGraphics framework function CGPDFContentStreamGetStreams.
func CGPDFContentStreamRelease ¶
func CGPDFContentStreamRelease(cs CGPDFContentStreamRef)
CGPDFContentStreamRelease calls the CoreGraphics framework function CGPDFContentStreamRelease.
func CGPDFContextAddDestinationAtPoint ¶
func CGPDFContextAddDestinationAtPoint(context_ CGContextRef, name obj.Object, point corefoundation.CGPoint)
CGPDFContextAddDestinationAtPoint calls the CoreGraphics framework function CGPDFContextAddDestinationAtPoint.
func CGPDFContextAddDocumentMetadata ¶
func CGPDFContextAddDocumentMetadata(context_ CGContextRef, metadata obj.Object)
CGPDFContextAddDocumentMetadata calls the CoreGraphics framework function CGPDFContextAddDocumentMetadata.
func CGPDFContextBeginPage ¶
func CGPDFContextBeginPage(context_ CGContextRef, pageInfo obj.Object)
CGPDFContextBeginPage calls the CoreGraphics framework function CGPDFContextBeginPage.
func CGPDFContextBeginTag ¶
func CGPDFContextBeginTag(context_ CGContextRef, tagType CGPDFTagType, tagProperties obj.Object)
CGPDFContextBeginTag calls the CoreGraphics framework function CGPDFContextBeginTag.
func CGPDFContextClose ¶
func CGPDFContextClose(context_ CGContextRef)
CGPDFContextClose calls the CoreGraphics framework function CGPDFContextClose.
func CGPDFContextEndPage ¶
func CGPDFContextEndPage(context_ CGContextRef)
CGPDFContextEndPage calls the CoreGraphics framework function CGPDFContextEndPage.
func CGPDFContextEndTag ¶
func CGPDFContextEndTag(context_ CGContextRef)
CGPDFContextEndTag calls the CoreGraphics framework function CGPDFContextEndTag.
func CGPDFContextSetDestinationForRect ¶
func CGPDFContextSetDestinationForRect(context_ CGContextRef, name obj.Object, rect corefoundation.CGRect)
CGPDFContextSetDestinationForRect calls the CoreGraphics framework function CGPDFContextSetDestinationForRect.
func CGPDFContextSetIDTree ¶
func CGPDFContextSetIDTree(context_ CGContextRef, idTreeDictionary CGPDFDictionaryRef)
CGPDFContextSetIDTree calls the CoreGraphics framework function CGPDFContextSetIDTree.
func CGPDFContextSetOutline ¶
func CGPDFContextSetOutline(context_ CGContextRef, outline obj.Object)
CGPDFContextSetOutline calls the CoreGraphics framework function CGPDFContextSetOutline.
func CGPDFContextSetPageTagStructureTree ¶
func CGPDFContextSetPageTagStructureTree(context_ CGContextRef, pageTagStructureTreeDictionary obj.Object)
CGPDFContextSetPageTagStructureTree calls the CoreGraphics framework function CGPDFContextSetPageTagStructureTree.
func CGPDFContextSetParentTree ¶
func CGPDFContextSetParentTree(context_ CGContextRef, parentTreeDictionary CGPDFDictionaryRef)
CGPDFContextSetParentTree calls the CoreGraphics framework function CGPDFContextSetParentTree.
func CGPDFContextSetURLForRect ¶
func CGPDFContextSetURLForRect(context_ CGContextRef, url obj.Object, rect corefoundation.CGRect)
CGPDFContextSetURLForRect calls the CoreGraphics framework function CGPDFContextSetURLForRect.
func CGPDFDictionaryApplyBlock ¶
func CGPDFDictionaryApplyBlock(dict CGPDFDictionaryRef, block func(string, unsafe.Pointer, unsafe.Pointer) bool, info unsafe.Pointer)
CGPDFDictionaryApplyBlock calls the CoreGraphics framework function CGPDFDictionaryApplyBlock.
func CGPDFDictionaryApplyFunction ¶
func CGPDFDictionaryApplyFunction(dict CGPDFDictionaryRef, function unsafe.Pointer, info unsafe.Pointer)
CGPDFDictionaryApplyFunction calls the CoreGraphics framework function CGPDFDictionaryApplyFunction.
func CGPDFDictionaryGetArray ¶
func CGPDFDictionaryGetArray(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
CGPDFDictionaryGetArray calls the CoreGraphics framework function CGPDFDictionaryGetArray.
func CGPDFDictionaryGetBoolean ¶
func CGPDFDictionaryGetBoolean(dict CGPDFDictionaryRef, key string) (ok bool, value uint8)
CGPDFDictionaryGetBoolean calls the CoreGraphics framework function CGPDFDictionaryGetBoolean.
func CGPDFDictionaryGetCount ¶
func CGPDFDictionaryGetCount(dict CGPDFDictionaryRef) int
CGPDFDictionaryGetCount calls the CoreGraphics framework function CGPDFDictionaryGetCount.
func CGPDFDictionaryGetDictionary ¶
func CGPDFDictionaryGetDictionary(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
CGPDFDictionaryGetDictionary calls the CoreGraphics framework function CGPDFDictionaryGetDictionary.
func CGPDFDictionaryGetInteger ¶
func CGPDFDictionaryGetInteger(dict CGPDFDictionaryRef, key string) (ok bool, value int)
CGPDFDictionaryGetInteger calls the CoreGraphics framework function CGPDFDictionaryGetInteger.
func CGPDFDictionaryGetName ¶
func CGPDFDictionaryGetName(dict CGPDFDictionaryRef, key string, value string) bool
CGPDFDictionaryGetName calls the CoreGraphics framework function CGPDFDictionaryGetName.
func CGPDFDictionaryGetNumber ¶
func CGPDFDictionaryGetNumber(dict CGPDFDictionaryRef, key string) (ok bool, value float64)
CGPDFDictionaryGetNumber calls the CoreGraphics framework function CGPDFDictionaryGetNumber.
func CGPDFDictionaryGetObject ¶
func CGPDFDictionaryGetObject(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
CGPDFDictionaryGetObject calls the CoreGraphics framework function CGPDFDictionaryGetObject.
func CGPDFDictionaryGetStream ¶
func CGPDFDictionaryGetStream(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
CGPDFDictionaryGetStream calls the CoreGraphics framework function CGPDFDictionaryGetStream.
func CGPDFDictionaryGetString ¶
func CGPDFDictionaryGetString(dict CGPDFDictionaryRef, key string, value unsafe.Pointer) bool
CGPDFDictionaryGetString calls the CoreGraphics framework function CGPDFDictionaryGetString.
func CGPDFDocumentAllowsCopying ¶
func CGPDFDocumentAllowsCopying(document CGPDFDocumentRef) bool
CGPDFDocumentAllowsCopying calls the CoreGraphics framework function CGPDFDocumentAllowsCopying.
func CGPDFDocumentAllowsPrinting ¶
func CGPDFDocumentAllowsPrinting(document CGPDFDocumentRef) bool
CGPDFDocumentAllowsPrinting calls the CoreGraphics framework function CGPDFDocumentAllowsPrinting.
func CGPDFDocumentGetArtBox ¶
func CGPDFDocumentGetArtBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
CGPDFDocumentGetArtBox calls the CoreGraphics framework function CGPDFDocumentGetArtBox.
func CGPDFDocumentGetBleedBox ¶
func CGPDFDocumentGetBleedBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
CGPDFDocumentGetBleedBox calls the CoreGraphics framework function CGPDFDocumentGetBleedBox.
func CGPDFDocumentGetCropBox ¶
func CGPDFDocumentGetCropBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
CGPDFDocumentGetCropBox calls the CoreGraphics framework function CGPDFDocumentGetCropBox.
func CGPDFDocumentGetMediaBox ¶
func CGPDFDocumentGetMediaBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
CGPDFDocumentGetMediaBox calls the CoreGraphics framework function CGPDFDocumentGetMediaBox.
func CGPDFDocumentGetNumberOfPages ¶
func CGPDFDocumentGetNumberOfPages(document CGPDFDocumentRef) int
CGPDFDocumentGetNumberOfPages calls the CoreGraphics framework function CGPDFDocumentGetNumberOfPages.
func CGPDFDocumentGetOutline ¶
func CGPDFDocumentGetOutline(document CGPDFDocumentRef) obj.Object
CGPDFDocumentGetOutline calls the CoreGraphics framework function CGPDFDocumentGetOutline.
func CGPDFDocumentGetRotationAngle ¶
func CGPDFDocumentGetRotationAngle(document CGPDFDocumentRef, page int) int
CGPDFDocumentGetRotationAngle calls the CoreGraphics framework function CGPDFDocumentGetRotationAngle.
func CGPDFDocumentGetTrimBox ¶
func CGPDFDocumentGetTrimBox(document CGPDFDocumentRef, page int) corefoundation.CGRect
CGPDFDocumentGetTrimBox calls the CoreGraphics framework function CGPDFDocumentGetTrimBox.
func CGPDFDocumentGetTypeID ¶
func CGPDFDocumentGetTypeID() int
CGPDFDocumentGetTypeID calls the CoreGraphics framework function CGPDFDocumentGetTypeID.
func CGPDFDocumentGetVersion ¶
func CGPDFDocumentGetVersion(document CGPDFDocumentRef) (majorVersion int32, minorVersion int32)
CGPDFDocumentGetVersion calls the CoreGraphics framework function CGPDFDocumentGetVersion.
func CGPDFDocumentIsEncrypted ¶
func CGPDFDocumentIsEncrypted(document CGPDFDocumentRef) bool
CGPDFDocumentIsEncrypted calls the CoreGraphics framework function CGPDFDocumentIsEncrypted.
func CGPDFDocumentIsUnlocked ¶
func CGPDFDocumentIsUnlocked(document CGPDFDocumentRef) bool
CGPDFDocumentIsUnlocked calls the CoreGraphics framework function CGPDFDocumentIsUnlocked.
func CGPDFDocumentRelease ¶
func CGPDFDocumentRelease(document CGPDFDocumentRef)
CGPDFDocumentRelease calls the CoreGraphics framework function CGPDFDocumentRelease.
func CGPDFDocumentUnlockWithPassword ¶
func CGPDFDocumentUnlockWithPassword(document CGPDFDocumentRef, password string) bool
CGPDFDocumentUnlockWithPassword calls the CoreGraphics framework function CGPDFDocumentUnlockWithPassword.
func CGPDFObjectGetValue ¶
func CGPDFObjectGetValue(object CGPDFObjectRef, type_ CGPDFObjectType, value unsafe.Pointer) bool
CGPDFObjectGetValue calls the CoreGraphics framework function CGPDFObjectGetValue.
func CGPDFOperatorTableRelease ¶
func CGPDFOperatorTableRelease(table CGPDFOperatorTableRef)
CGPDFOperatorTableRelease calls the CoreGraphics framework function CGPDFOperatorTableRelease.
func CGPDFOperatorTableSetCallback ¶
func CGPDFOperatorTableSetCallback(table CGPDFOperatorTableRef, name string, callback unsafe.Pointer)
CGPDFOperatorTableSetCallback calls the CoreGraphics framework function CGPDFOperatorTableSetCallback.
func CGPDFPageGetBoxRect ¶
func CGPDFPageGetBoxRect(page CGPDFPageRef, box CGPDFBox) corefoundation.CGRect
CGPDFPageGetBoxRect calls the CoreGraphics framework function CGPDFPageGetBoxRect.
func CGPDFPageGetDrawingTransform ¶
func CGPDFPageGetDrawingTransform(page CGPDFPageRef, box CGPDFBox, rect corefoundation.CGRect, rotate int, preserveAspectRatio bool) corefoundation.CGAffineTransform
CGPDFPageGetDrawingTransform calls the CoreGraphics framework function CGPDFPageGetDrawingTransform.
func CGPDFPageGetPageNumber ¶
func CGPDFPageGetPageNumber(page CGPDFPageRef) int
CGPDFPageGetPageNumber calls the CoreGraphics framework function CGPDFPageGetPageNumber.
func CGPDFPageGetRotationAngle ¶
func CGPDFPageGetRotationAngle(page CGPDFPageRef) int
CGPDFPageGetRotationAngle calls the CoreGraphics framework function CGPDFPageGetRotationAngle.
func CGPDFPageGetTypeID ¶
func CGPDFPageGetTypeID() int
CGPDFPageGetTypeID calls the CoreGraphics framework function CGPDFPageGetTypeID.
func CGPDFPageRelease ¶
func CGPDFPageRelease(page CGPDFPageRef)
CGPDFPageRelease calls the CoreGraphics framework function CGPDFPageRelease.
func CGPDFScannerPopArray ¶
func CGPDFScannerPopArray(scanner CGPDFScannerRef, value unsafe.Pointer) bool
CGPDFScannerPopArray calls the CoreGraphics framework function CGPDFScannerPopArray.
func CGPDFScannerPopBoolean ¶
func CGPDFScannerPopBoolean(scanner CGPDFScannerRef) (ok bool, value uint8)
CGPDFScannerPopBoolean calls the CoreGraphics framework function CGPDFScannerPopBoolean.
func CGPDFScannerPopDictionary ¶
func CGPDFScannerPopDictionary(scanner CGPDFScannerRef, value unsafe.Pointer) bool
CGPDFScannerPopDictionary calls the CoreGraphics framework function CGPDFScannerPopDictionary.
func CGPDFScannerPopInteger ¶
func CGPDFScannerPopInteger(scanner CGPDFScannerRef) (ok bool, value int)
CGPDFScannerPopInteger calls the CoreGraphics framework function CGPDFScannerPopInteger.
func CGPDFScannerPopName ¶
func CGPDFScannerPopName(scanner CGPDFScannerRef, value string) bool
CGPDFScannerPopName calls the CoreGraphics framework function CGPDFScannerPopName.
func CGPDFScannerPopNumber ¶
func CGPDFScannerPopNumber(scanner CGPDFScannerRef) (ok bool, value float64)
CGPDFScannerPopNumber calls the CoreGraphics framework function CGPDFScannerPopNumber.
func CGPDFScannerPopObject ¶
func CGPDFScannerPopObject(scanner CGPDFScannerRef, value unsafe.Pointer) bool
CGPDFScannerPopObject calls the CoreGraphics framework function CGPDFScannerPopObject.
func CGPDFScannerPopStream ¶
func CGPDFScannerPopStream(scanner CGPDFScannerRef, value unsafe.Pointer) bool
CGPDFScannerPopStream calls the CoreGraphics framework function CGPDFScannerPopStream.
func CGPDFScannerPopString ¶
func CGPDFScannerPopString(scanner CGPDFScannerRef, value unsafe.Pointer) bool
CGPDFScannerPopString calls the CoreGraphics framework function CGPDFScannerPopString.
func CGPDFScannerRelease ¶
func CGPDFScannerRelease(scanner CGPDFScannerRef)
CGPDFScannerRelease calls the CoreGraphics framework function CGPDFScannerRelease.
func CGPDFScannerScan ¶
func CGPDFScannerScan(scanner CGPDFScannerRef) bool
CGPDFScannerScan calls the CoreGraphics framework function CGPDFScannerScan.
func CGPDFScannerStop ¶
func CGPDFScannerStop(s CGPDFScannerRef)
CGPDFScannerStop calls the CoreGraphics framework function CGPDFScannerStop.
func CGPDFStringCopyDate ¶
func CGPDFStringCopyDate(str CGPDFStringRef) obj.Object
CGPDFStringCopyDate calls the CoreGraphics framework function CGPDFStringCopyDate.
func CGPDFStringCopyTextString ¶
func CGPDFStringCopyTextString(str CGPDFStringRef) obj.Object
CGPDFStringCopyTextString calls the CoreGraphics framework function CGPDFStringCopyTextString.
func CGPDFStringGetBytePtr ¶
func CGPDFStringGetBytePtr(str CGPDFStringRef) unsafe.Pointer
CGPDFStringGetBytePtr calls the CoreGraphics framework function CGPDFStringGetBytePtr.
func CGPDFStringGetLength ¶
func CGPDFStringGetLength(str CGPDFStringRef) int
CGPDFStringGetLength calls the CoreGraphics framework function CGPDFStringGetLength.
func CGPDFTagTypeGetName ¶
func CGPDFTagTypeGetName(tagType CGPDFTagType) string
CGPDFTagTypeGetName calls the CoreGraphics framework function CGPDFTagTypeGetName.
func CGPSConverterAbort ¶
func CGPSConverterAbort(converter CGPSConverterRef) bool
CGPSConverterAbort calls the CoreGraphics framework function CGPSConverterAbort.
func CGPSConverterConvert ¶
func CGPSConverterConvert(converter CGPSConverterRef, provider CGDataProviderRef, consumer CGDataConsumerRef, options obj.Object) bool
CGPSConverterConvert calls the CoreGraphics framework function CGPSConverterConvert.
func CGPSConverterGetTypeID ¶
func CGPSConverterGetTypeID() int
CGPSConverterGetTypeID calls the CoreGraphics framework function CGPSConverterGetTypeID.
func CGPSConverterIsConverting ¶
func CGPSConverterIsConverting(converter CGPSConverterRef) bool
CGPSConverterIsConverting calls the CoreGraphics framework function CGPSConverterIsConverting.
func CGPathAddArc ¶
func CGPathAddArc(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64, radius float64, startAngle float64, endAngle float64, clockwise bool)
CGPathAddArc calls the CoreGraphics framework function CGPathAddArc.
func CGPathAddArcToPoint ¶
func CGPathAddArcToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x1 float64, y1 float64, x2 float64, y2 float64, radius float64)
CGPathAddArcToPoint calls the CoreGraphics framework function CGPathAddArcToPoint.
func CGPathAddCurveToPoint ¶
func CGPathAddCurveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)
CGPathAddCurveToPoint calls the CoreGraphics framework function CGPathAddCurveToPoint.
func CGPathAddEllipseInRect ¶
func CGPathAddEllipseInRect(path CGMutablePathRef, m *corefoundation.CGAffineTransform, rect corefoundation.CGRect)
CGPathAddEllipseInRect calls the CoreGraphics framework function CGPathAddEllipseInRect.
func CGPathAddLineToPoint ¶
func CGPathAddLineToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64)
CGPathAddLineToPoint calls the CoreGraphics framework function CGPathAddLineToPoint.
func CGPathAddLines ¶
func CGPathAddLines(path CGMutablePathRef, m *corefoundation.CGAffineTransform, points unsafe.Pointer, count int)
CGPathAddLines calls the CoreGraphics framework function CGPathAddLines.
func CGPathAddPath ¶
func CGPathAddPath(path1 CGMutablePathRef, m *corefoundation.CGAffineTransform, path2 CGPathRef)
CGPathAddPath calls the CoreGraphics framework function CGPathAddPath.
func CGPathAddQuadCurveToPoint ¶
func CGPathAddQuadCurveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, cpx float64, cpy float64, x float64, y float64)
CGPathAddQuadCurveToPoint calls the CoreGraphics framework function CGPathAddQuadCurveToPoint.
func CGPathAddRect ¶
func CGPathAddRect(path CGMutablePathRef, m *corefoundation.CGAffineTransform, rect corefoundation.CGRect)
CGPathAddRect calls the CoreGraphics framework function CGPathAddRect.
func CGPathAddRects ¶
func CGPathAddRects(path CGMutablePathRef, m *corefoundation.CGAffineTransform, rects unsafe.Pointer, count int)
CGPathAddRects calls the CoreGraphics framework function CGPathAddRects.
func CGPathAddRelativeArc ¶
func CGPathAddRelativeArc(path CGMutablePathRef, matrix *corefoundation.CGAffineTransform, x float64, y float64, radius float64, startAngle float64, delta float64)
CGPathAddRelativeArc calls the CoreGraphics framework function CGPathAddRelativeArc.
func CGPathAddRoundedRect ¶
func CGPathAddRoundedRect(path CGMutablePathRef, transform *corefoundation.CGAffineTransform, rect corefoundation.CGRect, cornerWidth float64, cornerHeight float64)
CGPathAddRoundedRect calls the CoreGraphics framework function CGPathAddRoundedRect.
func CGPathApply ¶
CGPathApply calls the CoreGraphics framework function CGPathApply.
func CGPathApplyWithBlock ¶
CGPathApplyWithBlock calls the CoreGraphics framework function CGPathApplyWithBlock.
func CGPathCloseSubpath ¶
func CGPathCloseSubpath(path CGMutablePathRef)
CGPathCloseSubpath calls the CoreGraphics framework function CGPathCloseSubpath.
func CGPathContainsPoint ¶
func CGPathContainsPoint(path CGPathRef, m *corefoundation.CGAffineTransform, point corefoundation.CGPoint, eoFill bool) bool
CGPathContainsPoint calls the CoreGraphics framework function CGPathContainsPoint.
func CGPathCreateSeparateComponents ¶
CGPathCreateSeparateComponents calls the CoreGraphics framework function CGPathCreateSeparateComponents.
func CGPathEqualToPath ¶
CGPathEqualToPath calls the CoreGraphics framework function CGPathEqualToPath.
func CGPathGetBoundingBox ¶
func CGPathGetBoundingBox(path CGPathRef) corefoundation.CGRect
CGPathGetBoundingBox calls the CoreGraphics framework function CGPathGetBoundingBox.
func CGPathGetCurrentPoint ¶
func CGPathGetCurrentPoint(path CGPathRef) corefoundation.CGPoint
CGPathGetCurrentPoint calls the CoreGraphics framework function CGPathGetCurrentPoint.
func CGPathGetPathBoundingBox ¶
func CGPathGetPathBoundingBox(path CGPathRef) corefoundation.CGRect
CGPathGetPathBoundingBox calls the CoreGraphics framework function CGPathGetPathBoundingBox.
func CGPathGetTypeID ¶
func CGPathGetTypeID() int
CGPathGetTypeID calls the CoreGraphics framework function CGPathGetTypeID.
func CGPathIntersectsPath ¶
CGPathIntersectsPath calls the CoreGraphics framework function CGPathIntersectsPath.
func CGPathIsEmpty ¶
CGPathIsEmpty calls the CoreGraphics framework function CGPathIsEmpty.
func CGPathIsRect ¶
func CGPathIsRect(path CGPathRef, rect *corefoundation.CGRect) bool
CGPathIsRect calls the CoreGraphics framework function CGPathIsRect.
func CGPathMoveToPoint ¶
func CGPathMoveToPoint(path CGMutablePathRef, m *corefoundation.CGAffineTransform, x float64, y float64)
CGPathMoveToPoint calls the CoreGraphics framework function CGPathMoveToPoint.
func CGPathRelease ¶
func CGPathRelease(path CGPathRef)
CGPathRelease calls the CoreGraphics framework function CGPathRelease.
func CGPatternGetTypeID ¶
func CGPatternGetTypeID() int
CGPatternGetTypeID calls the CoreGraphics framework function CGPatternGetTypeID.
func CGPatternRelease ¶
func CGPatternRelease(pattern CGPatternRef)
CGPatternRelease calls the CoreGraphics framework function CGPatternRelease.
func CGPointApplyAffineTransform ¶
func CGPointApplyAffineTransform(point corefoundation.CGPoint, t corefoundation.CGAffineTransform) corefoundation.CGPoint
CGPointApplyAffineTransform calls the CoreGraphics framework function CGPointApplyAffineTransform.
func CGPointCreateDictionaryRepresentation ¶
func CGPointCreateDictionaryRepresentation(point corefoundation.CGPoint) obj.Object
CGPointCreateDictionaryRepresentation calls the CoreGraphics framework function CGPointCreateDictionaryRepresentation.
func CGPointEqualToPoint ¶
func CGPointEqualToPoint(point1 corefoundation.CGPoint, point2 corefoundation.CGPoint) bool
CGPointEqualToPoint calls the CoreGraphics framework function CGPointEqualToPoint.
func CGPointMake ¶
func CGPointMake(x float64, y float64) corefoundation.CGPoint
CGPointMake calls the CoreGraphics framework function CGPointMake.
func CGPointMakeWithDictionaryRepresentation ¶
func CGPointMakeWithDictionaryRepresentation(dict obj.Object, point *corefoundation.CGPoint) bool
CGPointMakeWithDictionaryRepresentation calls the CoreGraphics framework function CGPointMakeWithDictionaryRepresentation.
func CGPointZero ¶
func CGPointZero() corefoundation.CGPoint
CGPointZero returns the value of the constant CGPointZero.
func CGPreflightListenEventAccess ¶
func CGPreflightListenEventAccess() bool
CGPreflightListenEventAccess calls the CoreGraphics framework function CGPreflightListenEventAccess.
func CGPreflightPostEventAccess ¶
func CGPreflightPostEventAccess() bool
CGPreflightPostEventAccess calls the CoreGraphics framework function CGPreflightPostEventAccess.
func CGPreflightScreenCaptureAccess ¶
func CGPreflightScreenCaptureAccess() bool
CGPreflightScreenCaptureAccess calls the CoreGraphics framework function CGPreflightScreenCaptureAccess.
func CGRectApplyAffineTransform ¶
func CGRectApplyAffineTransform(rect corefoundation.CGRect, t corefoundation.CGAffineTransform) corefoundation.CGRect
CGRectApplyAffineTransform calls the CoreGraphics framework function CGRectApplyAffineTransform.
func CGRectContainsPoint ¶
func CGRectContainsPoint(rect corefoundation.CGRect, point corefoundation.CGPoint) bool
CGRectContainsPoint calls the CoreGraphics framework function CGRectContainsPoint.
func CGRectContainsRect ¶
func CGRectContainsRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool
CGRectContainsRect calls the CoreGraphics framework function CGRectContainsRect.
func CGRectCreateDictionaryRepresentation ¶
func CGRectCreateDictionaryRepresentation(arg corefoundation.CGRect) obj.Object
CGRectCreateDictionaryRepresentation calls the CoreGraphics framework function CGRectCreateDictionaryRepresentation.
func CGRectDivide ¶
func CGRectDivide(rect corefoundation.CGRect, slice *corefoundation.CGRect, remainder *corefoundation.CGRect, amount float64, edge unsafe.Pointer)
CGRectDivide calls the CoreGraphics framework function CGRectDivide.
func CGRectEqualToRect ¶
func CGRectEqualToRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool
CGRectEqualToRect calls the CoreGraphics framework function CGRectEqualToRect.
func CGRectGetHeight ¶
func CGRectGetHeight(rect corefoundation.CGRect) float64
CGRectGetHeight calls the CoreGraphics framework function CGRectGetHeight.
func CGRectGetMaxX ¶
func CGRectGetMaxX(rect corefoundation.CGRect) float64
CGRectGetMaxX calls the CoreGraphics framework function CGRectGetMaxX.
func CGRectGetMaxY ¶
func CGRectGetMaxY(rect corefoundation.CGRect) float64
CGRectGetMaxY calls the CoreGraphics framework function CGRectGetMaxY.
func CGRectGetMidX ¶
func CGRectGetMidX(rect corefoundation.CGRect) float64
CGRectGetMidX calls the CoreGraphics framework function CGRectGetMidX.
func CGRectGetMidY ¶
func CGRectGetMidY(rect corefoundation.CGRect) float64
CGRectGetMidY calls the CoreGraphics framework function CGRectGetMidY.
func CGRectGetMinX ¶
func CGRectGetMinX(rect corefoundation.CGRect) float64
CGRectGetMinX calls the CoreGraphics framework function CGRectGetMinX.
func CGRectGetMinY ¶
func CGRectGetMinY(rect corefoundation.CGRect) float64
CGRectGetMinY calls the CoreGraphics framework function CGRectGetMinY.
func CGRectGetWidth ¶
func CGRectGetWidth(rect corefoundation.CGRect) float64
CGRectGetWidth calls the CoreGraphics framework function CGRectGetWidth.
func CGRectInfinite ¶
func CGRectInfinite() corefoundation.CGRect
CGRectInfinite returns the value of the constant CGRectInfinite.
func CGRectInset ¶
func CGRectInset(rect corefoundation.CGRect, dx float64, dy float64) corefoundation.CGRect
CGRectInset calls the CoreGraphics framework function CGRectInset.
func CGRectIntegral ¶
func CGRectIntegral(rect corefoundation.CGRect) corefoundation.CGRect
CGRectIntegral calls the CoreGraphics framework function CGRectIntegral.
func CGRectIntersection ¶
func CGRectIntersection(r1 corefoundation.CGRect, r2 corefoundation.CGRect) corefoundation.CGRect
CGRectIntersection calls the CoreGraphics framework function CGRectIntersection.
func CGRectIntersectsRect ¶
func CGRectIntersectsRect(rect1 corefoundation.CGRect, rect2 corefoundation.CGRect) bool
CGRectIntersectsRect calls the CoreGraphics framework function CGRectIntersectsRect.
func CGRectIsEmpty ¶
func CGRectIsEmpty(rect corefoundation.CGRect) bool
CGRectIsEmpty calls the CoreGraphics framework function CGRectIsEmpty.
func CGRectIsInfinite ¶
func CGRectIsInfinite(rect corefoundation.CGRect) bool
CGRectIsInfinite calls the CoreGraphics framework function CGRectIsInfinite.
func CGRectIsNull ¶
func CGRectIsNull(rect corefoundation.CGRect) bool
CGRectIsNull calls the CoreGraphics framework function CGRectIsNull.
func CGRectMake ¶
CGRectMake calls the CoreGraphics framework function CGRectMake.
func CGRectMakeWithDictionaryRepresentation ¶
func CGRectMakeWithDictionaryRepresentation(dict obj.Object, rect *corefoundation.CGRect) bool
CGRectMakeWithDictionaryRepresentation calls the CoreGraphics framework function CGRectMakeWithDictionaryRepresentation.
func CGRectNull ¶
func CGRectNull() corefoundation.CGRect
CGRectNull returns the value of the constant CGRectNull.
func CGRectOffset ¶
func CGRectOffset(rect corefoundation.CGRect, dx float64, dy float64) corefoundation.CGRect
CGRectOffset calls the CoreGraphics framework function CGRectOffset.
func CGRectStandardize ¶
func CGRectStandardize(rect corefoundation.CGRect) corefoundation.CGRect
CGRectStandardize calls the CoreGraphics framework function CGRectStandardize.
func CGRectUnion ¶
func CGRectUnion(r1 corefoundation.CGRect, r2 corefoundation.CGRect) corefoundation.CGRect
CGRectUnion calls the CoreGraphics framework function CGRectUnion.
func CGRectZero ¶
func CGRectZero() corefoundation.CGRect
CGRectZero returns the value of the constant CGRectZero.
func CGReleaseScreenRefreshRects ¶
func CGReleaseScreenRefreshRects(rects *corefoundation.CGRect)
CGReleaseScreenRefreshRects calls the CoreGraphics framework function CGReleaseScreenRefreshRects.
func CGRenderingBufferLockBytePtr ¶
func CGRenderingBufferLockBytePtr(provider CGRenderingBufferProviderRef) unsafe.Pointer
CGRenderingBufferLockBytePtr calls the CoreGraphics framework function CGRenderingBufferLockBytePtr.
func CGRenderingBufferProviderGetSize ¶
func CGRenderingBufferProviderGetSize(provider CGRenderingBufferProviderRef) int
CGRenderingBufferProviderGetSize calls the CoreGraphics framework function CGRenderingBufferProviderGetSize.
func CGRenderingBufferProviderGetTypeID ¶
func CGRenderingBufferProviderGetTypeID() int
CGRenderingBufferProviderGetTypeID calls the CoreGraphics framework function CGRenderingBufferProviderGetTypeID.
func CGRenderingBufferUnlockBytePtr ¶
func CGRenderingBufferUnlockBytePtr(provider CGRenderingBufferProviderRef)
CGRenderingBufferUnlockBytePtr calls the CoreGraphics framework function CGRenderingBufferUnlockBytePtr.
func CGRequestListenEventAccess ¶
func CGRequestListenEventAccess() bool
CGRequestListenEventAccess calls the CoreGraphics framework function CGRequestListenEventAccess.
func CGRequestPostEventAccess ¶
func CGRequestPostEventAccess() bool
CGRequestPostEventAccess calls the CoreGraphics framework function CGRequestPostEventAccess.
func CGRequestScreenCaptureAccess ¶
func CGRequestScreenCaptureAccess() bool
CGRequestScreenCaptureAccess calls the CoreGraphics framework function CGRequestScreenCaptureAccess.
func CGRestorePermanentDisplayConfiguration ¶
func CGRestorePermanentDisplayConfiguration()
CGRestorePermanentDisplayConfiguration calls the CoreGraphics framework function CGRestorePermanentDisplayConfiguration.
func CGScreenUnregisterMoveCallback ¶
CGScreenUnregisterMoveCallback calls the CoreGraphics framework function CGScreenUnregisterMoveCallback.
func CGSessionCopyCurrentDictionary ¶
CGSessionCopyCurrentDictionary calls the CoreGraphics framework function CGSessionCopyCurrentDictionary.
func CGShadingGetContentHeadroom ¶
func CGShadingGetContentHeadroom(shading CGShadingRef) float32
CGShadingGetContentHeadroom calls the CoreGraphics framework function CGShadingGetContentHeadroom.
func CGShadingGetTypeID ¶
func CGShadingGetTypeID() int
CGShadingGetTypeID calls the CoreGraphics framework function CGShadingGetTypeID.
func CGShadingRelease ¶
func CGShadingRelease(shading CGShadingRef)
CGShadingRelease calls the CoreGraphics framework function CGShadingRelease.
func CGShieldingWindowID ¶
CGShieldingWindowID calls the CoreGraphics framework function CGShieldingWindowID.
func CGShieldingWindowLevel ¶
func CGShieldingWindowLevel() int32
CGShieldingWindowLevel calls the CoreGraphics framework function CGShieldingWindowLevel.
func CGSizeApplyAffineTransform ¶
func CGSizeApplyAffineTransform(size corefoundation.CGSize, t corefoundation.CGAffineTransform) corefoundation.CGSize
CGSizeApplyAffineTransform calls the CoreGraphics framework function CGSizeApplyAffineTransform.
func CGSizeCreateDictionaryRepresentation ¶
func CGSizeCreateDictionaryRepresentation(size corefoundation.CGSize) obj.Object
CGSizeCreateDictionaryRepresentation calls the CoreGraphics framework function CGSizeCreateDictionaryRepresentation.
func CGSizeEqualToSize ¶
func CGSizeEqualToSize(size1 corefoundation.CGSize, size2 corefoundation.CGSize) bool
CGSizeEqualToSize calls the CoreGraphics framework function CGSizeEqualToSize.
func CGSizeMake ¶
func CGSizeMake(width float64, height float64) corefoundation.CGSize
CGSizeMake calls the CoreGraphics framework function CGSizeMake.
func CGSizeMakeWithDictionaryRepresentation ¶
func CGSizeMakeWithDictionaryRepresentation(dict obj.Object, size *corefoundation.CGSize) bool
CGSizeMakeWithDictionaryRepresentation calls the CoreGraphics framework function CGSizeMakeWithDictionaryRepresentation.
func CGSizeZero ¶
func CGSizeZero() corefoundation.CGSize
CGSizeZero returns the value of the constant CGSizeZero.
func CGUnregisterScreenRefreshCallback ¶
CGUnregisterScreenRefreshCallback calls the CoreGraphics framework function CGUnregisterScreenRefreshCallback.
func CGVectorMake ¶
func CGVectorMake(dx float64, dy float64) corefoundation.CGVector
CGVectorMake calls the CoreGraphics framework function CGVectorMake.
func CGWaitForScreenUpdateRects ¶
func CGWaitForScreenUpdateRects(requestedOperations CGScreenUpdateOperation, rects *corefoundation.CGRect) (result CGError, currentOperation CGScreenUpdateOperation, rectCount int, delta CGScreenUpdateMoveDelta)
CGWaitForScreenUpdateRects calls the CoreGraphics framework function CGWaitForScreenUpdateRects.
func CGWindowLevelForKey ¶
func CGWindowLevelForKey(key CGWindowLevelKey) int32
CGWindowLevelForKey calls the CoreGraphics framework function CGWindowLevelForKey.
func CGWindowListCopyWindowInfo ¶
func CGWindowListCopyWindowInfo(option CGWindowListOption, relativeToWindow uint32) obj.Object
CGWindowListCopyWindowInfo calls the CoreGraphics framework function CGWindowListCopyWindowInfo.
func CGWindowListCreate ¶
func CGWindowListCreate(option CGWindowListOption, relativeToWindow uint32) obj.Object
CGWindowListCreate calls the CoreGraphics framework function CGWindowListCreate.
func CGWindowListCreateDescriptionFromArray ¶
CGWindowListCreateDescriptionFromArray calls the CoreGraphics framework function CGWindowListCreateDescriptionFromArray.
func CGWindowServerCFMachPort ¶
CGWindowServerCFMachPort calls the CoreGraphics framework function CGWindowServerCFMachPort.
func CGWindowServerCreateServerPort ¶
CGWindowServerCreateServerPort calls the CoreGraphics framework function CGWindowServerCreateServerPort.
func KCGAdaptiveMaximumBitDepth ¶
KCGAdaptiveMaximumBitDepth returns the value of the constant kCGAdaptiveMaximumBitDepth.
func KCGColorBlack ¶
KCGColorBlack returns the value of the constant kCGColorBlack.
func KCGColorClear ¶
KCGColorClear returns the value of the constant kCGColorClear.
func KCGColorConversionBlackPointCompensation ¶
KCGColorConversionBlackPointCompensation returns the value of the constant kCGColorConversionBlackPointCompensation.
func KCGColorConversionTRCSize ¶
KCGColorConversionTRCSize returns the value of the constant kCGColorConversionTRCSize.
func KCGColorSpaceACESCGLinear ¶
KCGColorSpaceACESCGLinear returns the value of the constant kCGColorSpaceACESCGLinear.
func KCGColorSpaceAdobeRGB1998 ¶
KCGColorSpaceAdobeRGB1998 returns the value of the constant kCGColorSpaceAdobeRGB1998.
func KCGColorSpaceCoreMedia709 ¶
KCGColorSpaceCoreMedia709 returns the value of the constant kCGColorSpaceCoreMedia709.
func KCGColorSpaceDCIP3 ¶
KCGColorSpaceDCIP3 returns the value of the constant kCGColorSpaceDCIP3.
func KCGColorSpaceDisplayP3 ¶
KCGColorSpaceDisplayP3 returns the value of the constant kCGColorSpaceDisplayP3.
func KCGColorSpaceDisplayP3_HLG ¶
KCGColorSpaceDisplayP3_HLG returns the value of the constant kCGColorSpaceDisplayP3_HLG.
func KCGColorSpaceDisplayP3_PQ ¶
KCGColorSpaceDisplayP3_PQ returns the value of the constant kCGColorSpaceDisplayP3_PQ.
func KCGColorSpaceDisplayP3_PQ_EOTF ¶
KCGColorSpaceDisplayP3_PQ_EOTF returns the value of the constant kCGColorSpaceDisplayP3_PQ_EOTF.
func KCGColorSpaceExtendedDisplayP3 ¶
KCGColorSpaceExtendedDisplayP3 returns the value of the constant kCGColorSpaceExtendedDisplayP3.
func KCGColorSpaceExtendedGray ¶
KCGColorSpaceExtendedGray returns the value of the constant kCGColorSpaceExtendedGray.
func KCGColorSpaceExtendedITUR_2020 ¶
KCGColorSpaceExtendedITUR_2020 returns the value of the constant kCGColorSpaceExtendedITUR_2020.
func KCGColorSpaceExtendedLinearDisplayP3 ¶
KCGColorSpaceExtendedLinearDisplayP3 returns the value of the constant kCGColorSpaceExtendedLinearDisplayP3.
func KCGColorSpaceExtendedLinearGray ¶
KCGColorSpaceExtendedLinearGray returns the value of the constant kCGColorSpaceExtendedLinearGray.
func KCGColorSpaceExtendedLinearITUR_2020 ¶
KCGColorSpaceExtendedLinearITUR_2020 returns the value of the constant kCGColorSpaceExtendedLinearITUR_2020.
func KCGColorSpaceExtendedLinearSRGB ¶
KCGColorSpaceExtendedLinearSRGB returns the value of the constant kCGColorSpaceExtendedLinearSRGB.
func KCGColorSpaceExtendedRange ¶
KCGColorSpaceExtendedRange returns the value of the constant kCGColorSpaceExtendedRange.
func KCGColorSpaceExtendedSRGB ¶
KCGColorSpaceExtendedSRGB returns the value of the constant kCGColorSpaceExtendedSRGB.
func KCGColorSpaceGenericCMYK ¶
KCGColorSpaceGenericCMYK returns the value of the constant kCGColorSpaceGenericCMYK.
func KCGColorSpaceGenericGray ¶
KCGColorSpaceGenericGray returns the value of the constant kCGColorSpaceGenericGray.
func KCGColorSpaceGenericGrayGamma2_2 ¶
KCGColorSpaceGenericGrayGamma2_2 returns the value of the constant kCGColorSpaceGenericGrayGamma2_2.
func KCGColorSpaceGenericLab ¶
KCGColorSpaceGenericLab returns the value of the constant kCGColorSpaceGenericLab.
func KCGColorSpaceGenericRGB ¶
KCGColorSpaceGenericRGB returns the value of the constant kCGColorSpaceGenericRGB.
func KCGColorSpaceGenericRGBLinear ¶
KCGColorSpaceGenericRGBLinear returns the value of the constant kCGColorSpaceGenericRGBLinear.
func KCGColorSpaceGenericXYZ ¶
KCGColorSpaceGenericXYZ returns the value of the constant kCGColorSpaceGenericXYZ.
func KCGColorSpaceITUR_709 ¶
KCGColorSpaceITUR_709 returns the value of the constant kCGColorSpaceITUR_709.
func KCGColorSpaceITUR_709_HLG ¶
KCGColorSpaceITUR_709_HLG returns the value of the constant kCGColorSpaceITUR_709_HLG.
func KCGColorSpaceITUR_709_PQ ¶
KCGColorSpaceITUR_709_PQ returns the value of the constant kCGColorSpaceITUR_709_PQ.
func KCGColorSpaceITUR_2020 ¶
KCGColorSpaceITUR_2020 returns the value of the constant kCGColorSpaceITUR_2020.
func KCGColorSpaceITUR_2020_HLG ¶
KCGColorSpaceITUR_2020_HLG returns the value of the constant kCGColorSpaceITUR_2020_HLG.
func KCGColorSpaceITUR_2020_PQ ¶
KCGColorSpaceITUR_2020_PQ returns the value of the constant kCGColorSpaceITUR_2020_PQ.
func KCGColorSpaceITUR_2020_PQ_EOTF ¶
KCGColorSpaceITUR_2020_PQ_EOTF returns the value of the constant kCGColorSpaceITUR_2020_PQ_EOTF.
func KCGColorSpaceITUR_2020_sRGBGamma ¶
KCGColorSpaceITUR_2020_sRGBGamma returns the value of the constant kCGColorSpaceITUR_2020_sRGBGamma.
func KCGColorSpaceITUR_2100_HLG ¶
KCGColorSpaceITUR_2100_HLG returns the value of the constant kCGColorSpaceITUR_2100_HLG.
func KCGColorSpaceITUR_2100_PQ ¶
KCGColorSpaceITUR_2100_PQ returns the value of the constant kCGColorSpaceITUR_2100_PQ.
func KCGColorSpaceLinearDisplayP3 ¶
KCGColorSpaceLinearDisplayP3 returns the value of the constant kCGColorSpaceLinearDisplayP3.
func KCGColorSpaceLinearGray ¶
KCGColorSpaceLinearGray returns the value of the constant kCGColorSpaceLinearGray.
func KCGColorSpaceLinearITUR_2020 ¶
KCGColorSpaceLinearITUR_2020 returns the value of the constant kCGColorSpaceLinearITUR_2020.
func KCGColorSpaceLinearSRGB ¶
KCGColorSpaceLinearSRGB returns the value of the constant kCGColorSpaceLinearSRGB.
func KCGColorSpaceROMMRGB ¶
KCGColorSpaceROMMRGB returns the value of the constant kCGColorSpaceROMMRGB.
func KCGColorSpaceSRGB ¶
KCGColorSpaceSRGB returns the value of the constant kCGColorSpaceSRGB.
func KCGColorWhite ¶
KCGColorWhite returns the value of the constant kCGColorWhite.
func KCGContentAverageLightLevel ¶
KCGContentAverageLightLevel returns the value of the constant kCGContentAverageLightLevel.
func KCGContentAverageLightLevelNits ¶
KCGContentAverageLightLevelNits returns the value of the constant kCGContentAverageLightLevelNits.
func KCGDefaultHDRImageContentHeadroom ¶
func KCGDefaultHDRImageContentHeadroom() float32
KCGDefaultHDRImageContentHeadroom returns the value of the constant kCGDefaultHDRImageContentHeadroom.
func KCGDisplayShowDuplicateLowResolutionModes ¶
KCGDisplayShowDuplicateLowResolutionModes returns the value of the constant kCGDisplayShowDuplicateLowResolutionModes.
func KCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995 ¶
KCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995 returns the value of the constant kCGDisplayStreamYCbCrMatrix_SMPTE_240M_1995.
func KCGDynamicRangeConstrained ¶
KCGDynamicRangeConstrained returns the value of the constant kCGDynamicRangeConstrained.
func KCGDynamicRangeHigh ¶
KCGDynamicRangeHigh returns the value of the constant kCGDynamicRangeHigh.
func KCGDynamicRangeStandard ¶
KCGDynamicRangeStandard returns the value of the constant kCGDynamicRangeStandard.
func KCGEXRToneMappingGammaDefog ¶
KCGEXRToneMappingGammaDefog returns the value of the constant kCGEXRToneMappingGammaDefog.
func KCGEXRToneMappingGammaExposure ¶
KCGEXRToneMappingGammaExposure returns the value of the constant kCGEXRToneMappingGammaExposure.
func KCGEXRToneMappingGammaKneeHigh ¶
KCGEXRToneMappingGammaKneeHigh returns the value of the constant kCGEXRToneMappingGammaKneeHigh.
func KCGEXRToneMappingGammaKneeLow ¶
KCGEXRToneMappingGammaKneeLow returns the value of the constant kCGEXRToneMappingGammaKneeLow.
func KCGFontVariationAxisDefaultValue ¶
KCGFontVariationAxisDefaultValue returns the value of the constant kCGFontVariationAxisDefaultValue.
func KCGFontVariationAxisMaxValue ¶
KCGFontVariationAxisMaxValue returns the value of the constant kCGFontVariationAxisMaxValue.
func KCGFontVariationAxisMinValue ¶
KCGFontVariationAxisMinValue returns the value of the constant kCGFontVariationAxisMinValue.
func KCGFontVariationAxisName ¶
KCGFontVariationAxisName returns the value of the constant kCGFontVariationAxisName.
func KCGPDFContextAccessPermissions ¶
KCGPDFContextAccessPermissions returns the value of the constant kCGPDFContextAccessPermissions.
func KCGPDFContextAllowsCopying ¶
KCGPDFContextAllowsCopying returns the value of the constant kCGPDFContextAllowsCopying.
func KCGPDFContextAllowsPrinting ¶
KCGPDFContextAllowsPrinting returns the value of the constant kCGPDFContextAllowsPrinting.
func KCGPDFContextArtBox ¶
KCGPDFContextArtBox returns the value of the constant kCGPDFContextArtBox.
func KCGPDFContextAuthor ¶
KCGPDFContextAuthor returns the value of the constant kCGPDFContextAuthor.
func KCGPDFContextBleedBox ¶
KCGPDFContextBleedBox returns the value of the constant kCGPDFContextBleedBox.
func KCGPDFContextCreateLinearizedPDF ¶
KCGPDFContextCreateLinearizedPDF returns the value of the constant kCGPDFContextCreateLinearizedPDF.
func KCGPDFContextCreatePDFA ¶
KCGPDFContextCreatePDFA returns the value of the constant kCGPDFContextCreatePDFA.
func KCGPDFContextCreator ¶
KCGPDFContextCreator returns the value of the constant kCGPDFContextCreator.
func KCGPDFContextCropBox ¶
KCGPDFContextCropBox returns the value of the constant kCGPDFContextCropBox.
func KCGPDFContextEncryptionKeyLength ¶
KCGPDFContextEncryptionKeyLength returns the value of the constant kCGPDFContextEncryptionKeyLength.
func KCGPDFContextKeywords ¶
KCGPDFContextKeywords returns the value of the constant kCGPDFContextKeywords.
func KCGPDFContextMediaBox ¶
KCGPDFContextMediaBox returns the value of the constant kCGPDFContextMediaBox.
func KCGPDFContextOutputIntent ¶
KCGPDFContextOutputIntent returns the value of the constant kCGPDFContextOutputIntent.
func KCGPDFContextOutputIntents ¶
KCGPDFContextOutputIntents returns the value of the constant kCGPDFContextOutputIntents.
func KCGPDFContextOwnerPassword ¶
KCGPDFContextOwnerPassword returns the value of the constant kCGPDFContextOwnerPassword.
func KCGPDFContextSubject ¶
KCGPDFContextSubject returns the value of the constant kCGPDFContextSubject.
func KCGPDFContextTitle ¶
KCGPDFContextTitle returns the value of the constant kCGPDFContextTitle.
func KCGPDFContextTrimBox ¶
KCGPDFContextTrimBox returns the value of the constant kCGPDFContextTrimBox.
func KCGPDFContextUserPassword ¶
KCGPDFContextUserPassword returns the value of the constant kCGPDFContextUserPassword.
func KCGPDFOutlineChildren ¶
KCGPDFOutlineChildren returns the value of the constant kCGPDFOutlineChildren.
func KCGPDFOutlineDestination ¶
KCGPDFOutlineDestination returns the value of the constant kCGPDFOutlineDestination.
func KCGPDFOutlineDestinationRect ¶
KCGPDFOutlineDestinationRect returns the value of the constant kCGPDFOutlineDestinationRect.
func KCGPDFOutlineTitle ¶
KCGPDFOutlineTitle returns the value of the constant kCGPDFOutlineTitle.
func KCGPDFTagPropertyActualText ¶
func KCGPDFTagPropertyActualText() uintptr
KCGPDFTagPropertyActualText returns the address of the symbol kCGPDFTagPropertyActualText.
func KCGPDFTagPropertyAlternativeText ¶
func KCGPDFTagPropertyAlternativeText() uintptr
KCGPDFTagPropertyAlternativeText returns the address of the symbol kCGPDFTagPropertyAlternativeText.
func KCGPDFTagPropertyLanguageText ¶
func KCGPDFTagPropertyLanguageText() uintptr
KCGPDFTagPropertyLanguageText returns the address of the symbol kCGPDFTagPropertyLanguageText.
func KCGPDFTagPropertyTitleText ¶
func KCGPDFTagPropertyTitleText() uintptr
KCGPDFTagPropertyTitleText returns the address of the symbol kCGPDFTagPropertyTitleText.
func KCGPDFXDestinationOutputProfile ¶
KCGPDFXDestinationOutputProfile returns the value of the constant kCGPDFXDestinationOutputProfile.
func KCGPDFXInfo ¶
KCGPDFXInfo returns the value of the constant kCGPDFXInfo.
func KCGPDFXOutputCondition ¶
KCGPDFXOutputCondition returns the value of the constant kCGPDFXOutputCondition.
func KCGPDFXOutputConditionIdentifier ¶
KCGPDFXOutputConditionIdentifier returns the value of the constant kCGPDFXOutputConditionIdentifier.
func KCGPDFXOutputIntentSubtype ¶
KCGPDFXOutputIntentSubtype returns the value of the constant kCGPDFXOutputIntentSubtype.
func KCGPDFXRegistryName ¶
KCGPDFXRegistryName returns the value of the constant kCGPDFXRegistryName.
func KCGPreferredDynamicRange ¶
KCGPreferredDynamicRange returns the value of the constant kCGPreferredDynamicRange.
func KCGSkipBoostToHDR ¶
KCGSkipBoostToHDR returns the value of the constant kCGSkipBoostToHDR.
func KCGUse100nitsHLGOOTF ¶
KCGUse100nitsHLGOOTF returns the value of the constant kCGUse100nitsHLGOOTF.
func KCGUseBT1886ForCoreVideoGamma ¶
KCGUseBT1886ForCoreVideoGamma returns the value of the constant kCGUseBT1886ForCoreVideoGamma.
func KCGUseLegacyHDREcosystem ¶
KCGUseLegacyHDREcosystem returns the value of the constant kCGUseLegacyHDREcosystem.
func KCGWindowAlpha ¶
KCGWindowAlpha returns the value of the constant kCGWindowAlpha.
func KCGWindowBackingLocationVideoMemory ¶
KCGWindowBackingLocationVideoMemory returns the value of the constant kCGWindowBackingLocationVideoMemory.
func KCGWindowBounds ¶
KCGWindowBounds returns the value of the constant kCGWindowBounds.
func KCGWindowIsOnscreen ¶
KCGWindowIsOnscreen returns the value of the constant kCGWindowIsOnscreen.
func KCGWindowLayer ¶
KCGWindowLayer returns the value of the constant kCGWindowLayer.
func KCGWindowMemoryUsage ¶
KCGWindowMemoryUsage returns the value of the constant kCGWindowMemoryUsage.
func KCGWindowName ¶
KCGWindowName returns the value of the constant kCGWindowName.
func KCGWindowNumber ¶
KCGWindowNumber returns the value of the constant kCGWindowNumber.
func KCGWindowOwnerName ¶
KCGWindowOwnerName returns the value of the constant kCGWindowOwnerName.
func KCGWindowOwnerPID ¶
KCGWindowOwnerPID returns the value of the constant kCGWindowOwnerPID.
func KCGWindowSharingState ¶
KCGWindowSharingState returns the value of the constant kCGWindowSharingState.
func KCGWindowStoreType ¶
KCGWindowStoreType returns the value of the constant kCGWindowStoreType.
func KCGWindowWorkspace ¶
KCGWindowWorkspace returns the value of the constant kCGWindowWorkspace.
Types ¶
type CGBitmapInfo ¶
type CGBitmapInfo uint32
Component information for a bitmap image. Bitmask — values may be combined with |.
const ( KCGBitmapAlphaInfoMask CGBitmapInfo = 31 KCGBitmapComponentInfoMask CGBitmapInfo = 3840 KCGBitmapByteOrderInfoMask CGBitmapInfo = 28672 KCGBitmapPixelFormatInfoMask CGBitmapInfo = 983040 KCGBitmapFloatInfoMask CGBitmapInfo = 3840 KCGBitmapByteOrderMask CGBitmapInfo = 28672 // The components of a bitmap are floating-point values. KCGBitmapFloatComponents CGBitmapInfo = 256 // The default byte order. KCGBitmapByteOrderDefault CGBitmapInfo = 0 // 16-bit, little endian format. KCGBitmapByteOrder16Little CGBitmapInfo = 4096 // 32-bit, little endian format. KCGBitmapByteOrder32Little CGBitmapInfo = 8192 // 16-bit, big endian format. KCGBitmapByteOrder16Big CGBitmapInfo = 12288 // 32-bit, big endian format. KCGBitmapByteOrder32Big CGBitmapInfo = 16384 )
func CGBitmapContextGetBitmapInfo ¶
func CGBitmapContextGetBitmapInfo(context_ CGContextRef) CGBitmapInfo
CGBitmapContextGetBitmapInfo calls the CoreGraphics framework function CGBitmapContextGetBitmapInfo.
func CGBitmapInfoMake ¶
func CGBitmapInfoMake(alpha CGImageAlphaInfo, component CGImageComponentInfo, byteOrder CGImageByteOrderInfo, pixelFormat CGImagePixelFormatInfo) CGBitmapInfo
CGBitmapInfoMake calls the CoreGraphics framework function CGBitmapInfoMake.
func CGImageGetBitmapInfo ¶
func CGImageGetBitmapInfo(image CGImageRef) CGBitmapInfo
CGImageGetBitmapInfo calls the CoreGraphics framework function CGImageGetBitmapInfo.
func (CGBitmapInfo) String ¶
func (e CGBitmapInfo) String() string
String returns the CGBitmapInfo constant's name, or its numeric form when the value is not a known constant.
type CGBitmapLayout ¶
type CGBitmapLayout uint32
const ( KCGBitmapLayoutAlphaOnly CGBitmapLayout = 0 KCGBitmapLayoutGray CGBitmapLayout = 1 KCGBitmapLayoutGrayAlpha CGBitmapLayout = 2 KCGBitmapLayoutRGBA CGBitmapLayout = 3 KCGBitmapLayoutARGB CGBitmapLayout = 4 KCGBitmapLayoutRGBX CGBitmapLayout = 5 KCGBitmapLayoutXRGB CGBitmapLayout = 6 KCGBitmapLayoutBGRA CGBitmapLayout = 7 KCGBitmapLayoutBGRX CGBitmapLayout = 8 KCGBitmapLayoutABGR CGBitmapLayout = 9 KCGBitmapLayoutXBGR CGBitmapLayout = 10 KCGBitmapLayoutCMYK CGBitmapLayout = 11 )
func (CGBitmapLayout) String ¶
func (e CGBitmapLayout) String() string
String returns the CGBitmapLayout constant's name, or its numeric form when the value is not a known constant.
type CGBitmapParameters ¶
type CGBitmapParameters struct {
Width uint
Height uint
BytesPerPixel uint
AlignedBytesPerRow uint
Component CGComponent
Layout CGBitmapLayout
Format CGImagePixelFormatInfo
ColorSpace unsafe.Pointer
HasPremultipliedAlpha bool
ByteOrder int
EdrTargetHeadroom float32
}
type CGBlendMode ¶
type CGBlendMode int32
Compositing operations for images.
const ( // Paints the source image samples over the background image samples. KCGBlendModeNormal CGBlendMode = 0 // Multiplies the source image samples with the background image samples. This results in colors that are at least as dark as either of the two contributing sample colors. KCGBlendModeMultiply CGBlendMode = 1 // 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 KCGBlendModeOverlay CGBlendMode = 3 KCGBlendModeDarken CGBlendMode = 4 KCGBlendModeLighten CGBlendMode = 5 // Brightens the background image samples to reflect the source image samples. Source image sample values that specify black do not produce a change. KCGBlendModeColorDodge CGBlendMode = 6 // Darkens the background image samples to reflect the source image samples. Source image sample values that specify white do not produce a change. KCGBlendModeColorBurn CGBlendMode = 7 KCGBlendModeSoftLight CGBlendMode = 8 KCGBlendModeHardLight CGBlendMode = 9 KCGBlendModeDifference CGBlendMode = 10 // Produces an effect similar to that produced by kCGBlendModeDifference, but with lower contrast. Source image sample values that are black don’t produce a change; white inverts the background color values. KCGBlendModeExclusion CGBlendMode = 11 // Uses the luminance and saturation values of the background with the hue of the source image. KCGBlendModeHue CGBlendMode = 12 // Uses the luminance and hue values of the background with the saturation of the source image. Areas of the background that have no saturation (that is, pure gray areas) don’t produce a change. KCGBlendModeSaturation CGBlendMode = 13 // Uses the luminance values of the background with the hue and saturation values of the source image. This mode preserves the gray levels in the image. You can use this mode to color monochrome images or to tint color images. KCGBlendModeColor CGBlendMode = 14 // Uses the hue and saturation of the background with the luminance of the source image. This mode creates an effect that is inverse to the effect created by kCGBlendModeColor. KCGBlendModeLuminosity CGBlendMode = 15 // R = 0 KCGBlendModeClear CGBlendMode = 16 // R = S KCGBlendModeCopy CGBlendMode = 17 // R = S*Da KCGBlendModeSourceIn CGBlendMode = 18 // R = S*(1 - Da) KCGBlendModeSourceOut CGBlendMode = 19 // R = S*Da + D*(1 - Sa) KCGBlendModeSourceAtop CGBlendMode = 20 // R = S*(1 - Da) + D KCGBlendModeDestinationOver CGBlendMode = 21 // R = D*Sa KCGBlendModeDestinationIn CGBlendMode = 22 // R = D*(1 - Sa) KCGBlendModeDestinationOut CGBlendMode = 23 // R = S*(1 - Da) + D*Sa KCGBlendModeDestinationAtop CGBlendMode = 24 // R = S*(1 - Da) + D*(1 - Sa). This XOR mode is only nominally related to the classical bitmap XOR operation, which is not supported by Core Graphics KCGBlendModeXOR CGBlendMode = 25 // R = MAX(0, 1 - ((1 - D) + (1 - S))) KCGBlendModePlusDarker CGBlendMode = 26 // R = MIN(1, S + D) KCGBlendModePlusLighter CGBlendMode = 27 )
func (CGBlendMode) String ¶
func (e CGBlendMode) String() string
String returns the CGBlendMode constant's name, or its numeric form when the value is not a known constant.
type CGCaptureOptions ¶
type CGCaptureOptions uint32
Configuration parameters that are used when capturing displays. Bitmask — values may be combined with |.
const ( // The system should use the default fill behavior, which is fill with black. KCGCaptureNoOptions CGCaptureOptions = 0 // Disables fill with black. KCGCaptureNoFill CGCaptureOptions = 1 )
func (CGCaptureOptions) String ¶
func (e CGCaptureOptions) String() string
String returns the CGCaptureOptions constant's name, or its numeric form when the value is not a known constant.
type CGColor ¶
type CGColor struct{}
A set of components that define a color, with a color space specifying how to interpret them.
type CGColorBufferFormat ¶
type CGColorBufferFormat struct {
Version uint32
BitmapInfo CGBitmapInfo
BitsPerComponent uint
BitsPerPixel uint
BytesPerRow uint
}
type CGColorConversionInfo ¶
type CGColorConversionInfo struct{}
An object that describes how to convert between color spaces for use by other system services.
type CGColorConversionInfoRef ¶ added in v0.18.0
CGColorConversionInfoRef is a handle for the opaque CGColorConversionInfoRef type.
func CGColorConversionInfoCreate ¶
func CGColorConversionInfoCreate(src CGColorSpaceRef, dst CGColorSpaceRef) CGColorConversionInfoRef
CGColorConversionInfoCreate calls the CoreGraphics framework function CGColorConversionInfoCreate.
func CGColorConversionInfoCreateFromListWithArguments ¶
func CGColorConversionInfoCreateFromListWithArguments(options obj.Object, arg CGColorSpaceRef, arg2 CGColorConversionInfoTransformType, arg3 CGColorRenderingIntent, arg4 string) CGColorConversionInfoRef
CGColorConversionInfoCreateFromListWithArguments calls the CoreGraphics framework function CGColorConversionInfoCreateFromListWithArguments.
func CGColorConversionInfoCreateWithOptions ¶
func CGColorConversionInfoCreateWithOptions(src CGColorSpaceRef, dst CGColorSpaceRef, options obj.Object) CGColorConversionInfoRef
CGColorConversionInfoCreateWithOptions calls the CoreGraphics framework function CGColorConversionInfoCreateWithOptions.
func (CGColorConversionInfoRef) IsNil ¶ added in v0.18.0
func (h CGColorConversionInfoRef) IsNil() bool
IsNil reports whether CGColorConversionInfoRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGColorConversionInfoTransformType ¶
type CGColorConversionInfoTransformType uint32
Constants describing how a color conversion uses color spaces.
const ( // Specifies a color conversion from a device color space to a color profile. KCGColorConversionTransformFromSpace CGColorConversionInfoTransformType = 0 // Specifies a color conversion from a color profile to a device color space. KCGColorConversionTransformToSpace CGColorConversionInfoTransformType = 1 // Specifies a color conversion between one color profile and another. KCGColorConversionTransformApplySpace CGColorConversionInfoTransformType = 2 )
func (CGColorConversionInfoTransformType) String ¶
func (e CGColorConversionInfoTransformType) String() string
String returns the CGColorConversionInfoTransformType constant's name, or its numeric form when the value is not a known constant.
type CGColorDataFormat ¶
type CGColorDataFormat struct {
Version uint32
ColorspaceInfo unsafe.Pointer
BitmapInfo CGBitmapInfo
BitsPerComponent uint
BytesPerRow uint
Intent CGColorRenderingIntent
Decode unsafe.Pointer
}
type CGColorModel ¶
type CGColorModel uint32
Bitmask — values may be combined with |.
const ( KCGColorModelNoColorant CGColorModel = 0 KCGColorModelGray CGColorModel = 1 KCGColorModelRGB CGColorModel = 2 KCGColorModelCMYK CGColorModel = 4 KCGColorModelLab CGColorModel = 8 KCGColorModelDeviceN CGColorModel = 16 )
func (CGColorModel) String ¶
func (e CGColorModel) String() string
String returns the CGColorModel constant's name, or its numeric form when the value is not a known constant.
type CGColorRef ¶ added in v0.18.0
CGColorRef is a handle for the opaque CGColorRef type.
func CGColorCreate ¶
func CGColorCreate(space CGColorSpaceRef, components unsafe.Pointer) CGColorRef
CGColorCreate calls the CoreGraphics framework function CGColorCreate.
func CGColorCreateCopy ¶
func CGColorCreateCopy(color CGColorRef) CGColorRef
CGColorCreateCopy calls the CoreGraphics framework function CGColorCreateCopy.
func CGColorCreateCopyByMatchingToColorSpace ¶
func CGColorCreateCopyByMatchingToColorSpace(arg CGColorSpaceRef, intent CGColorRenderingIntent, color CGColorRef, options obj.Object) CGColorRef
CGColorCreateCopyByMatchingToColorSpace calls the CoreGraphics framework function CGColorCreateCopyByMatchingToColorSpace.
func CGColorCreateCopyWithAlpha ¶
func CGColorCreateCopyWithAlpha(color CGColorRef, alpha float64) CGColorRef
CGColorCreateCopyWithAlpha calls the CoreGraphics framework function CGColorCreateCopyWithAlpha.
func CGColorCreateGenericCMYK ¶
func CGColorCreateGenericCMYK(cyan float64, magenta float64, yellow float64, black float64, alpha float64) CGColorRef
CGColorCreateGenericCMYK calls the CoreGraphics framework function CGColorCreateGenericCMYK.
func CGColorCreateGenericGray ¶
func CGColorCreateGenericGray(gray float64, alpha float64) CGColorRef
CGColorCreateGenericGray calls the CoreGraphics framework function CGColorCreateGenericGray.
func CGColorCreateGenericGrayGamma2_2 ¶
func CGColorCreateGenericGrayGamma2_2(gray float64, alpha float64) CGColorRef
CGColorCreateGenericGrayGamma2_2 calls the CoreGraphics framework function CGColorCreateGenericGrayGamma2_2.
func CGColorCreateGenericRGB ¶
func CGColorCreateGenericRGB(red float64, green float64, blue float64, alpha float64) CGColorRef
CGColorCreateGenericRGB calls the CoreGraphics framework function CGColorCreateGenericRGB.
func CGColorCreateSRGB ¶
func CGColorCreateSRGB(red float64, green float64, blue float64, alpha float64) CGColorRef
CGColorCreateSRGB calls the CoreGraphics framework function CGColorCreateSRGB.
func CGColorCreateWithContentHeadroom ¶
func CGColorCreateWithContentHeadroom(headroom float32, space CGColorSpaceRef, red float64, green float64, blue float64, alpha float64) CGColorRef
CGColorCreateWithContentHeadroom calls the CoreGraphics framework function CGColorCreateWithContentHeadroom.
func CGColorCreateWithPattern ¶
func CGColorCreateWithPattern(space CGColorSpaceRef, pattern CGPatternRef, components unsafe.Pointer) CGColorRef
CGColorCreateWithPattern calls the CoreGraphics framework function CGColorCreateWithPattern.
func CGColorGetConstantColor ¶
func CGColorGetConstantColor(colorName obj.Object) CGColorRef
CGColorGetConstantColor calls the CoreGraphics framework function CGColorGetConstantColor.
func CGColorRetain ¶
func CGColorRetain(color CGColorRef) CGColorRef
CGColorRetain calls the CoreGraphics framework function CGColorRetain.
func (CGColorRef) IsNil ¶ added in v0.18.0
func (h CGColorRef) IsNil() bool
IsNil reports whether CGColorRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGColorRenderingIntent ¶
type CGColorRenderingIntent int32
Handling options for colors that are not located within the destination color space of a graphics context.
const ( // The default rendering intent for the graphics context. KCGRenderingIntentDefault CGColorRenderingIntent = 0 KCGRenderingIntentAbsoluteColorimetric CGColorRenderingIntent = 1 KCGRenderingIntentRelativeColorimetric CGColorRenderingIntent = 2 // Preserve the visual relationship between colors by compressing the gamut of the graphics context to fit inside the gamut of the output device. Perceptual intent is good for photographs and other complex, detailed images. KCGRenderingIntentPerceptual CGColorRenderingIntent = 3 KCGRenderingIntentSaturation CGColorRenderingIntent = 4 )
func CGImageGetRenderingIntent ¶
func CGImageGetRenderingIntent(image CGImageRef) CGColorRenderingIntent
CGImageGetRenderingIntent calls the CoreGraphics framework function CGImageGetRenderingIntent.
func (CGColorRenderingIntent) String ¶
func (e CGColorRenderingIntent) String() string
String returns the CGColorRenderingIntent constant's name, or its numeric form when the value is not a known constant.
type CGColorSpace ¶
type CGColorSpace struct{}
A profile that specifies how to interpret a color value for display.
type CGColorSpaceModel ¶
type CGColorSpaceModel int32
Models for color spaces.
const ( // An unknown color space model. KCGColorSpaceModelUnknown CGColorSpaceModel = -1 // A monochrome color space model. KCGColorSpaceModelMonochrome CGColorSpaceModel = 0 // An RGB color space model. KCGColorSpaceModelRGB CGColorSpaceModel = 1 // A CMYK color space model. KCGColorSpaceModelCMYK CGColorSpaceModel = 2 // A Lab color space model. KCGColorSpaceModelLab CGColorSpaceModel = 3 // A DeviceN color space model. KCGColorSpaceModelDeviceN CGColorSpaceModel = 4 // An indexed color space model. KCGColorSpaceModelIndexed CGColorSpaceModel = 5 // A pattern color space model. KCGColorSpaceModelPattern CGColorSpaceModel = 6 // An XYZ color space model. KCGColorSpaceModelXYZ CGColorSpaceModel = 7 )
func CGColorSpaceGetModel ¶
func CGColorSpaceGetModel(space CGColorSpaceRef) CGColorSpaceModel
CGColorSpaceGetModel calls the CoreGraphics framework function CGColorSpaceGetModel.
func (CGColorSpaceModel) String ¶
func (e CGColorSpaceModel) String() string
String returns the CGColorSpaceModel constant's name, or its numeric form when the value is not a known constant.
type CGColorSpaceRef ¶ added in v0.18.0
CGColorSpaceRef is a handle for the opaque CGColorSpaceRef type.
func CGBitmapContextGetColorSpace ¶
func CGBitmapContextGetColorSpace(context_ CGContextRef) CGColorSpaceRef
CGBitmapContextGetColorSpace calls the CoreGraphics framework function CGBitmapContextGetColorSpace.
func CGColorGetColorSpace ¶
func CGColorGetColorSpace(color CGColorRef) CGColorSpaceRef
CGColorGetColorSpace calls the CoreGraphics framework function CGColorGetColorSpace.
func CGColorSpaceCopyBaseColorSpace ¶
func CGColorSpaceCopyBaseColorSpace(space CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceCopyBaseColorSpace calls the CoreGraphics framework function CGColorSpaceCopyBaseColorSpace.
func CGColorSpaceCreateCalibratedGray ¶
func CGColorSpaceCreateCalibratedGray(whitePoint unsafe.Pointer, blackPoint unsafe.Pointer, gamma float64) CGColorSpaceRef
CGColorSpaceCreateCalibratedGray calls the CoreGraphics framework function CGColorSpaceCreateCalibratedGray.
func CGColorSpaceCreateCalibratedRGB ¶
func CGColorSpaceCreateCalibratedRGB(whitePoint unsafe.Pointer, blackPoint unsafe.Pointer, gamma unsafe.Pointer, matrix unsafe.Pointer) CGColorSpaceRef
CGColorSpaceCreateCalibratedRGB calls the CoreGraphics framework function CGColorSpaceCreateCalibratedRGB.
func CGColorSpaceCreateCopyWithStandardRange ¶
func CGColorSpaceCreateCopyWithStandardRange(space CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceCreateCopyWithStandardRange calls the CoreGraphics framework function CGColorSpaceCreateCopyWithStandardRange.
func CGColorSpaceCreateDeviceCMYK ¶
func CGColorSpaceCreateDeviceCMYK() CGColorSpaceRef
CGColorSpaceCreateDeviceCMYK calls the CoreGraphics framework function CGColorSpaceCreateDeviceCMYK.
func CGColorSpaceCreateDeviceGray ¶
func CGColorSpaceCreateDeviceGray() CGColorSpaceRef
CGColorSpaceCreateDeviceGray calls the CoreGraphics framework function CGColorSpaceCreateDeviceGray.
func CGColorSpaceCreateDeviceRGB ¶
func CGColorSpaceCreateDeviceRGB() CGColorSpaceRef
CGColorSpaceCreateDeviceRGB calls the CoreGraphics framework function CGColorSpaceCreateDeviceRGB.
func CGColorSpaceCreateExtended ¶
func CGColorSpaceCreateExtended(space CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceCreateExtended calls the CoreGraphics framework function CGColorSpaceCreateExtended.
func CGColorSpaceCreateExtendedLinearized ¶
func CGColorSpaceCreateExtendedLinearized(space CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceCreateExtendedLinearized calls the CoreGraphics framework function CGColorSpaceCreateExtendedLinearized.
func CGColorSpaceCreateICCBased ¶
func CGColorSpaceCreateICCBased(nComponents int, range_ unsafe.Pointer, profile CGDataProviderRef, alternate CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceCreateICCBased calls the CoreGraphics framework function CGColorSpaceCreateICCBased.
func CGColorSpaceCreateIndexed ¶
func CGColorSpaceCreateIndexed(baseSpace CGColorSpaceRef, lastIndex int, colorTable unsafe.Pointer) CGColorSpaceRef
CGColorSpaceCreateIndexed calls the CoreGraphics framework function CGColorSpaceCreateIndexed.
func CGColorSpaceCreateLab ¶
func CGColorSpaceCreateLab(whitePoint unsafe.Pointer, blackPoint unsafe.Pointer, range_ unsafe.Pointer) CGColorSpaceRef
CGColorSpaceCreateLab calls the CoreGraphics framework function CGColorSpaceCreateLab.
func CGColorSpaceCreateLinearized ¶
func CGColorSpaceCreateLinearized(space CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceCreateLinearized calls the CoreGraphics framework function CGColorSpaceCreateLinearized.
func CGColorSpaceCreatePattern ¶
func CGColorSpaceCreatePattern(baseSpace CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceCreatePattern calls the CoreGraphics framework function CGColorSpaceCreatePattern.
func CGColorSpaceCreateWithColorSyncProfile ¶
func CGColorSpaceCreateWithColorSyncProfile(arg obj.Object, options obj.Object) CGColorSpaceRef
CGColorSpaceCreateWithColorSyncProfile calls the CoreGraphics framework function CGColorSpaceCreateWithColorSyncProfile.
func CGColorSpaceCreateWithICCData ¶
func CGColorSpaceCreateWithICCData(data obj.Object) CGColorSpaceRef
CGColorSpaceCreateWithICCData calls the CoreGraphics framework function CGColorSpaceCreateWithICCData.
func CGColorSpaceCreateWithICCProfile ¶
func CGColorSpaceCreateWithICCProfile(data obj.Object) CGColorSpaceRef
CGColorSpaceCreateWithICCProfile calls the CoreGraphics framework function CGColorSpaceCreateWithICCProfile.
func CGColorSpaceCreateWithName ¶
func CGColorSpaceCreateWithName(name obj.Object) CGColorSpaceRef
CGColorSpaceCreateWithName calls the CoreGraphics framework function CGColorSpaceCreateWithName.
func CGColorSpaceCreateWithPlatformColorSpace ¶
func CGColorSpaceCreateWithPlatformColorSpace(ref unsafe.Pointer) CGColorSpaceRef
CGColorSpaceCreateWithPlatformColorSpace calls the CoreGraphics framework function CGColorSpaceCreateWithPlatformColorSpace.
func CGColorSpaceCreateWithPropertyList ¶
func CGColorSpaceCreateWithPropertyList(plist obj.Object) CGColorSpaceRef
CGColorSpaceCreateWithPropertyList calls the CoreGraphics framework function CGColorSpaceCreateWithPropertyList.
func CGColorSpaceGetBaseColorSpace ¶
func CGColorSpaceGetBaseColorSpace(space CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceGetBaseColorSpace calls the CoreGraphics framework function CGColorSpaceGetBaseColorSpace.
func CGColorSpaceRetain ¶
func CGColorSpaceRetain(space CGColorSpaceRef) CGColorSpaceRef
CGColorSpaceRetain calls the CoreGraphics framework function CGColorSpaceRetain.
func CGDisplayCopyColorSpace ¶
func CGDisplayCopyColorSpace(display uint32) CGColorSpaceRef
CGDisplayCopyColorSpace calls the CoreGraphics framework function CGDisplayCopyColorSpace.
func CGImageGetColorSpace ¶
func CGImageGetColorSpace(image CGImageRef) CGColorSpaceRef
CGImageGetColorSpace calls the CoreGraphics framework function CGImageGetColorSpace.
func (CGColorSpaceRef) IsNil ¶ added in v0.18.0
func (h CGColorSpaceRef) IsNil() bool
IsNil reports whether CGColorSpaceRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGComponent ¶
type CGComponent uint32
const ( KCGComponentUnknown CGComponent = 0 KCGComponentInteger8Bit CGComponent = 1 KCGComponentInteger10Bit CGComponent = 6 KCGComponentInteger16Bit CGComponent = 2 KCGComponentInteger32Bit CGComponent = 3 KCGComponentFloat16Bit CGComponent = 5 KCGComponentFloat32Bit CGComponent = 4 )
func (CGComponent) String ¶
func (e CGComponent) String() string
String returns the CGComponent constant's name, or its numeric form when the value is not a known constant.
type CGConfigureOption ¶
type CGConfigureOption uint32
The scope of the changes in a display configuration transaction. Bitmask — values may be combined with |.
const ( // Changes persist for the lifetime of the current application. After the application terminates, the display configuration settings revert to the current login session. KCGConfigureForAppOnly CGConfigureOption = 0 // Changes persist for the lifetime of the current login session. After the current session terminates, the displays revert to the last saved permanent configuration. KCGConfigureForSession CGConfigureOption = 1 KCGConfigurePermanently CGConfigureOption = 2 )
func (CGConfigureOption) String ¶
func (e CGConfigureOption) String() string
String returns the CGConfigureOption constant's name, or its numeric form when the value is not a known constant.
type CGContentInfo ¶
type CGContentInfo struct {
DeepestImageComponent CGComponent
ContentColorModels CGColorModel
HasWideGamut bool
HasTransparency bool
LargestContentHeadroom float32
}
type CGContentToneMappingInfo ¶
type CGContentToneMappingInfo struct {
Method CGToneMapping
Options unsafe.Pointer
}
type CGContextRef ¶ added in v0.18.0
CGContextRef is a handle for the opaque CGContextRef type.
func CGBitmapContextCreate ¶
func CGBitmapContextCreate(data unsafe.Pointer, width int, height int, bitsPerComponent int, bytesPerRow int, space CGColorSpaceRef, bitmapInfo CGBitmapInfo) CGContextRef
CGBitmapContextCreate calls the CoreGraphics framework function CGBitmapContextCreate.
func CGBitmapContextCreateAdaptive ¶
func CGBitmapContextCreateAdaptive(width int, height int, auxiliaryInfo obj.Object, onResolve unsafe.Pointer, onAllocate unsafe.Pointer, onFree unsafe.Pointer, onError unsafe.Pointer) CGContextRef
CGBitmapContextCreateAdaptive calls the CoreGraphics framework function CGBitmapContextCreateAdaptive.
func CGBitmapContextCreateWithData ¶
func CGBitmapContextCreateWithData(data unsafe.Pointer, width int, height int, bitsPerComponent int, bytesPerRow int, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, releaseCallback unsafe.Pointer, releaseInfo unsafe.Pointer) CGContextRef
CGBitmapContextCreateWithData calls the CoreGraphics framework function CGBitmapContextCreateWithData.
func CGContextRetain ¶
func CGContextRetain(c CGContextRef) CGContextRef
CGContextRetain calls the CoreGraphics framework function CGContextRetain.
func CGDisplayGetDrawingContext ¶
func CGDisplayGetDrawingContext(display uint32) CGContextRef
CGDisplayGetDrawingContext calls the CoreGraphics framework function CGDisplayGetDrawingContext.
func CGLayerGetContext ¶
func CGLayerGetContext(layer CGLayerRef) CGContextRef
CGLayerGetContext calls the CoreGraphics framework function CGLayerGetContext.
func CGPDFContextCreate ¶
func CGPDFContextCreate(consumer CGDataConsumerRef, mediaBox *corefoundation.CGRect, auxiliaryInfo obj.Object) CGContextRef
CGPDFContextCreate calls the CoreGraphics framework function CGPDFContextCreate.
func CGPDFContextCreateWithURL ¶
func CGPDFContextCreateWithURL(url obj.Object, mediaBox *corefoundation.CGRect, auxiliaryInfo obj.Object) CGContextRef
CGPDFContextCreateWithURL calls the CoreGraphics framework function CGPDFContextCreateWithURL.
func (CGContextRef) IsNil ¶ added in v0.18.0
func (h CGContextRef) IsNil() bool
IsNil reports whether CGContextRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGDataConsumer ¶
type CGDataConsumer struct{}
An abstraction for data-writing tasks that eliminates the need to manage a raw memory buffer.
type CGDataConsumerCallbacks ¶
A structure that contains pointers to callback functions that manage the copying of data for a data consumer.
type CGDataConsumerRef ¶ added in v0.18.0
CGDataConsumerRef is a handle for the opaque CGDataConsumerRef type.
func CGDataConsumerCreate ¶
func CGDataConsumerCreate(info unsafe.Pointer, cbks unsafe.Pointer) CGDataConsumerRef
CGDataConsumerCreate calls the CoreGraphics framework function CGDataConsumerCreate.
func CGDataConsumerCreateWithCFData ¶
func CGDataConsumerCreateWithCFData(data obj.Object) CGDataConsumerRef
CGDataConsumerCreateWithCFData calls the CoreGraphics framework function CGDataConsumerCreateWithCFData.
func CGDataConsumerCreateWithURL ¶
func CGDataConsumerCreateWithURL(url obj.Object) CGDataConsumerRef
CGDataConsumerCreateWithURL calls the CoreGraphics framework function CGDataConsumerCreateWithURL.
func CGDataConsumerRetain ¶
func CGDataConsumerRetain(consumer CGDataConsumerRef) CGDataConsumerRef
CGDataConsumerRetain calls the CoreGraphics framework function CGDataConsumerRetain.
func (CGDataConsumerRef) IsNil ¶ added in v0.18.0
func (h CGDataConsumerRef) IsNil() bool
IsNil reports whether CGDataConsumerRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGDataProvider ¶
type CGDataProvider struct{}
An abstraction for data-reading tasks that eliminates the need to manage a raw memory buffer.
type CGDataProviderDirectCallbacks ¶
type CGDataProviderDirectCallbacks struct {
Version uint32
GetBytePointer unsafe.Pointer
ReleaseBytePointer unsafe.Pointer
GetBytesAtPosition unsafe.Pointer
ReleaseInfo unsafe.Pointer
}
Defines pointers to client-defined callback functions that manage the sending of data for a direct-access data provider.
type CGDataProviderRef ¶ added in v0.18.0
CGDataProviderRef is a handle for the opaque CGDataProviderRef type.
func CGDataProviderCreateDirect ¶
func CGDataProviderCreateDirect(info unsafe.Pointer, size int64, callbacks unsafe.Pointer) CGDataProviderRef
CGDataProviderCreateDirect calls the CoreGraphics framework function CGDataProviderCreateDirect.
func CGDataProviderCreateSequential ¶
func CGDataProviderCreateSequential(info unsafe.Pointer, callbacks unsafe.Pointer) CGDataProviderRef
CGDataProviderCreateSequential calls the CoreGraphics framework function CGDataProviderCreateSequential.
func CGDataProviderCreateWithCFData ¶
func CGDataProviderCreateWithCFData(data obj.Object) CGDataProviderRef
CGDataProviderCreateWithCFData calls the CoreGraphics framework function CGDataProviderCreateWithCFData.
func CGDataProviderCreateWithData ¶
func CGDataProviderCreateWithData(info unsafe.Pointer, data unsafe.Pointer, size int, releaseData unsafe.Pointer) CGDataProviderRef
CGDataProviderCreateWithData calls the CoreGraphics framework function CGDataProviderCreateWithData.
func CGDataProviderCreateWithFilename ¶
func CGDataProviderCreateWithFilename(filename string) CGDataProviderRef
CGDataProviderCreateWithFilename calls the CoreGraphics framework function CGDataProviderCreateWithFilename.
func CGDataProviderCreateWithURL ¶
func CGDataProviderCreateWithURL(url obj.Object) CGDataProviderRef
CGDataProviderCreateWithURL calls the CoreGraphics framework function CGDataProviderCreateWithURL.
func CGDataProviderRetain ¶
func CGDataProviderRetain(provider CGDataProviderRef) CGDataProviderRef
CGDataProviderRetain calls the CoreGraphics framework function CGDataProviderRetain.
func CGImageGetDataProvider ¶
func CGImageGetDataProvider(image CGImageRef) CGDataProviderRef
CGImageGetDataProvider calls the CoreGraphics framework function CGImageGetDataProvider.
func (CGDataProviderRef) IsNil ¶ added in v0.18.0
func (h CGDataProviderRef) IsNil() bool
IsNil reports whether CGDataProviderRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGDataProviderSequentialCallbacks ¶
type CGDataProviderSequentialCallbacks struct {
Version uint32
GetBytes unsafe.Pointer
SkipForward unsafe.Pointer
Rewind unsafe.Pointer
ReleaseInfo unsafe.Pointer
}
Defines a structure containing pointers to client-defined callback functions that manage the sending of data for a sequential-access data provider.
type CGDeviceColor ¶
type CGDisplayChangeSummaryFlags ¶
type CGDisplayChangeSummaryFlags uint32
The configuration parameters that are passed to a display reconfiguration callback function. Bitmask — values may be combined with |.
const ( // The display configuration is about to change. KCGDisplayBeginConfigurationFlag CGDisplayChangeSummaryFlags = 1 // The location of the upper-left corner of the display in the global display coordinate space has changed. KCGDisplayMovedFlag CGDisplayChangeSummaryFlags = 2 // The display is now the main display. KCGDisplaySetMainFlag CGDisplayChangeSummaryFlags = 4 // The display mode has changed. KCGDisplaySetModeFlag CGDisplayChangeSummaryFlags = 8 // The display has been added to the active display list. KCGDisplayAddFlag CGDisplayChangeSummaryFlags = 16 // The display has been removed from the active display list. KCGDisplayRemoveFlag CGDisplayChangeSummaryFlags = 32 // The display has been enabled. KCGDisplayEnabledFlag CGDisplayChangeSummaryFlags = 256 // The display has been disabled. KCGDisplayDisabledFlag CGDisplayChangeSummaryFlags = 512 // The display is now mirroring another display. KCGDisplayMirrorFlag CGDisplayChangeSummaryFlags = 1024 // The display is no longer mirroring another display. KCGDisplayUnMirrorFlag CGDisplayChangeSummaryFlags = 2048 KCGDisplayDesktopShapeChangedFlag CGDisplayChangeSummaryFlags = 4096 )
func (CGDisplayChangeSummaryFlags) String ¶
func (e CGDisplayChangeSummaryFlags) String() string
String returns the CGDisplayChangeSummaryFlags constant's name, or its numeric form when the value is not a known constant.
type CGDisplayConfigRef ¶
CGDisplayConfigRef is a handle for the opaque _CGDisplayConfigRef type.
func (CGDisplayConfigRef) IsNil ¶ added in v0.18.0
func (h CGDisplayConfigRef) IsNil() bool
IsNil reports whether CGDisplayConfigRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGDisplayModeRef ¶ added in v0.18.0
CGDisplayModeRef is a handle for the opaque CGDisplayModeRef type.
func CGDisplayCopyDisplayMode ¶
func CGDisplayCopyDisplayMode(display uint32) CGDisplayModeRef
CGDisplayCopyDisplayMode calls the CoreGraphics framework function CGDisplayCopyDisplayMode.
func CGDisplayModeRetain ¶
func CGDisplayModeRetain(mode CGDisplayModeRef) CGDisplayModeRef
CGDisplayModeRetain calls the CoreGraphics framework function CGDisplayModeRetain.
func (CGDisplayModeRef) IsNil ¶ added in v0.18.0
func (h CGDisplayModeRef) IsNil() bool
IsNil reports whether CGDisplayModeRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGDisplayStreamFrameStatus ¶
type CGDisplayStreamFrameStatus int32
Describes a frame update event.
const ( // A new frame was generated. KCGDisplayStreamFrameStatusFrameComplete CGDisplayStreamFrameStatus = 0 // A new frame was not generated because the display did not change. KCGDisplayStreamFrameStatusFrameIdle CGDisplayStreamFrameStatus = 1 // A new frame was not generated because the display has gone blank. KCGDisplayStreamFrameStatusFrameBlank CGDisplayStreamFrameStatus = 2 // The display stream was stopped. KCGDisplayStreamFrameStatusStopped CGDisplayStreamFrameStatus = 3 )
func (CGDisplayStreamFrameStatus) String ¶
func (e CGDisplayStreamFrameStatus) String() string
String returns the CGDisplayStreamFrameStatus constant's name, or its numeric form when the value is not a known constant.
type CGDisplayStreamRef ¶ added in v0.18.0
CGDisplayStreamRef is a handle for the opaque CGDisplayStreamRef type.
func (CGDisplayStreamRef) IsNil ¶ added in v0.18.0
func (h CGDisplayStreamRef) IsNil() bool
IsNil reports whether CGDisplayStreamRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGDisplayStreamUpdate ¶
type CGDisplayStreamUpdate struct{}
A reference to frame update’s metadata.
type CGDisplayStreamUpdateRectType ¶
type CGDisplayStreamUpdateRectType int32
Use these constants to determine which rectangles your app is interested in.
const ( // The rectangles for the portions of the display that were redrawn. KCGDisplayStreamUpdateRefreshedRects CGDisplayStreamUpdateRectType = 0 // The rectangles for the portions of the display that were simply moved from one part of the display to another. KCGDisplayStreamUpdateMovedRects CGDisplayStreamUpdateRectType = 1 // The union of both rectangles that were redrawn and rectangles that were moved. KCGDisplayStreamUpdateDirtyRects CGDisplayStreamUpdateRectType = 2 // The union is calculated and then simplified. This reduces the number of rectangles returned to your app, but it may report some pixels that were not actually changed. KCGDisplayStreamUpdateReducedDirtyRects CGDisplayStreamUpdateRectType = 3 )
func (CGDisplayStreamUpdateRectType) String ¶
func (e CGDisplayStreamUpdateRectType) String() string
String returns the CGDisplayStreamUpdateRectType constant's name, or its numeric form when the value is not a known constant.
type CGDisplayStreamUpdateRef ¶ added in v0.18.0
CGDisplayStreamUpdateRef is a handle for the opaque CGDisplayStreamUpdateRef type.
func (CGDisplayStreamUpdateRef) IsNil ¶ added in v0.18.0
func (h CGDisplayStreamUpdateRef) IsNil() bool
IsNil reports whether CGDisplayStreamUpdateRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGError ¶
type CGError int32
A uniform type for result codes returned by functions in Core Graphics.
const ( // The requested operation was completed successfully. KCGErrorSuccess CGError = 0 // A general failure occurred. KCGErrorFailure CGError = 1000 // One or more of the parameters passed to a function are invalid. Check for NULL pointers. KCGErrorIllegalArgument CGError = 1001 // The parameter representing a connection to the window server is invalid. KCGErrorInvalidConnection CGError = 1002 // The CPSProcessSerNum or context identifier parameter is not valid. KCGErrorInvalidContext CGError = 1003 // The requested operation is inappropriate for the parameters passed in, or the current system state. KCGErrorCannotComplete CGError = 1004 // Return value from obsolete function stubs present for binary compatibility, but not typically called. KCGErrorNotImplemented CGError = 1006 // A parameter passed in has a value that is inappropriate, or which does not map to a useful operation or value. KCGErrorRangeCheck CGError = 1007 // A data type or token was encountered that did not match the expected type or token. KCGErrorTypeCheck CGError = 1008 // The requested operation is not valid for the parameters passed in, or the current system state. KCGErrorInvalidOperation CGError = 1010 // The requested operation could not be completed as the indicated resources were not found. KCGErrorNoneAvailable CGError = 1011 )
func CGAcquireDisplayFadeReservation ¶
CGAcquireDisplayFadeReservation calls the CoreGraphics framework function CGAcquireDisplayFadeReservation.
func CGAssociateMouseAndMouseCursorPosition ¶
CGAssociateMouseAndMouseCursorPosition calls the CoreGraphics framework function CGAssociateMouseAndMouseCursorPosition.
func CGBeginDisplayConfiguration ¶
CGBeginDisplayConfiguration calls the CoreGraphics framework function CGBeginDisplayConfiguration.
func CGCancelDisplayConfiguration ¶
func CGCancelDisplayConfiguration(config CGDisplayConfigRef) CGError
CGCancelDisplayConfiguration calls the CoreGraphics framework function CGCancelDisplayConfiguration.
func CGCaptureAllDisplays ¶
func CGCaptureAllDisplays() CGError
CGCaptureAllDisplays calls the CoreGraphics framework function CGCaptureAllDisplays.
func CGCaptureAllDisplaysWithOptions ¶
func CGCaptureAllDisplaysWithOptions(options CGCaptureOptions) CGError
CGCaptureAllDisplaysWithOptions calls the CoreGraphics framework function CGCaptureAllDisplaysWithOptions.
func CGCompleteDisplayConfiguration ¶
func CGCompleteDisplayConfiguration(config CGDisplayConfigRef, option CGConfigureOption) CGError
CGCompleteDisplayConfiguration calls the CoreGraphics framework function CGCompleteDisplayConfiguration.
func CGConfigureDisplayFadeEffect ¶
func CGConfigureDisplayFadeEffect(config CGDisplayConfigRef, fadeOutSeconds float32, fadeInSeconds float32, fadeRed float32, fadeGreen float32, fadeBlue float32) CGError
CGConfigureDisplayFadeEffect calls the CoreGraphics framework function CGConfigureDisplayFadeEffect.
func CGConfigureDisplayMirrorOfDisplay ¶
func CGConfigureDisplayMirrorOfDisplay(config CGDisplayConfigRef, display uint32, master uint32) CGError
CGConfigureDisplayMirrorOfDisplay calls the CoreGraphics framework function CGConfigureDisplayMirrorOfDisplay.
func CGConfigureDisplayMode ¶
func CGConfigureDisplayMode(config CGDisplayConfigRef, display uint32, mode obj.Object) CGError
CGConfigureDisplayMode calls the CoreGraphics framework function CGConfigureDisplayMode.
func CGConfigureDisplayOrigin ¶
func CGConfigureDisplayOrigin(config CGDisplayConfigRef, display uint32, x int32, y int32) CGError
CGConfigureDisplayOrigin calls the CoreGraphics framework function CGConfigureDisplayOrigin.
func CGConfigureDisplayStereoOperation ¶
func CGConfigureDisplayStereoOperation(config CGDisplayConfigRef, display uint32, stereo int, forceBlueLine int) CGError
CGConfigureDisplayStereoOperation calls the CoreGraphics framework function CGConfigureDisplayStereoOperation.
func CGConfigureDisplayWithDisplayMode ¶
func CGConfigureDisplayWithDisplayMode(config CGDisplayConfigRef, display uint32, mode CGDisplayModeRef, options obj.Object) CGError
CGConfigureDisplayWithDisplayMode calls the CoreGraphics framework function CGConfigureDisplayWithDisplayMode.
func CGDisplayCapture ¶
CGDisplayCapture calls the CoreGraphics framework function CGDisplayCapture.
func CGDisplayCaptureWithOptions ¶
func CGDisplayCaptureWithOptions(display uint32, options CGCaptureOptions) CGError
CGDisplayCaptureWithOptions calls the CoreGraphics framework function CGDisplayCaptureWithOptions.
func CGDisplayFade ¶
func CGDisplayFade(token uint32, duration float32, startBlend float32, endBlend float32, redBlend float32, greenBlend float32, blueBlend float32, synchronous int) CGError
CGDisplayFade calls the CoreGraphics framework function CGDisplayFade.
func CGDisplayHideCursor ¶
CGDisplayHideCursor calls the CoreGraphics framework function CGDisplayHideCursor.
func CGDisplayMoveCursorToPoint ¶
func CGDisplayMoveCursorToPoint(display uint32, point corefoundation.CGPoint) CGError
CGDisplayMoveCursorToPoint calls the CoreGraphics framework function CGDisplayMoveCursorToPoint.
func CGDisplayRegisterReconfigurationCallback ¶
func CGDisplayRegisterReconfigurationCallback(callback unsafe.Pointer, userInfo unsafe.Pointer) CGError
CGDisplayRegisterReconfigurationCallback calls the CoreGraphics framework function CGDisplayRegisterReconfigurationCallback.
func CGDisplayRelease ¶
CGDisplayRelease calls the CoreGraphics framework function CGDisplayRelease.
func CGDisplayRemoveReconfigurationCallback ¶
func CGDisplayRemoveReconfigurationCallback(callback unsafe.Pointer, userInfo unsafe.Pointer) CGError
CGDisplayRemoveReconfigurationCallback calls the CoreGraphics framework function CGDisplayRemoveReconfigurationCallback.
func CGDisplaySetDisplayMode ¶
func CGDisplaySetDisplayMode(display uint32, mode CGDisplayModeRef, options obj.Object) CGError
CGDisplaySetDisplayMode calls the CoreGraphics framework function CGDisplaySetDisplayMode.
func CGDisplaySetStereoOperation ¶
func CGDisplaySetStereoOperation(display uint32, stereo int, forceBlueLine int, option CGConfigureOption) CGError
CGDisplaySetStereoOperation calls the CoreGraphics framework function CGDisplaySetStereoOperation.
func CGDisplayShowCursor ¶
CGDisplayShowCursor calls the CoreGraphics framework function CGDisplayShowCursor.
func CGDisplaySwitchToMode ¶
CGDisplaySwitchToMode calls the CoreGraphics framework function CGDisplaySwitchToMode.
func CGEnableEventStateCombining ¶
CGEnableEventStateCombining calls the CoreGraphics framework function CGEnableEventStateCombining.
func CGGetActiveDisplayList ¶
func CGGetActiveDisplayList(maxDisplays uint32, activeDisplays unsafe.Pointer) (result CGError, displayCount uint32)
CGGetActiveDisplayList calls the CoreGraphics framework function CGGetActiveDisplayList.
func CGGetDisplayTransferByFormula ¶
func CGGetDisplayTransferByFormula(display uint32) (result CGError, redMin float32, redMax float32, redGamma float32, greenMin float32, greenMax float32, greenGamma float32, blueMin float32, blueMax float32, blueGamma float32)
CGGetDisplayTransferByFormula calls the CoreGraphics framework function CGGetDisplayTransferByFormula.
func CGGetDisplayTransferByTable ¶
func CGGetDisplayTransferByTable(display uint32, capacity uint32, blueTable unsafe.Pointer) (result CGError, redTable float32, greenTable float32, sampleCount uint32)
CGGetDisplayTransferByTable calls the CoreGraphics framework function CGGetDisplayTransferByTable.
func CGGetDisplaysWithOpenGLDisplayMask ¶
func CGGetDisplaysWithOpenGLDisplayMask(mask uint32, maxDisplays uint32, displays unsafe.Pointer) (result CGError, matchingDisplayCount uint32)
CGGetDisplaysWithOpenGLDisplayMask calls the CoreGraphics framework function CGGetDisplaysWithOpenGLDisplayMask.
func CGGetDisplaysWithPoint ¶
func CGGetDisplaysWithPoint(point corefoundation.CGPoint, maxDisplays uint32, displays unsafe.Pointer) (result CGError, matchingDisplayCount uint32)
CGGetDisplaysWithPoint calls the CoreGraphics framework function CGGetDisplaysWithPoint.
func CGGetDisplaysWithRect ¶
func CGGetDisplaysWithRect(rect corefoundation.CGRect, maxDisplays uint32, displays unsafe.Pointer) (result CGError, matchingDisplayCount uint32)
CGGetDisplaysWithRect calls the CoreGraphics framework function CGGetDisplaysWithRect.
func CGGetEventTapList ¶
func CGGetEventTapList(maxNumberOfTaps uint32, tapList unsafe.Pointer) (result CGError, eventTapCount uint32)
CGGetEventTapList calls the CoreGraphics framework function CGGetEventTapList.
func CGGetOnlineDisplayList ¶
func CGGetOnlineDisplayList(maxDisplays uint32, onlineDisplays unsafe.Pointer) (result CGError, displayCount uint32)
CGGetOnlineDisplayList calls the CoreGraphics framework function CGGetOnlineDisplayList.
func CGInhibitLocalEvents ¶
CGInhibitLocalEvents calls the CoreGraphics framework function CGInhibitLocalEvents.
func CGPostKeyboardEvent ¶
CGPostKeyboardEvent calls the CoreGraphics framework function CGPostKeyboardEvent.
func CGRegisterScreenRefreshCallback ¶
CGRegisterScreenRefreshCallback calls the CoreGraphics framework function CGRegisterScreenRefreshCallback.
func CGReleaseAllDisplays ¶
func CGReleaseAllDisplays() CGError
CGReleaseAllDisplays calls the CoreGraphics framework function CGReleaseAllDisplays.
func CGReleaseDisplayFadeReservation ¶
CGReleaseDisplayFadeReservation calls the CoreGraphics framework function CGReleaseDisplayFadeReservation.
func CGScreenRegisterMoveCallback ¶
CGScreenRegisterMoveCallback calls the CoreGraphics framework function CGScreenRegisterMoveCallback.
func CGSetDisplayTransferByByteTable ¶
func CGSetDisplayTransferByByteTable(display uint32, tableSize uint32, redTable unsafe.Pointer, greenTable unsafe.Pointer, blueTable unsafe.Pointer) CGError
CGSetDisplayTransferByByteTable calls the CoreGraphics framework function CGSetDisplayTransferByByteTable.
func CGSetDisplayTransferByFormula ¶
func CGSetDisplayTransferByFormula(display uint32, redMin float32, redMax float32, redGamma float32, greenMin float32, greenMax float32, greenGamma float32, blueMin float32, blueMax float32, blueGamma float32) CGError
CGSetDisplayTransferByFormula calls the CoreGraphics framework function CGSetDisplayTransferByFormula.
func CGSetDisplayTransferByTable ¶
func CGSetDisplayTransferByTable(display uint32, tableSize uint32, redTable unsafe.Pointer, greenTable unsafe.Pointer, blueTable unsafe.Pointer) CGError
CGSetDisplayTransferByTable calls the CoreGraphics framework function CGSetDisplayTransferByTable.
func CGSetLocalEventsFilterDuringSuppressionState ¶
func CGSetLocalEventsFilterDuringSuppressionState(filter CGEventFilterMask, state CGEventSuppressionState) CGError
CGSetLocalEventsFilterDuringSuppressionState calls the CoreGraphics framework function CGSetLocalEventsFilterDuringSuppressionState.
func CGSetLocalEventsSuppressionInterval ¶
CGSetLocalEventsSuppressionInterval calls the CoreGraphics framework function CGSetLocalEventsSuppressionInterval.
func CGWaitForScreenRefreshRects ¶
func CGWaitForScreenRefreshRects(rects *corefoundation.CGRect) (result CGError, count uint32)
CGWaitForScreenRefreshRects calls the CoreGraphics framework function CGWaitForScreenRefreshRects.
func CGWarpMouseCursorPosition ¶
func CGWarpMouseCursorPosition(newCursorPosition corefoundation.CGPoint) CGError
CGWarpMouseCursorPosition calls the CoreGraphics framework function CGWarpMouseCursorPosition.
type CGEventField ¶
type CGEventField uint32
Constants used as keys to access specialized fields in low-level events.
const ( // Key to access an integer field that contains the mouse button event number. Matching mouse-down and mouse-up events will have the same event number. KCGMouseEventNumber CGEventField = 0 // Key to access an integer field that contains the mouse button click state. A click state of 1 represents a single click. A click state of 2 represents a double-click. A click state of 3 represents a triple-click. KCGMouseEventClickState CGEventField = 1 // Key to access a double field that contains the mouse button pressure. The pressure value may range from 0 to 1, with 0 representing the mouse being up. This value is commonly set by tablet pens mimicking a mouse. KCGMouseEventPressure CGEventField = 2 // Key to access an integer field that contains the mouse button number. For information about the possible values, see CGMouseButton. KCGMouseEventButtonNumber CGEventField = 3 // Key to access an integer field that contains the horizontal mouse delta since the last mouse movement event. KCGMouseEventDeltaX CGEventField = 4 // Key to access an integer field that contains the vertical mouse delta since the last mouse movement event. KCGMouseEventDeltaY CGEventField = 5 // Key to access an integer field. The value is non-zero if the event should be ignored by the Inkwell subsystem. KCGMouseEventInstantMouser CGEventField = 6 // Key to access an integer field that encodes the mouse event subtype as a kCFNumberIntType. KCGMouseEventSubtype CGEventField = 7 // Key to access an integer field, non-zero when this is an autorepeat of a key-down, and zero otherwise. KCGKeyboardEventAutorepeat CGEventField = 8 // Key to access an integer field that contains the virtual keycode of the key-down or key-up event. KCGKeyboardEventKeycode CGEventField = 9 // Key to access an integer field that contains the keyboard type identifier. KCGKeyboardEventKeyboardType CGEventField = 10 // Key to access an integer field that contains scrolling data. This field typically contains the change in vertical position since the last scrolling event from a Mighty Mouse scroller or a single-wheel mouse scroller. KCGScrollWheelEventDeltaAxis1 CGEventField = 11 // Key to access an integer field that contains scrolling data. This field typically contains the change in horizontal position since the last scrolling event from a Mighty Mouse scroller. KCGScrollWheelEventDeltaAxis2 CGEventField = 12 // This field is not used. KCGScrollWheelEventDeltaAxis3 CGEventField = 13 // Key to access a field that contains scrolling data. The scrolling data represents a line-based or pixel-based change in vertical position since the last scrolling event from a Mighty Mouse scroller or a single-wheel mouse scroller. The scrolling data uses a fixed-point 16.16 signed integer format. For example, if the field contains a value of 1.0, the integer 0x00010000 is returned by CGEventGetIntegerValueField. If this key is passed to CGEventGetDoubleValueField, the fixed-point value is converted to a double value. KCGScrollWheelEventFixedPtDeltaAxis1 CGEventField = 93 // Key to access a field that contains scrolling data. The scrolling data represents a line-based or pixel-based change in horizontal position since the last scrolling event from a Mighty Mouse scroller. The scrolling data uses a fixed-point 16.16 signed integer format. For example, if the field contains a value of 1.0, the integer 0x00010000 is returned by CGEventGetIntegerValueField. If this key is passed to CGEventGetDoubleValueField, the fixed-point value is converted to a double value. KCGScrollWheelEventFixedPtDeltaAxis2 CGEventField = 94 // This field is not used. KCGScrollWheelEventFixedPtDeltaAxis3 CGEventField = 95 // Key to access an integer field that contains pixel-based scrolling data. The scrolling data represents the change in vertical position since the last scrolling event from a Mighty Mouse scroller or a single-wheel mouse scroller. KCGScrollWheelEventPointDeltaAxis1 CGEventField = 96 // Key to access an integer field that contains pixel-based scrolling data. The scrolling data represents the change in horizontal position since the last scrolling event from a Mighty Mouse scroller. KCGScrollWheelEventPointDeltaAxis2 CGEventField = 97 // This field is not used. KCGScrollWheelEventPointDeltaAxis3 CGEventField = 98 KCGScrollWheelEventScrollPhase CGEventField = 99 KCGScrollWheelEventScrollCount CGEventField = 100 KCGScrollWheelEventMomentumPhase CGEventField = 123 // Key to access an integer field that indicates whether the event should be ignored by the Inkwell subsystem. If the value is non-zero, the event should be ignored. KCGScrollWheelEventInstantMouser CGEventField = 14 // Key to access an integer field that contains the absolute X coordinate in tablet space at full tablet resolution. KCGTabletEventPointX CGEventField = 15 // Key to access an integer field that contains the absolute Y coordinate in tablet space at full tablet resolution. KCGTabletEventPointY CGEventField = 16 // Key to access an integer field that contains the absolute Z coordinate in tablet space at full tablet resolution. KCGTabletEventPointZ CGEventField = 17 // Key to access an integer field that contains the tablet button state. Bit 0 is the first button, and a set bit represents a closed or pressed button. Up to 16 buttons are supported. KCGTabletEventPointButtons CGEventField = 18 // Key to access a double field that contains the tablet pen pressure. A value of 0.0 represents no pressure, and 1.0 represents maximum pressure. KCGTabletEventPointPressure CGEventField = 19 // Key to access a double field that contains the horizontal tablet pen tilt. A value of 0.0 represents no tilt, and 1.0 represents maximum tilt. KCGTabletEventTiltX CGEventField = 20 // Key to access a double field that contains the vertical tablet pen tilt. A value of 0.0 represents no tilt, and 1.0 represents maximum tilt. KCGTabletEventTiltY CGEventField = 21 // Key to access a double field that contains the tablet pen rotation. KCGTabletEventRotation CGEventField = 22 // Key to access a double field that contains the tangential pressure on the device. A value of 0.0 represents no pressure, and 1.0 represents maximum pressure. KCGTabletEventTangentialPressure CGEventField = 23 // Key to access an integer field that contains the system-assigned unique device ID. KCGTabletEventDeviceID CGEventField = 24 // Key to access an integer field that contains a vendor-specified value. KCGTabletEventVendor1 CGEventField = 25 // Key to access an integer field that contains a vendor-specified value. KCGTabletEventVendor2 CGEventField = 26 // Key to access an integer field that contains a vendor-specified value. KCGTabletEventVendor3 CGEventField = 27 // Key to access an integer field that contains the vendor-defined ID, typically the USB vendor ID. KCGTabletProximityEventVendorID CGEventField = 28 // Key to access an integer field that contains the vendor-defined tablet ID, typically the USB product ID. KCGTabletProximityEventTabletID CGEventField = 29 // Key to access an integer field that contains the vendor-defined ID of the pointing device. KCGTabletProximityEventPointerID CGEventField = 30 // Key to access an integer field that contains the system-assigned device ID. KCGTabletProximityEventDeviceID CGEventField = 31 // Key to access an integer field that contains the system-assigned unique tablet ID. KCGTabletProximityEventSystemTabletID CGEventField = 32 // Key to access an integer field that contains the vendor-assigned pointer type. KCGTabletProximityEventVendorPointerType CGEventField = 33 // Key to access an integer field that contains the vendor-defined pointer serial number. KCGTabletProximityEventVendorPointerSerialNumber CGEventField = 34 // Key to access an integer field that contains the vendor-defined unique ID. KCGTabletProximityEventVendorUniqueID CGEventField = 35 // Key to access an integer field that contains the device capabilities mask. KCGTabletProximityEventCapabilityMask CGEventField = 36 // Key to access an integer field that contains the pointer type. KCGTabletProximityEventPointerType CGEventField = 37 // Key to access an integer field that indicates whether the pen is in proximity to the tablet. The value is non-zero if the pen is in proximity to the tablet and zero when leaving the tablet. KCGTabletProximityEventEnterProximity CGEventField = 38 // Key to access a field that contains the event target process serial number. The value is a 64-bit long word. KCGEventTargetProcessSerialNumber CGEventField = 39 // Key to access a field that contains the event target Unix process ID. KCGEventTargetUnixProcessID CGEventField = 40 // Key to access a field that contains the event source Unix process ID. KCGEventSourceUnixProcessID CGEventField = 41 // Key to access a field that contains the event source user-supplied data, up to 64 bits. KCGEventSourceUserData CGEventField = 42 // Key to access a field that contains the event source Unix effective UID. KCGEventSourceUserID CGEventField = 43 // Key to access a field that contains the event source Unix effective GID. KCGEventSourceGroupID CGEventField = 44 // Key to access a field that contains the event source state ID used to create this event. KCGEventSourceStateID CGEventField = 45 // Key to access an integer field that indicates whether a scrolling event contains continuous, pixel-based scrolling data. The value is non-zero when the scrolling data is pixel-based and zero when the scrolling data is line-based. KCGScrollWheelEventIsContinuous CGEventField = 88 KCGMouseEventWindowUnderMousePointer CGEventField = 91 KCGMouseEventWindowUnderMousePointerThatCanHandleThisEvent CGEventField = 92 KCGEventUnacceleratedPointerMovementX CGEventField = 170 KCGEventUnacceleratedPointerMovementY CGEventField = 171 KCGScrollWheelEventMomentumOptionPhase CGEventField = 173 KCGScrollWheelEventAcceleratedDeltaAxis1 CGEventField = 176 KCGScrollWheelEventAcceleratedDeltaAxis2 CGEventField = 175 KCGScrollWheelEventRawDeltaAxis1 CGEventField = 178 KCGScrollWheelEventRawDeltaAxis2 CGEventField = 177 )
func (CGEventField) String ¶
func (e CGEventField) String() string
String returns the CGEventField constant's name, or its numeric form when the value is not a known constant.
type CGEventFilterMask ¶
type CGEventFilterMask uint32
Specify masks for classes of low-level events that can be filtered during event suppression states. Bitmask — values may be combined with |.
const ( KCGEventFilterMaskPermitLocalMouseEvents CGEventFilterMask = 1 KCGEventFilterMaskPermitLocalKeyboardEvents CGEventFilterMask = 2 KCGEventFilterMaskPermitSystemDefinedEvents CGEventFilterMask = 4 )
func CGEventSourceGetLocalEventsFilterDuringSuppressionState ¶
func CGEventSourceGetLocalEventsFilterDuringSuppressionState(source CGEventSourceRef, state CGEventSuppressionState) CGEventFilterMask
CGEventSourceGetLocalEventsFilterDuringSuppressionState calls the CoreGraphics framework function CGEventSourceGetLocalEventsFilterDuringSuppressionState.
func (CGEventFilterMask) String ¶
func (e CGEventFilterMask) String() string
String returns the CGEventFilterMask constant's name, or its numeric form when the value is not a known constant.
type CGEventFlags ¶
type CGEventFlags uint64
Constants that indicate the modifier key state at the time an event is created, as well as other event-related states. Bitmask — values may be combined with |.
const ( // Indicates that the Caps Lock key is down for a keyboard, mouse, or flag-changed event. KCGEventFlagMaskAlphaShift CGEventFlags = 65536 // Indicates that the Shift key is down for a keyboard, mouse, or flag-changed event. KCGEventFlagMaskShift CGEventFlags = 131072 // Indicates that the Control key is down for a keyboard, mouse, or flag-changed event. KCGEventFlagMaskControl CGEventFlags = 262144 // Indicates that the Alt or Option key is down for a keyboard, mouse, or flag-changed event. KCGEventFlagMaskAlternate CGEventFlags = 524288 // Indicates that the Command key is down for a keyboard, mouse, or flag-changed event. KCGEventFlagMaskCommand CGEventFlags = 1048576 // Indicates that the Help modifier key is down for a keyboard, mouse, or flag-changed event. This key is not present on most keyboards, and is different than the Help key found in the same row as Home and Page Up. KCGEventFlagMaskHelp CGEventFlags = 4194304 // Indicates that the Fn (Function) key is down for a keyboard, mouse, or flag-changed event. This key is found primarily on laptop keyboards. KCGEventFlagMaskSecondaryFn CGEventFlags = 8388608 // Identifies key events from the numeric keypad area on extended keyboards. KCGEventFlagMaskNumericPad CGEventFlags = 2097152 // Indicates that mouse and pen movement events are not being coalesced. KCGEventFlagMaskNonCoalesced CGEventFlags = 256 )
func CGEventGetFlags ¶
func CGEventGetFlags(event CGEventRef) CGEventFlags
CGEventGetFlags calls the CoreGraphics framework function CGEventGetFlags.
func CGEventSourceFlagsState ¶
func CGEventSourceFlagsState(stateID CGEventSourceStateID) CGEventFlags
CGEventSourceFlagsState calls the CoreGraphics framework function CGEventSourceFlagsState.
func (CGEventFlags) String ¶
func (e CGEventFlags) String() string
String returns the CGEventFlags constant's name, or its numeric form when the value is not a known constant.
type CGEventMouseSubtype ¶
type CGEventMouseSubtype uint32
Constants used with the kCGMouseEventSubtype event field.
const ( // Specifies that the event is an ordinary mouse event, and does not contain additional tablet device information. KCGEventMouseSubtypeDefault CGEventMouseSubtype = 0 // Specifies that the mouse event originated from a tablet device, and that the various kCGTabletEvent field selectors may be used to obtain tablet-specific data from the mouse event. KCGEventMouseSubtypeTabletPoint CGEventMouseSubtype = 1 KCGEventMouseSubtypeTabletProximity CGEventMouseSubtype = 2 )
func (CGEventMouseSubtype) String ¶
func (e CGEventMouseSubtype) String() string
String returns the CGEventMouseSubtype constant's name, or its numeric form when the value is not a known constant.
type CGEventRef ¶ added in v0.18.0
CGEventRef is a handle for the opaque CGEventRef type.
func CGEventCreate ¶
func CGEventCreate(source CGEventSourceRef) CGEventRef
CGEventCreate calls the CoreGraphics framework function CGEventCreate.
func CGEventCreateCopy ¶
func CGEventCreateCopy(event CGEventRef) CGEventRef
CGEventCreateCopy calls the CoreGraphics framework function CGEventCreateCopy.
func CGEventCreateFromData ¶
func CGEventCreateFromData(allocator obj.Object, data obj.Object) CGEventRef
CGEventCreateFromData calls the CoreGraphics framework function CGEventCreateFromData.
func CGEventCreateKeyboardEvent ¶
func CGEventCreateKeyboardEvent(source CGEventSourceRef, virtualKey uint16, keyDown bool) CGEventRef
CGEventCreateKeyboardEvent calls the CoreGraphics framework function CGEventCreateKeyboardEvent.
func CGEventCreateMouseEvent ¶
func CGEventCreateMouseEvent(source CGEventSourceRef, mouseType CGEventType, mouseCursorPosition corefoundation.CGPoint, mouseButton CGMouseButton) CGEventRef
CGEventCreateMouseEvent calls the CoreGraphics framework function CGEventCreateMouseEvent.
func CGEventCreateScrollWheelEvent2 ¶
func CGEventCreateScrollWheelEvent2(source CGEventSourceRef, units CGScrollEventUnit, wheelCount uint32, wheel1 int32, wheel2 int32, wheel3 int32) CGEventRef
CGEventCreateScrollWheelEvent2 calls the CoreGraphics framework function CGEventCreateScrollWheelEvent2.
func (CGEventRef) IsNil ¶ added in v0.18.0
func (h CGEventRef) IsNil() bool
IsNil reports whether CGEventRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGEventSource ¶
type CGEventSource struct{}
type CGEventSourceRef ¶ added in v0.18.0
CGEventSourceRef is a handle for the opaque CGEventSourceRef type.
func CGEventCreateSourceFromEvent ¶
func CGEventCreateSourceFromEvent(event CGEventRef) CGEventSourceRef
CGEventCreateSourceFromEvent calls the CoreGraphics framework function CGEventCreateSourceFromEvent.
func CGEventSourceCreate ¶
func CGEventSourceCreate(stateID CGEventSourceStateID) CGEventSourceRef
CGEventSourceCreate calls the CoreGraphics framework function CGEventSourceCreate.
func (CGEventSourceRef) IsNil ¶ added in v0.18.0
func (h CGEventSourceRef) IsNil() bool
IsNil reports whether CGEventSourceRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGEventSourceStateID ¶
type CGEventSourceStateID int32
Constants that specify the possible source states of an event source.
const ( // Specifies that an event source should use a private event state table. KCGEventSourceStatePrivate CGEventSourceStateID = -1 // 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 // 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 )
func CGEventSourceGetSourceStateID ¶
func CGEventSourceGetSourceStateID(source CGEventSourceRef) CGEventSourceStateID
CGEventSourceGetSourceStateID calls the CoreGraphics framework function CGEventSourceGetSourceStateID.
func (CGEventSourceStateID) String ¶
func (e CGEventSourceStateID) String() string
String returns the CGEventSourceStateID constant's name, or its numeric form when the value is not a known constant.
type CGEventSuppressionState ¶
type CGEventSuppressionState uint32
Specify the event suppression states that can occur after posting an event.
const ( // Specifies that certain local hardware events may be suppressed for a short interval after posting an event. KCGEventSuppressionStateSuppressionInterval CGEventSuppressionState = 0 // 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 KCGNumberOfEventSuppressionStates CGEventSuppressionState = 2 )
func (CGEventSuppressionState) String ¶
func (e CGEventSuppressionState) String() string
String returns the CGEventSuppressionState constant's name, or its numeric form when the value is not a known constant.
type CGEventTapInformation ¶
type CGEventTapInformation struct {
EventTapID uint32
TapPoint CGEventTapLocation
Options CGEventTapOptions
EventsOfInterest uint64
TappingProcess int32
ProcessBeingTapped int32
Enabled bool
MinUsecLatency float32
AvgUsecLatency float32
MaxUsecLatency float32
}
type CGEventTapLocation ¶
type CGEventTapLocation uint32
Constants that specify possible tapping points for events.
const ( // Specifies that an event tap is placed at the point where HID system events enter the window server. KCGHIDEventTap CGEventTapLocation = 0 // Specifies that an event tap is placed at the point where HID system and remote control events enter a login session. KCGSessionEventTap CGEventTapLocation = 1 // Specifies that an event tap is placed at the point where session events have been annotated to flow to an application. KCGAnnotatedSessionEventTap CGEventTapLocation = 2 )
func (CGEventTapLocation) String ¶
func (e CGEventTapLocation) String() string
String returns the CGEventTapLocation constant's name, or its numeric form when the value is not a known constant.
type CGEventTapOptions ¶
type CGEventTapOptions uint32
Constants that specify whether a new event tap is an active filter or a passive listener.
const ( KCGEventTapOptionDefault CGEventTapOptions = 0 KCGEventTapOptionListenOnly CGEventTapOptions = 1 )
func (CGEventTapOptions) String ¶
func (e CGEventTapOptions) String() string
String returns the CGEventTapOptions constant's name, or its numeric form when the value is not a known constant.
type CGEventTapPlacement ¶
type CGEventTapPlacement uint32
Constants that specify where a new event tap is inserted into the list of active event taps.
const ( // Specifies that a new event tap should be inserted before any pre-existing event taps at the same location. KCGHeadInsertEventTap CGEventTapPlacement = 0 // 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
String returns the CGEventTapPlacement constant's name, or its numeric form when the value is not a known constant.
type CGEventTapProxy ¶
CGEventTapProxy is a handle for the opaque __CGEventTapProxy type.
func (CGEventTapProxy) IsNil ¶ added in v0.18.0
func (h CGEventTapProxy) IsNil() bool
IsNil reports whether CGEventTapProxy is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGEventType ¶
type CGEventType uint32
Constants that specify the different types of input events.
const ( // Specifies a null event. KCGEventNull CGEventType = 0 // Specifies a mouse down event with the left button. KCGEventLeftMouseDown CGEventType = 1 // Specifies a mouse up event with the left button. KCGEventLeftMouseUp CGEventType = 2 // Specifies a mouse down event with the right button. KCGEventRightMouseDown CGEventType = 3 // Specifies a mouse up event with the right button. KCGEventRightMouseUp CGEventType = 4 // Specifies a mouse moved event. KCGEventMouseMoved CGEventType = 5 // Specifies a mouse drag event with the left button down. KCGEventLeftMouseDragged CGEventType = 6 // Specifies a mouse drag event with the right button down. KCGEventRightMouseDragged CGEventType = 7 // Specifies a key down event. KCGEventKeyDown CGEventType = 10 // Specifies a key up event. KCGEventKeyUp CGEventType = 11 // Specifies a key changed event for a modifier or status key. KCGEventFlagsChanged CGEventType = 12 // Specifies a scroll wheel moved event. KCGEventScrollWheel CGEventType = 22 // Specifies a tablet pointer event. KCGEventTabletPointer CGEventType = 23 // Specifies a tablet proximity event. KCGEventTabletProximity CGEventType = 24 // Specifies a mouse down event with one of buttons 2-31. KCGEventOtherMouseDown CGEventType = 25 // Specifies a mouse up event with one of buttons 2-31. KCGEventOtherMouseUp CGEventType = 26 // Specifies a mouse drag event with one of buttons 2-31 down. KCGEventOtherMouseDragged CGEventType = 27 // Specifies an event indicating the event tap is disabled because of timeout. KCGEventTapDisabledByTimeout CGEventType = 4294967294 // Specifies an event indicating the event tap is disabled because of user input. KCGEventTapDisabledByUserInput CGEventType = 4294967295 )
func CGEventGetType ¶
func CGEventGetType(event CGEventRef) CGEventType
CGEventGetType calls the CoreGraphics framework function CGEventGetType.
func (CGEventType) String ¶
func (e CGEventType) String() string
String returns the CGEventType constant's name, or its numeric form when the value is not a known constant.
type CGFont ¶
type CGFont struct{}
A set of character glyphs and layout information for drawing text.
type CGFontPostScriptFormat ¶
type CGFontPostScriptFormat int32
Possible formats for a PostScript font subset.
const ( // A Type 1 font format. KCGFontPostScriptFormatType1 CGFontPostScriptFormat = 1 // A Type 3 PostScript format. KCGFontPostScriptFormatType3 CGFontPostScriptFormat = 3 // A constant representing a Type 42 font format. KCGFontPostScriptFormatType42 CGFontPostScriptFormat = 42 )
func (CGFontPostScriptFormat) String ¶
func (e CGFontPostScriptFormat) String() string
String returns the CGFontPostScriptFormat constant's name, or its numeric form when the value is not a known constant.
type CGFontRef ¶ added in v0.18.0
CGFontRef is a handle for the opaque CGFontRef type.
func CGFontCreateCopyWithVariations ¶
CGFontCreateCopyWithVariations calls the CoreGraphics framework function CGFontCreateCopyWithVariations.
func CGFontCreateWithDataProvider ¶
func CGFontCreateWithDataProvider(provider CGDataProviderRef) CGFontRef
CGFontCreateWithDataProvider calls the CoreGraphics framework function CGFontCreateWithDataProvider.
func CGFontCreateWithFontName ¶
CGFontCreateWithFontName calls the CoreGraphics framework function CGFontCreateWithFontName.
func CGFontCreateWithPlatformFont ¶
CGFontCreateWithPlatformFont calls the CoreGraphics framework function CGFontCreateWithPlatformFont.
func CGFontRetain ¶
CGFontRetain calls the CoreGraphics framework function CGFontRetain.
type CGFunction ¶
type CGFunction struct{}
A general facility for defining and using callback functions.
type CGFunctionCallbacks ¶
type CGFunctionCallbacks struct {
Version uint32
Evaluate unsafe.Pointer
ReleaseInfo unsafe.Pointer
}
A structure that contains callbacks needed by a CGFunctionRef object.
type CGFunctionRef ¶ added in v0.18.0
CGFunctionRef is a handle for the opaque CGFunctionRef type.
func CGFunctionCreate ¶
func CGFunctionCreate(info unsafe.Pointer, domainDimension int, domain unsafe.Pointer, rangeDimension int, range_ unsafe.Pointer, callbacks unsafe.Pointer) CGFunctionRef
CGFunctionCreate calls the CoreGraphics framework function CGFunctionCreate.
func CGFunctionRetain ¶
func CGFunctionRetain(function CGFunctionRef) CGFunctionRef
CGFunctionRetain calls the CoreGraphics framework function CGFunctionRetain.
func (CGFunctionRef) IsNil ¶ added in v0.18.0
func (h CGFunctionRef) IsNil() bool
IsNil reports whether CGFunctionRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGGesturePhase ¶
type CGGesturePhase uint32
const ( KCGGesturePhaseNone CGGesturePhase = 0 KCGGesturePhaseBegan CGGesturePhase = 1 KCGGesturePhaseChanged CGGesturePhase = 2 KCGGesturePhaseEnded CGGesturePhase = 4 KCGGesturePhaseCancelled CGGesturePhase = 8 KCGGesturePhaseMayBegin CGGesturePhase = 128 )
func (CGGesturePhase) String ¶
func (e CGGesturePhase) String() string
String returns the CGGesturePhase constant's name, or its numeric form when the value is not a known constant.
type CGGlyphDeprecatedEnum ¶
type CGGlyphDeprecatedEnum int32
const ( // Minimum font index value. CGGlyphMin CGGlyphDeprecatedEnum = 0 // Maximum font index value. CGGlyphMax CGGlyphDeprecatedEnum = 1 )
func (CGGlyphDeprecatedEnum) String ¶
func (e CGGlyphDeprecatedEnum) String() string
String returns the CGGlyphDeprecatedEnum constant's name, or its numeric form when the value is not a known constant.
type CGGradient ¶
type CGGradient struct{}
A definition for a smooth transition between colors for drawing radial and axial gradient fills.
type CGGradientDrawingOptions ¶
type CGGradientDrawingOptions uint32
Drawing locations for gradients. Bitmask — values may be combined with |.
const ( // The fill should extend beyond the starting location. The color that extends beyond the starting point is the solid color defined by the CGGradientRef object to be at location 0. KCGGradientDrawsBeforeStartLocation CGGradientDrawingOptions = 1 // The fill should extend beyond the ending location. The color that extends beyond the ending point is the solid color defined by the CGGradientRef object to be at location 1. KCGGradientDrawsAfterEndLocation CGGradientDrawingOptions = 2 )
func (CGGradientDrawingOptions) String ¶
func (e CGGradientDrawingOptions) String() string
String returns the CGGradientDrawingOptions constant's name, or its numeric form when the value is not a known constant.
type CGGradientRef ¶ added in v0.18.0
CGGradientRef is a handle for the opaque CGGradientRef type.
func CGGradientCreateWithColorComponents ¶
func CGGradientCreateWithColorComponents(space CGColorSpaceRef, components unsafe.Pointer, locations unsafe.Pointer, count int) CGGradientRef
CGGradientCreateWithColorComponents calls the CoreGraphics framework function CGGradientCreateWithColorComponents.
func CGGradientCreateWithColors ¶
func CGGradientCreateWithColors(space CGColorSpaceRef, colors obj.Object, locations unsafe.Pointer) CGGradientRef
CGGradientCreateWithColors calls the CoreGraphics framework function CGGradientCreateWithColors.
func CGGradientCreateWithContentHeadroom ¶
func CGGradientCreateWithContentHeadroom(headroom float32, space CGColorSpaceRef, components unsafe.Pointer, locations unsafe.Pointer, count int) CGGradientRef
CGGradientCreateWithContentHeadroom calls the CoreGraphics framework function CGGradientCreateWithContentHeadroom.
func CGGradientRetain ¶
func CGGradientRetain(gradient CGGradientRef) CGGradientRef
CGGradientRetain calls the CoreGraphics framework function CGGradientRetain.
func (CGGradientRef) IsNil ¶ added in v0.18.0
func (h CGGradientRef) IsNil() bool
IsNil reports whether CGGradientRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGImageAlphaInfo ¶
type CGImageAlphaInfo uint32
Storage options for alpha component data.
const ( // There is no alpha channel. KCGImageAlphaNone CGImageAlphaInfo = 0 // 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. For example, premultiplied RGBA. KCGImageAlphaPremultipliedLast CGImageAlphaInfo = 1 // 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. For example, premultiplied ARGB. KCGImageAlphaPremultipliedFirst CGImageAlphaInfo = 2 // The alpha component is stored in the least significant bits of each pixel. For example, non-premultiplied RGBA. KCGImageAlphaLast CGImageAlphaInfo = 3 // The alpha component is stored in the most significant bits of each pixel. For example, non-premultiplied ARGB. KCGImageAlphaFirst CGImageAlphaInfo = 4 // There is no alpha channel. KCGImageAlphaNoneSkipLast CGImageAlphaInfo = 5 // There is no alpha channel. If the total size of the pixel is greater than the space required for the number of color components in the color space, the most significant bits are ignored. KCGImageAlphaNoneSkipFirst CGImageAlphaInfo = 6 // There is no color data, only an alpha channel. KCGImageAlphaOnly CGImageAlphaInfo = 7 )
func CGBitmapContextGetAlphaInfo ¶
func CGBitmapContextGetAlphaInfo(context_ CGContextRef) CGImageAlphaInfo
CGBitmapContextGetAlphaInfo calls the CoreGraphics framework function CGBitmapContextGetAlphaInfo.
func CGImageGetAlphaInfo ¶
func CGImageGetAlphaInfo(image CGImageRef) CGImageAlphaInfo
CGImageGetAlphaInfo calls the CoreGraphics framework function CGImageGetAlphaInfo.
func (CGImageAlphaInfo) String ¶
func (e CGImageAlphaInfo) String() string
String returns the CGImageAlphaInfo constant's name, or its numeric form when the value is not a known constant.
type CGImageByteOrderInfo ¶
type CGImageByteOrderInfo uint32
const ( KCGImageByteOrderMask CGImageByteOrderInfo = 28672 KCGImageByteOrderDefault CGImageByteOrderInfo = 0 KCGImageByteOrder16Little CGImageByteOrderInfo = 4096 KCGImageByteOrder32Little CGImageByteOrderInfo = 8192 KCGImageByteOrder16Big CGImageByteOrderInfo = 12288 KCGImageByteOrder32Big CGImageByteOrderInfo = 16384 KCGImageByteOrder16Host CGImageByteOrderInfo = 4096 KCGImageByteOrder32Host CGImageByteOrderInfo = 8192 )
func CGImageGetByteOrderInfo ¶
func CGImageGetByteOrderInfo(image CGImageRef) CGImageByteOrderInfo
CGImageGetByteOrderInfo calls the CoreGraphics framework function CGImageGetByteOrderInfo.
func (CGImageByteOrderInfo) String ¶
func (e CGImageByteOrderInfo) String() string
String returns the CGImageByteOrderInfo constant's name, or its numeric form when the value is not a known constant.
type CGImageComponentInfo ¶
type CGImageComponentInfo uint32
const ( KCGImageComponentInteger CGImageComponentInfo = 0 KCGImageComponentFloat CGImageComponentInfo = 256 )
func (CGImageComponentInfo) String ¶
func (e CGImageComponentInfo) String() string
String returns the CGImageComponentInfo constant's name, or its numeric form when the value is not a known constant.
type CGImageDestinationRef ¶ added in v0.18.0
CGImageDestinationRef is a handle for the opaque CGImageDestinationRef type.
func (CGImageDestinationRef) IsNil ¶ added in v0.18.0
func (h CGImageDestinationRef) IsNil() bool
IsNil reports whether CGImageDestinationRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGImageMetadataRef ¶ added in v0.18.0
CGImageMetadataRef is a handle for the opaque CGImageMetadataRef type.
func (CGImageMetadataRef) IsNil ¶ added in v0.18.0
func (h CGImageMetadataRef) IsNil() bool
IsNil reports whether CGImageMetadataRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGImageMetadataTagRef ¶ added in v0.18.0
CGImageMetadataTagRef is a handle for the opaque CGImageMetadataTagRef type.
func (CGImageMetadataTagRef) IsNil ¶ added in v0.18.0
func (h CGImageMetadataTagRef) IsNil() bool
IsNil reports whether CGImageMetadataTagRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGImagePixelFormatInfo ¶
type CGImagePixelFormatInfo uint32
const ( KCGImagePixelFormatMask CGImagePixelFormatInfo = 983040 KCGImagePixelFormatPacked CGImagePixelFormatInfo = 0 KCGImagePixelFormatRGB555 CGImagePixelFormatInfo = 65536 KCGImagePixelFormatRGB565 CGImagePixelFormatInfo = 131072 KCGImagePixelFormatRGB101010 CGImagePixelFormatInfo = 196608 KCGImagePixelFormatRGBCIF10 CGImagePixelFormatInfo = 262144 )
func CGImageGetPixelFormatInfo ¶
func CGImageGetPixelFormatInfo(image CGImageRef) CGImagePixelFormatInfo
CGImageGetPixelFormatInfo calls the CoreGraphics framework function CGImageGetPixelFormatInfo.
func (CGImagePixelFormatInfo) String ¶
func (e CGImagePixelFormatInfo) String() string
String returns the CGImagePixelFormatInfo constant's name, or its numeric form when the value is not a known constant.
type CGImageRef ¶ added in v0.18.0
CGImageRef is a handle for the opaque CGImageRef type.
func CGBitmapContextCreateImage ¶
func CGBitmapContextCreateImage(context_ CGContextRef) CGImageRef
CGBitmapContextCreateImage calls the CoreGraphics framework function CGBitmapContextCreateImage.
func CGImageCreate ¶
func CGImageCreate(width int, height int, bitsPerComponent int, bitsPerPixel int, bytesPerRow int, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, provider CGDataProviderRef, decode unsafe.Pointer, shouldInterpolate bool, intent CGColorRenderingIntent) CGImageRef
CGImageCreate calls the CoreGraphics framework function CGImageCreate.
func CGImageCreateCopy ¶
func CGImageCreateCopy(image CGImageRef) CGImageRef
CGImageCreateCopy calls the CoreGraphics framework function CGImageCreateCopy.
func CGImageCreateCopyWithCalculatedHDRStats ¶
func CGImageCreateCopyWithCalculatedHDRStats(image CGImageRef) CGImageRef
CGImageCreateCopyWithCalculatedHDRStats calls the CoreGraphics framework function CGImageCreateCopyWithCalculatedHDRStats.
func CGImageCreateCopyWithColorSpace ¶
func CGImageCreateCopyWithColorSpace(image CGImageRef, space CGColorSpaceRef) CGImageRef
CGImageCreateCopyWithColorSpace calls the CoreGraphics framework function CGImageCreateCopyWithColorSpace.
func CGImageCreateCopyWithContentAverageLightLevel ¶
func CGImageCreateCopyWithContentAverageLightLevel(image CGImageRef, avll float32) CGImageRef
CGImageCreateCopyWithContentAverageLightLevel calls the CoreGraphics framework function CGImageCreateCopyWithContentAverageLightLevel.
func CGImageCreateCopyWithContentHeadroom ¶
func CGImageCreateCopyWithContentHeadroom(headroom float32, image CGImageRef) CGImageRef
CGImageCreateCopyWithContentHeadroom calls the CoreGraphics framework function CGImageCreateCopyWithContentHeadroom.
func CGImageCreateWithContentHeadroom ¶
func CGImageCreateWithContentHeadroom(headroom float32, width int, height int, bitsPerComponent int, bitsPerPixel int, bytesPerRow int, space CGColorSpaceRef, bitmapInfo CGBitmapInfo, provider CGDataProviderRef, decode unsafe.Pointer, shouldInterpolate bool, intent CGColorRenderingIntent) CGImageRef
CGImageCreateWithContentHeadroom calls the CoreGraphics framework function CGImageCreateWithContentHeadroom.
func CGImageCreateWithImageInRect ¶
func CGImageCreateWithImageInRect(image CGImageRef, rect corefoundation.CGRect) CGImageRef
CGImageCreateWithImageInRect calls the CoreGraphics framework function CGImageCreateWithImageInRect.
func CGImageCreateWithJPEGDataProvider ¶
func CGImageCreateWithJPEGDataProvider(source CGDataProviderRef, decode unsafe.Pointer, shouldInterpolate bool, intent CGColorRenderingIntent) CGImageRef
CGImageCreateWithJPEGDataProvider calls the CoreGraphics framework function CGImageCreateWithJPEGDataProvider.
func CGImageCreateWithMask ¶
func CGImageCreateWithMask(image CGImageRef, mask CGImageRef) CGImageRef
CGImageCreateWithMask calls the CoreGraphics framework function CGImageCreateWithMask.
func CGImageCreateWithMaskingColors ¶
func CGImageCreateWithMaskingColors(image CGImageRef, components unsafe.Pointer) CGImageRef
CGImageCreateWithMaskingColors calls the CoreGraphics framework function CGImageCreateWithMaskingColors.
func CGImageCreateWithPNGDataProvider ¶
func CGImageCreateWithPNGDataProvider(source CGDataProviderRef, decode unsafe.Pointer, shouldInterpolate bool, intent CGColorRenderingIntent) CGImageRef
CGImageCreateWithPNGDataProvider calls the CoreGraphics framework function CGImageCreateWithPNGDataProvider.
func CGImageMaskCreate ¶
func CGImageMaskCreate(width int, height int, bitsPerComponent int, bitsPerPixel int, bytesPerRow int, provider CGDataProviderRef, decode unsafe.Pointer, shouldInterpolate bool) CGImageRef
CGImageMaskCreate calls the CoreGraphics framework function CGImageMaskCreate.
func CGImageRetain ¶
func CGImageRetain(image CGImageRef) CGImageRef
CGImageRetain calls the CoreGraphics framework function CGImageRetain.
func CGWindowListCreateImage ¶
func CGWindowListCreateImage(screenBounds corefoundation.CGRect, listOption CGWindowListOption, windowID uint32, imageOption CGWindowImageOption) CGImageRef
CGWindowListCreateImage calls the CoreGraphics framework function CGWindowListCreateImage.
func CGWindowListCreateImageFromArray ¶
func CGWindowListCreateImageFromArray(screenBounds corefoundation.CGRect, windowArray obj.Object, imageOption CGWindowImageOption) CGImageRef
CGWindowListCreateImageFromArray calls the CoreGraphics framework function CGWindowListCreateImageFromArray.
func (CGImageRef) IsNil ¶ added in v0.18.0
func (h CGImageRef) IsNil() bool
IsNil reports whether CGImageRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGImageSourceRef ¶ added in v0.18.0
CGImageSourceRef is a handle for the opaque CGImageSourceRef type.
func (CGImageSourceRef) IsNil ¶ added in v0.18.0
func (h CGImageSourceRef) IsNil() bool
IsNil reports whether CGImageSourceRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGInterpolationQuality ¶
type CGInterpolationQuality int32
Levels of interpolation quality for rendering an image.
const ( // The default level of quality. KCGInterpolationDefault CGInterpolationQuality = 0 // No interpolation. KCGInterpolationNone CGInterpolationQuality = 1 // A low level of interpolation quality. This setting may speed up image rendering. KCGInterpolationLow CGInterpolationQuality = 2 // A medium level of interpolation quality. This setting is slower than the low setting but faster than the high setting. KCGInterpolationMedium CGInterpolationQuality = 4 // A high level of interpolation quality. This setting may slow down image rendering. KCGInterpolationHigh CGInterpolationQuality = 3 )
func CGContextGetInterpolationQuality ¶
func CGContextGetInterpolationQuality(c CGContextRef) CGInterpolationQuality
CGContextGetInterpolationQuality calls the CoreGraphics framework function CGContextGetInterpolationQuality.
func (CGInterpolationQuality) String ¶
func (e CGInterpolationQuality) String() string
String returns the CGInterpolationQuality constant's name, or its numeric form when the value is not a known constant.
type CGLayer ¶
type CGLayer struct{}
An offscreen context for reusing content drawn with Core Graphics.
type CGLayerRef ¶ added in v0.18.0
CGLayerRef is a handle for the opaque CGLayerRef type.
func CGLayerCreateWithContext ¶
func CGLayerCreateWithContext(context_ CGContextRef, size corefoundation.CGSize, auxiliaryInfo obj.Object) CGLayerRef
CGLayerCreateWithContext calls the CoreGraphics framework function CGLayerCreateWithContext.
func CGLayerRetain ¶
func CGLayerRetain(layer CGLayerRef) CGLayerRef
CGLayerRetain calls the CoreGraphics framework function CGLayerRetain.
func (CGLayerRef) IsNil ¶ added in v0.18.0
func (h CGLayerRef) IsNil() bool
IsNil reports whether CGLayerRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGLineCap ¶
type CGLineCap int32
Styles for rendering the endpoint of a stroked line.
const ( // A line with a squared-off end. Core Graphics draws the line to extend only to the exact endpoint of the path. This is the default. KCGLineCapButt CGLineCap = 0 // A line with a rounded end. Core Graphics draws the line to extend beyond the endpoint of the path. The line ends with a semicircular arc with a radius of 1/2 the line’s width, centered on the endpoint. KCGLineCapRound CGLineCap = 1 // A line with a squared-off end. Core Graphics extends the line beyond the endpoint of the path for a distance equal to half the line width. KCGLineCapSquare CGLineCap = 2 )
type CGLineJoin ¶
type CGLineJoin int32
Junction types for stroked lines.
const ( KCGLineJoinMiter CGLineJoin = 0 // A join with a rounded end. Core Graphics draws the line to extend beyond the endpoint of the path. The line ends with a semicircular arc with a radius of 1/2 the line’s width, centered on the endpoint. KCGLineJoinRound CGLineJoin = 1 // A join with a squared-off end. Core Graphics draws the line to extend beyond the endpoint of the path, for a distance of 1/2 the line’s width. KCGLineJoinBevel CGLineJoin = 2 )
func (CGLineJoin) String ¶
func (e CGLineJoin) String() string
String returns the CGLineJoin constant's name, or its numeric form when the value is not a known constant.
type CGMomentumScrollPhase ¶
type CGMomentumScrollPhase uint32
const ( KCGMomentumScrollPhaseNone CGMomentumScrollPhase = 0 KCGMomentumScrollPhaseBegin CGMomentumScrollPhase = 1 KCGMomentumScrollPhaseContinue CGMomentumScrollPhase = 2 KCGMomentumScrollPhaseEnd CGMomentumScrollPhase = 3 )
func (CGMomentumScrollPhase) String ¶
func (e CGMomentumScrollPhase) String() string
String returns the CGMomentumScrollPhase constant's name, or its numeric form when the value is not a known constant.
type CGMouseButton ¶
type CGMouseButton uint32
Constants that specify buttons on a one, two, or three-button mouse.
const ( KCGMouseButtonLeft CGMouseButton = 0 KCGMouseButtonRight CGMouseButton = 1 KCGMouseButtonCenter CGMouseButton = 2 )
func (CGMouseButton) String ¶
func (e CGMouseButton) String() string
String returns the CGMouseButton constant's name, or its numeric form when the value is not a known constant.
type CGMutableImageMetadataRef ¶ added in v0.18.0
CGMutableImageMetadataRef is a handle for the opaque CGMutableImageMetadataRef type.
func (CGMutableImageMetadataRef) IsNil ¶ added in v0.18.0
func (h CGMutableImageMetadataRef) IsNil() bool
IsNil reports whether CGMutableImageMetadataRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGMutablePathRef ¶ added in v0.18.0
CGMutablePathRef is a handle for the opaque CGMutablePathRef type.
func CGPathCreateMutable ¶
func CGPathCreateMutable() CGMutablePathRef
CGPathCreateMutable calls the CoreGraphics framework function CGPathCreateMutable.
func CGPathCreateMutableCopy ¶
func CGPathCreateMutableCopy(path CGPathRef) CGMutablePathRef
CGPathCreateMutableCopy calls the CoreGraphics framework function CGPathCreateMutableCopy.
func CGPathCreateMutableCopyByTransformingPath ¶
func CGPathCreateMutableCopyByTransformingPath(path CGPathRef, transform *corefoundation.CGAffineTransform) CGMutablePathRef
CGPathCreateMutableCopyByTransformingPath calls the CoreGraphics framework function CGPathCreateMutableCopyByTransformingPath.
func (CGMutablePathRef) IsNil ¶ added in v0.18.0
func (h CGMutablePathRef) IsNil() bool
IsNil reports whether CGMutablePathRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFAccessPermissions ¶
type CGPDFAccessPermissions uint32
Bitmask — values may be combined with |.
const ( KCGPDFAllowsLowQualityPrinting CGPDFAccessPermissions = 1 KCGPDFAllowsHighQualityPrinting CGPDFAccessPermissions = 2 KCGPDFAllowsDocumentChanges CGPDFAccessPermissions = 4 KCGPDFAllowsDocumentAssembly CGPDFAccessPermissions = 8 KCGPDFAllowsContentCopying CGPDFAccessPermissions = 16 KCGPDFAllowsContentAccessibility CGPDFAccessPermissions = 32 KCGPDFAllowsCommenting CGPDFAccessPermissions = 64 KCGPDFAllowsFormFieldEntry CGPDFAccessPermissions = 128 )
func CGPDFDocumentGetAccessPermissions ¶
func CGPDFDocumentGetAccessPermissions(document CGPDFDocumentRef) CGPDFAccessPermissions
CGPDFDocumentGetAccessPermissions calls the CoreGraphics framework function CGPDFDocumentGetAccessPermissions.
func (CGPDFAccessPermissions) String ¶
func (e CGPDFAccessPermissions) String() string
String returns the CGPDFAccessPermissions constant's name, or its numeric form when the value is not a known constant.
type CGPDFArrayRef ¶ added in v0.18.0
CGPDFArrayRef is a handle for the opaque CGPDFArrayRef type.
func CGPDFDocumentGetID ¶
func CGPDFDocumentGetID(document CGPDFDocumentRef) CGPDFArrayRef
CGPDFDocumentGetID calls the CoreGraphics framework function CGPDFDocumentGetID.
func (CGPDFArrayRef) IsNil ¶ added in v0.18.0
func (h CGPDFArrayRef) IsNil() bool
IsNil reports whether CGPDFArrayRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFBox ¶
type CGPDFBox int32
Box types for a PDF page.
const ( // 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 // The page crop box—a rectangle, expressed in default user space units, that defines the visible region of default user space. When the page is displayed or printed, its contents are to be clipped to this rectangle. KCGPDFCropBox CGPDFBox = 1 // 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 // 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 // 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 )
type CGPDFContentStream ¶
type CGPDFContentStream struct{}
A representation of one or more content data streams in a PDF page.
type CGPDFContentStreamRef ¶ added in v0.18.0
CGPDFContentStreamRef is a handle for the opaque CGPDFContentStreamRef type.
func CGPDFContentStreamCreateWithPage ¶
func CGPDFContentStreamCreateWithPage(page CGPDFPageRef) CGPDFContentStreamRef
CGPDFContentStreamCreateWithPage calls the CoreGraphics framework function CGPDFContentStreamCreateWithPage.
func CGPDFContentStreamCreateWithStream ¶
func CGPDFContentStreamCreateWithStream(stream CGPDFStreamRef, streamResources CGPDFDictionaryRef, parent CGPDFContentStreamRef) CGPDFContentStreamRef
CGPDFContentStreamCreateWithStream calls the CoreGraphics framework function CGPDFContentStreamCreateWithStream.
func CGPDFContentStreamRetain ¶
func CGPDFContentStreamRetain(cs CGPDFContentStreamRef) CGPDFContentStreamRef
CGPDFContentStreamRetain calls the CoreGraphics framework function CGPDFContentStreamRetain.
func CGPDFScannerGetContentStream ¶
func CGPDFScannerGetContentStream(scanner CGPDFScannerRef) CGPDFContentStreamRef
CGPDFScannerGetContentStream calls the CoreGraphics framework function CGPDFScannerGetContentStream.
func (CGPDFContentStreamRef) IsNil ¶ added in v0.18.0
func (h CGPDFContentStreamRef) IsNil() bool
IsNil reports whether CGPDFContentStreamRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFDataFormat ¶
type CGPDFDataFormat int32
The encoding format of PDF data.
const ( // The data stream is not encoded. CGPDFDataFormatRaw CGPDFDataFormat = 0 // The data stream is encoded in JPEG format. CGPDFDataFormatJPEGEncoded CGPDFDataFormat = 1 // The data stream is encoded in JPEG-2000 format. CGPDFDataFormatJPEG2000 CGPDFDataFormat = 2 )
func CGPDFStreamCopyData ¶
func CGPDFStreamCopyData(stream CGPDFStreamRef) (result obj.Object, format CGPDFDataFormat)
CGPDFStreamCopyData calls the CoreGraphics framework function CGPDFStreamCopyData.
func (CGPDFDataFormat) String ¶
func (e CGPDFDataFormat) String() string
String returns the CGPDFDataFormat constant's name, or its numeric form when the value is not a known constant.
type CGPDFDictionaryRef ¶ added in v0.18.0
CGPDFDictionaryRef is a handle for the opaque CGPDFDictionaryRef type.
func CGPDFDocumentGetCatalog ¶
func CGPDFDocumentGetCatalog(document CGPDFDocumentRef) CGPDFDictionaryRef
CGPDFDocumentGetCatalog calls the CoreGraphics framework function CGPDFDocumentGetCatalog.
func CGPDFDocumentGetInfo ¶
func CGPDFDocumentGetInfo(document CGPDFDocumentRef) CGPDFDictionaryRef
CGPDFDocumentGetInfo calls the CoreGraphics framework function CGPDFDocumentGetInfo.
func CGPDFPageGetDictionary ¶
func CGPDFPageGetDictionary(page CGPDFPageRef) CGPDFDictionaryRef
CGPDFPageGetDictionary calls the CoreGraphics framework function CGPDFPageGetDictionary.
func CGPDFStreamGetDictionary ¶
func CGPDFStreamGetDictionary(stream CGPDFStreamRef) CGPDFDictionaryRef
CGPDFStreamGetDictionary calls the CoreGraphics framework function CGPDFStreamGetDictionary.
func (CGPDFDictionaryRef) IsNil ¶ added in v0.18.0
func (h CGPDFDictionaryRef) IsNil() bool
IsNil reports whether CGPDFDictionaryRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFDocument ¶
type CGPDFDocument struct{}
A document that contains PDF (Portable Document Format) drawing information.
type CGPDFDocumentRef ¶ added in v0.18.0
CGPDFDocumentRef is a handle for the opaque CGPDFDocumentRef type.
func CGPDFDocumentCreateWithProvider ¶
func CGPDFDocumentCreateWithProvider(provider CGDataProviderRef) CGPDFDocumentRef
CGPDFDocumentCreateWithProvider calls the CoreGraphics framework function CGPDFDocumentCreateWithProvider.
func CGPDFDocumentCreateWithURL ¶
func CGPDFDocumentCreateWithURL(url obj.Object) CGPDFDocumentRef
CGPDFDocumentCreateWithURL calls the CoreGraphics framework function CGPDFDocumentCreateWithURL.
func CGPDFDocumentRetain ¶
func CGPDFDocumentRetain(document CGPDFDocumentRef) CGPDFDocumentRef
CGPDFDocumentRetain calls the CoreGraphics framework function CGPDFDocumentRetain.
func CGPDFPageGetDocument ¶
func CGPDFPageGetDocument(page CGPDFPageRef) CGPDFDocumentRef
CGPDFPageGetDocument calls the CoreGraphics framework function CGPDFPageGetDocument.
func (CGPDFDocumentRef) IsNil ¶ added in v0.18.0
func (h CGPDFDocumentRef) IsNil() bool
IsNil reports whether CGPDFDocumentRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFObjectRef ¶ added in v0.18.0
CGPDFObjectRef is a handle for the opaque CGPDFObjectRef type.
func CGPDFContentStreamGetResource ¶
func CGPDFContentStreamGetResource(cs CGPDFContentStreamRef, category string, name string) CGPDFObjectRef
CGPDFContentStreamGetResource calls the CoreGraphics framework function CGPDFContentStreamGetResource.
func (CGPDFObjectRef) IsNil ¶ added in v0.18.0
func (h CGPDFObjectRef) IsNil() bool
IsNil reports whether CGPDFObjectRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFObjectType ¶
type CGPDFObjectType int32
Types of PDF object.
const ( // The type for a PDF null. KCGPDFObjectTypeNull CGPDFObjectType = 1 // The type for a PDF Boolean. KCGPDFObjectTypeBoolean CGPDFObjectType = 2 // The type for a PDF integer. KCGPDFObjectTypeInteger CGPDFObjectType = 3 // The type for a PDF real. KCGPDFObjectTypeReal CGPDFObjectType = 4 // Type for a PDF name. KCGPDFObjectTypeName CGPDFObjectType = 5 // The type for a PDF string. KCGPDFObjectTypeString CGPDFObjectType = 6 // Type for a PDF array. KCGPDFObjectTypeArray CGPDFObjectType = 7 // The type for a PDF dictionary. KCGPDFObjectTypeDictionary CGPDFObjectType = 8 // The type for a PDF stream. KCGPDFObjectTypeStream CGPDFObjectType = 9 )
func CGPDFObjectGetType ¶
func CGPDFObjectGetType(object CGPDFObjectRef) CGPDFObjectType
CGPDFObjectGetType calls the CoreGraphics framework function CGPDFObjectGetType.
func (CGPDFObjectType) String ¶
func (e CGPDFObjectType) String() string
String returns the CGPDFObjectType constant's name, or its numeric form when the value is not a known constant.
type CGPDFOperatorTable ¶
type CGPDFOperatorTable struct{}
A set of callback functions for operators used when scanning content in a PDF document.
type CGPDFOperatorTableRef ¶ added in v0.18.0
CGPDFOperatorTableRef is a handle for the opaque CGPDFOperatorTableRef type.
func CGPDFOperatorTableCreate ¶
func CGPDFOperatorTableCreate() CGPDFOperatorTableRef
CGPDFOperatorTableCreate calls the CoreGraphics framework function CGPDFOperatorTableCreate.
func CGPDFOperatorTableRetain ¶
func CGPDFOperatorTableRetain(table CGPDFOperatorTableRef) CGPDFOperatorTableRef
CGPDFOperatorTableRetain calls the CoreGraphics framework function CGPDFOperatorTableRetain.
func (CGPDFOperatorTableRef) IsNil ¶ added in v0.18.0
func (h CGPDFOperatorTableRef) IsNil() bool
IsNil reports whether CGPDFOperatorTableRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFPageRef ¶ added in v0.18.0
CGPDFPageRef is a handle for the opaque CGPDFPageRef type.
func CGPDFDocumentGetPage ¶
func CGPDFDocumentGetPage(document CGPDFDocumentRef, pageNumber int) CGPDFPageRef
CGPDFDocumentGetPage calls the CoreGraphics framework function CGPDFDocumentGetPage.
func CGPDFPageRetain ¶
func CGPDFPageRetain(page CGPDFPageRef) CGPDFPageRef
CGPDFPageRetain calls the CoreGraphics framework function CGPDFPageRetain.
func (CGPDFPageRef) IsNil ¶ added in v0.18.0
func (h CGPDFPageRef) IsNil() bool
IsNil reports whether CGPDFPageRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFScanner ¶
type CGPDFScanner struct{}
A parser object for handling content and operators in a PDF content stream.
type CGPDFScannerRef ¶ added in v0.18.0
CGPDFScannerRef is a handle for the opaque CGPDFScannerRef type.
func CGPDFScannerCreate ¶
func CGPDFScannerCreate(cs CGPDFContentStreamRef, table CGPDFOperatorTableRef, info unsafe.Pointer) CGPDFScannerRef
CGPDFScannerCreate calls the CoreGraphics framework function CGPDFScannerCreate.
func CGPDFScannerRetain ¶
func CGPDFScannerRetain(scanner CGPDFScannerRef) CGPDFScannerRef
CGPDFScannerRetain calls the CoreGraphics framework function CGPDFScannerRetain.
func (CGPDFScannerRef) IsNil ¶ added in v0.18.0
func (h CGPDFScannerRef) IsNil() bool
IsNil reports whether CGPDFScannerRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFStreamRef ¶ added in v0.18.0
CGPDFStreamRef is a handle for the opaque CGPDFStreamRef type.
func (CGPDFStreamRef) IsNil ¶ added in v0.18.0
func (h CGPDFStreamRef) IsNil() bool
IsNil reports whether CGPDFStreamRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFStringRef ¶ added in v0.18.0
CGPDFStringRef is a handle for the opaque CGPDFStringRef type.
func (CGPDFStringRef) IsNil ¶ added in v0.18.0
func (h CGPDFStringRef) IsNil() bool
IsNil reports whether CGPDFStringRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPDFTagType ¶
type CGPDFTagType int32
const ( CGPDFTagTypeDocument CGPDFTagType = 100 CGPDFTagTypePart CGPDFTagType = 101 CGPDFTagTypeArt CGPDFTagType = 102 CGPDFTagTypeSection CGPDFTagType = 103 CGPDFTagTypeDiv CGPDFTagType = 104 CGPDFTagTypeBlockQuote CGPDFTagType = 105 CGPDFTagTypeCaption CGPDFTagType = 106 CGPDFTagTypeTOC CGPDFTagType = 107 CGPDFTagTypeTOCI CGPDFTagType = 108 CGPDFTagTypeIndex CGPDFTagType = 109 CGPDFTagTypeNonStructure CGPDFTagType = 110 CGPDFTagTypePrivate CGPDFTagType = 111 CGPDFTagTypeParagraph CGPDFTagType = 200 CGPDFTagTypeHeader CGPDFTagType = 201 CGPDFTagTypeHeader1 CGPDFTagType = 202 CGPDFTagTypeHeader2 CGPDFTagType = 203 CGPDFTagTypeHeader3 CGPDFTagType = 204 CGPDFTagTypeHeader4 CGPDFTagType = 205 CGPDFTagTypeHeader5 CGPDFTagType = 206 CGPDFTagTypeHeader6 CGPDFTagType = 207 CGPDFTagTypeList CGPDFTagType = 300 CGPDFTagTypeListItem CGPDFTagType = 301 CGPDFTagTypeLabel CGPDFTagType = 302 CGPDFTagTypeListBody CGPDFTagType = 303 CGPDFTagTypeTable CGPDFTagType = 400 CGPDFTagTypeTableRow CGPDFTagType = 401 CGPDFTagTypeTableHeaderCell CGPDFTagType = 402 CGPDFTagTypeTableDataCell CGPDFTagType = 403 CGPDFTagTypeTableHeader CGPDFTagType = 404 CGPDFTagTypeTableBody CGPDFTagType = 405 CGPDFTagTypeSpan CGPDFTagType = 500 CGPDFTagTypeQuote CGPDFTagType = 501 CGPDFTagTypeNote CGPDFTagType = 502 CGPDFTagTypeReference CGPDFTagType = 503 CGPDFTagTypeBibliography CGPDFTagType = 504 CGPDFTagTypeCode CGPDFTagType = 505 CGPDFTagTypeLink CGPDFTagType = 506 CGPDFTagTypeAnnotation CGPDFTagType = 507 CGPDFTagTypeRuby CGPDFTagType = 600 CGPDFTagTypeRubyBaseText CGPDFTagType = 601 CGPDFTagTypeRubyAnnotationText CGPDFTagType = 602 CGPDFTagTypeRubyPunctuation CGPDFTagType = 603 CGPDFTagTypeWarichu CGPDFTagType = 604 CGPDFTagTypeWarichuText CGPDFTagType = 605 CGPDFTagTypeWarichuPunctiation CGPDFTagType = 606 CGPDFTagTypeFigure CGPDFTagType = 700 CGPDFTagTypeFormula CGPDFTagType = 701 CGPDFTagTypeForm CGPDFTagType = 702 CGPDFTagTypeObject CGPDFTagType = 800 )
func (CGPDFTagType) String ¶
func (e CGPDFTagType) String() string
String returns the CGPDFTagType constant's name, or its numeric form when the value is not a known constant.
type CGPSConverter ¶
type CGPSConverter struct{}
An opaque data type used to convert PostScript data to PDF data.
type CGPSConverterCallbacks ¶
type CGPSConverterCallbacks struct {
Version uint32
BeginDocument unsafe.Pointer
EndDocument unsafe.Pointer
BeginPage unsafe.Pointer
EndPage unsafe.Pointer
NoteProgress unsafe.Pointer
NoteMessage unsafe.Pointer
ReleaseInfo unsafe.Pointer
}
A structure for holding the callbacks provided when you create a PostScript converter object.
type CGPSConverterRef ¶ added in v0.18.0
CGPSConverterRef is a handle for the opaque CGPSConverterRef type.
func CGPSConverterCreate ¶
func CGPSConverterCreate(info unsafe.Pointer, callbacks unsafe.Pointer, options obj.Object) CGPSConverterRef
CGPSConverterCreate calls the CoreGraphics framework function CGPSConverterCreate.
func (CGPSConverterRef) IsNil ¶ added in v0.18.0
func (h CGPSConverterRef) IsNil() bool
IsNil reports whether CGPSConverterRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPath ¶
type CGPath struct{}
An immutable graphics path: a mathematical description of shapes or lines to be drawn in a graphics context.
type CGPathDrawingMode ¶
type CGPathDrawingMode int32
Options for rendering a path.
const ( // Render the area contained within the path using the non-zero winding number rule. KCGPathFill CGPathDrawingMode = 0 // Render the area within the path using the even-odd rule. KCGPathEOFill CGPathDrawingMode = 1 // Render a line along the path. KCGPathStroke CGPathDrawingMode = 2 // First fill and then stroke the path, using the nonzero winding number rule. KCGPathFillStroke CGPathDrawingMode = 3 // First fill and then stroke the path, using the even-odd rule. KCGPathEOFillStroke CGPathDrawingMode = 4 )
func (CGPathDrawingMode) String ¶
func (e CGPathDrawingMode) String() string
String returns the CGPathDrawingMode constant's name, or its numeric form when the value is not a known constant.
type CGPathElement ¶
type CGPathElement struct {
Type CGPathElementType
Points unsafe.Pointer
}
A data structure that provides information about a path element.
type CGPathElementType ¶
type CGPathElementType int32
The type of element found in a path.
const ( // The path element that starts a new subpath. KCGPathElementMoveToPoint CGPathElementType = 0 // The path element that adds a line from the current point to a new point. KCGPathElementAddLineToPoint CGPathElementType = 1 // The path element that adds a quadratic curve from the current point to the specified point. KCGPathElementAddQuadCurveToPoint CGPathElementType = 2 // The path element that adds a cubic curve from the current point to the specified point. KCGPathElementAddCurveToPoint CGPathElementType = 3 // The path element that closes and completes a subpath. The element does not contain any points. See the function CGPathCloseSubpath. KCGPathElementCloseSubpath CGPathElementType = 4 )
func (CGPathElementType) String ¶
func (e CGPathElementType) String() string
String returns the CGPathElementType constant's name, or its numeric form when the value is not a known constant.
type CGPathRef ¶ added in v0.18.0
CGPathRef is a handle for the opaque CGPathRef type.
func CGContextCopyPath ¶
func CGContextCopyPath(c CGContextRef) CGPathRef
CGContextCopyPath calls the CoreGraphics framework function CGContextCopyPath.
func CGPathCreateCopy ¶
CGPathCreateCopy calls the CoreGraphics framework function CGPathCreateCopy.
func CGPathCreateCopyByDashingPath ¶
func CGPathCreateCopyByDashingPath(path CGPathRef, transform *corefoundation.CGAffineTransform, phase float64, lengths unsafe.Pointer, count int) CGPathRef
CGPathCreateCopyByDashingPath calls the CoreGraphics framework function CGPathCreateCopyByDashingPath.
func CGPathCreateCopyByFlattening ¶
CGPathCreateCopyByFlattening calls the CoreGraphics framework function CGPathCreateCopyByFlattening.
func CGPathCreateCopyByIntersectingPath ¶
func CGPathCreateCopyByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
CGPathCreateCopyByIntersectingPath calls the CoreGraphics framework function CGPathCreateCopyByIntersectingPath.
func CGPathCreateCopyByNormalizing ¶
CGPathCreateCopyByNormalizing calls the CoreGraphics framework function CGPathCreateCopyByNormalizing.
func CGPathCreateCopyByStrokingPath ¶
func CGPathCreateCopyByStrokingPath(path CGPathRef, transform *corefoundation.CGAffineTransform, lineWidth float64, lineCap CGLineCap, lineJoin CGLineJoin, miterLimit float64) CGPathRef
CGPathCreateCopyByStrokingPath calls the CoreGraphics framework function CGPathCreateCopyByStrokingPath.
func CGPathCreateCopyBySubtractingPath ¶
func CGPathCreateCopyBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
CGPathCreateCopyBySubtractingPath calls the CoreGraphics framework function CGPathCreateCopyBySubtractingPath.
func CGPathCreateCopyBySymmetricDifferenceOfPath ¶
func CGPathCreateCopyBySymmetricDifferenceOfPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
CGPathCreateCopyBySymmetricDifferenceOfPath calls the CoreGraphics framework function CGPathCreateCopyBySymmetricDifferenceOfPath.
func CGPathCreateCopyByTransformingPath ¶
func CGPathCreateCopyByTransformingPath(path CGPathRef, transform *corefoundation.CGAffineTransform) CGPathRef
CGPathCreateCopyByTransformingPath calls the CoreGraphics framework function CGPathCreateCopyByTransformingPath.
func CGPathCreateCopyByUnioningPath ¶
func CGPathCreateCopyByUnioningPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
CGPathCreateCopyByUnioningPath calls the CoreGraphics framework function CGPathCreateCopyByUnioningPath.
func CGPathCreateCopyOfLineByIntersectingPath ¶
func CGPathCreateCopyOfLineByIntersectingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
CGPathCreateCopyOfLineByIntersectingPath calls the CoreGraphics framework function CGPathCreateCopyOfLineByIntersectingPath.
func CGPathCreateCopyOfLineBySubtractingPath ¶
func CGPathCreateCopyOfLineBySubtractingPath(path CGPathRef, maskPath CGPathRef, evenOddFillRule bool) CGPathRef
CGPathCreateCopyOfLineBySubtractingPath calls the CoreGraphics framework function CGPathCreateCopyOfLineBySubtractingPath.
func CGPathCreateWithEllipseInRect ¶
func CGPathCreateWithEllipseInRect(rect corefoundation.CGRect, transform *corefoundation.CGAffineTransform) CGPathRef
CGPathCreateWithEllipseInRect calls the CoreGraphics framework function CGPathCreateWithEllipseInRect.
func CGPathCreateWithRect ¶
func CGPathCreateWithRect(rect corefoundation.CGRect, transform *corefoundation.CGAffineTransform) CGPathRef
CGPathCreateWithRect calls the CoreGraphics framework function CGPathCreateWithRect.
func CGPathCreateWithRoundedRect ¶
func CGPathCreateWithRoundedRect(rect corefoundation.CGRect, cornerWidth float64, cornerHeight float64, transform *corefoundation.CGAffineTransform) CGPathRef
CGPathCreateWithRoundedRect calls the CoreGraphics framework function CGPathCreateWithRoundedRect.
func CGPathRetain ¶
CGPathRetain calls the CoreGraphics framework function CGPathRetain.
type CGPatternCallbacks ¶
type CGPatternCallbacks struct {
Version uint32
DrawPattern unsafe.Pointer
ReleaseInfo unsafe.Pointer
}
A structure that holds a version and two callback functions for drawing a custom pattern.
type CGPatternRef ¶ added in v0.18.0
CGPatternRef is a handle for the opaque CGPatternRef type.
func CGColorGetPattern ¶
func CGColorGetPattern(color CGColorRef) CGPatternRef
CGColorGetPattern calls the CoreGraphics framework function CGColorGetPattern.
func CGPatternCreate ¶
func CGPatternCreate(info unsafe.Pointer, bounds corefoundation.CGRect, matrix corefoundation.CGAffineTransform, xStep float64, yStep float64, tiling CGPatternTiling, isColored bool, callbacks unsafe.Pointer) CGPatternRef
CGPatternCreate calls the CoreGraphics framework function CGPatternCreate.
func CGPatternRetain ¶
func CGPatternRetain(pattern CGPatternRef) CGPatternRef
CGPatternRetain calls the CoreGraphics framework function CGPatternRetain.
func (CGPatternRef) IsNil ¶ added in v0.18.0
func (h CGPatternRef) IsNil() bool
IsNil reports whether CGPatternRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGPatternTiling ¶
type CGPatternTiling int32
Different methods for rendering a tiled pattern.
const ( // The pattern cell is not distorted when painted.The spacing between pattern cells may vary by as much as 1 devicepixel. KCGPatternTilingNoDistortion CGPatternTiling = 0 // Pattern cells are spaced consistently. Thepattern cell may be distorted by as much as 1 device pixel whenthe pattern is painted. KCGPatternTilingConstantSpacingMinimalDistortion CGPatternTiling = 1 // Pattern cells are spaced consistently, as with kCGPatternTilingConstantSpacingMinimalDistortion.The pattern cell may be distorted additionally to permit a moreefficient implementation. KCGPatternTilingConstantSpacing CGPatternTiling = 2 )
func (CGPatternTiling) String ¶
func (e CGPatternTiling) String() string
String returns the CGPatternTiling constant's name, or its numeric form when the value is not a known constant.
type CGRenderingBufferProvider ¶
type CGRenderingBufferProvider struct{}
type CGRenderingBufferProviderRef ¶ added in v0.18.0
CGRenderingBufferProviderRef is a handle for the opaque CGRenderingBufferProviderRef type.
func CGRenderingBufferProviderCreate ¶
func CGRenderingBufferProviderCreate(info unsafe.Pointer, size int, lockPointer unsafe.Pointer, unlockPointer func(unsafe.Pointer, unsafe.Pointer), releaseInfo func(unsafe.Pointer)) CGRenderingBufferProviderRef
CGRenderingBufferProviderCreate calls the CoreGraphics framework function CGRenderingBufferProviderCreate.
func CGRenderingBufferProviderCreateWithCFData ¶
func CGRenderingBufferProviderCreateWithCFData(data obj.Object) CGRenderingBufferProviderRef
CGRenderingBufferProviderCreateWithCFData calls the CoreGraphics framework function CGRenderingBufferProviderCreateWithCFData.
func (CGRenderingBufferProviderRef) IsNil ¶ added in v0.18.0
func (h CGRenderingBufferProviderRef) IsNil() bool
IsNil reports whether CGRenderingBufferProviderRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGScreenUpdateMoveDelta ¶
The distance, in pixel units, that an onscreen region moves.
type CGScreenUpdateOperation ¶
type CGScreenUpdateOperation uint32
Types of screen-update operations. Bitmask — values may be combined with |.
const ( // A screen-refresh operation. KCGScreenUpdateOperationRefresh CGScreenUpdateOperation = 0 // A screen-move operation. KCGScreenUpdateOperationMove CGScreenUpdateOperation = 1 KCGScreenUpdateOperationReducedDirtyRectangleCount CGScreenUpdateOperation = 2147483648 )
func (CGScreenUpdateOperation) String ¶
func (e CGScreenUpdateOperation) String() string
String returns the CGScreenUpdateOperation constant's name, or its numeric form when the value is not a known constant.
type CGScrollEventUnit ¶
type CGScrollEventUnit uint32
Constants that specify the unit of measurement for a scrolling event.
const ( // Specifies that the unit of measurement is pixels. KCGScrollEventUnitPixel CGScrollEventUnit = 0 // Specifies that the unit of measurement is lines. KCGScrollEventUnitLine CGScrollEventUnit = 1 )
func (CGScrollEventUnit) String ¶
func (e CGScrollEventUnit) String() string
String returns the CGScrollEventUnit constant's name, or its numeric form when the value is not a known constant.
type CGScrollPhase ¶
type CGScrollPhase uint32
const ( KCGScrollPhaseBegan CGScrollPhase = 1 KCGScrollPhaseChanged CGScrollPhase = 2 KCGScrollPhaseEnded CGScrollPhase = 4 KCGScrollPhaseCancelled CGScrollPhase = 8 KCGScrollPhaseMayBegin CGScrollPhase = 128 )
func (CGScrollPhase) String ¶
func (e CGScrollPhase) String() string
String returns the CGScrollPhase constant's name, or its numeric form when the value is not a known constant.
type CGShading ¶
type CGShading struct{}
A definition for a smooth transition between colors, controlled by a custom function you provide, for drawing radial and axial gradient fills.
type CGShadingRef ¶ added in v0.18.0
CGShadingRef is a handle for the opaque CGShadingRef type.
func CGShadingCreateAxial ¶
func CGShadingCreateAxial(space CGColorSpaceRef, start corefoundation.CGPoint, end corefoundation.CGPoint, function CGFunctionRef, extendStart bool, extendEnd bool) CGShadingRef
CGShadingCreateAxial calls the CoreGraphics framework function CGShadingCreateAxial.
func CGShadingCreateAxialWithContentHeadroom ¶
func CGShadingCreateAxialWithContentHeadroom(headroom float32, space CGColorSpaceRef, start corefoundation.CGPoint, end corefoundation.CGPoint, function CGFunctionRef, extendStart bool, extendEnd bool) CGShadingRef
CGShadingCreateAxialWithContentHeadroom calls the CoreGraphics framework function CGShadingCreateAxialWithContentHeadroom.
func CGShadingCreateRadial ¶
func CGShadingCreateRadial(space CGColorSpaceRef, start corefoundation.CGPoint, startRadius float64, end corefoundation.CGPoint, endRadius float64, function CGFunctionRef, extendStart bool, extendEnd bool) CGShadingRef
CGShadingCreateRadial calls the CoreGraphics framework function CGShadingCreateRadial.
func CGShadingCreateRadialWithContentHeadroom ¶
func CGShadingCreateRadialWithContentHeadroom(headroom float32, space CGColorSpaceRef, start corefoundation.CGPoint, startRadius float64, end corefoundation.CGPoint, endRadius float64, function CGFunctionRef, extendStart bool, extendEnd bool) CGShadingRef
CGShadingCreateRadialWithContentHeadroom calls the CoreGraphics framework function CGShadingCreateRadialWithContentHeadroom.
func CGShadingRetain ¶
func CGShadingRetain(shading CGShadingRef) CGShadingRef
CGShadingRetain calls the CoreGraphics framework function CGShadingRetain.
func (CGShadingRef) IsNil ¶ added in v0.18.0
func (h CGShadingRef) IsNil() bool
IsNil reports whether CGShadingRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type CGTextDrawingMode ¶
type CGTextDrawingMode int32
Modes for rendering text.
const ( // Perform a fill operation on the text. KCGTextFill CGTextDrawingMode = 0 // Perform a stroke operation on the text. KCGTextStroke CGTextDrawingMode = 1 // Perform fill, then stroke operations on the text. KCGTextFillStroke CGTextDrawingMode = 2 // Do not draw the text, but do update the text position. KCGTextInvisible CGTextDrawingMode = 3 // Perform a fill operation, then intersect the text with the current clipping path. KCGTextFillClip CGTextDrawingMode = 4 // Perform a stroke operation, then intersect the text with the current clipping path. KCGTextStrokeClip CGTextDrawingMode = 5 // Perform fill then stroke operations, then intersect the text with the current clipping path. KCGTextFillStrokeClip CGTextDrawingMode = 6 // Specifies to intersect the text with the current clipping path. This mode does not paint the text. KCGTextClip CGTextDrawingMode = 7 )
func (CGTextDrawingMode) String ¶
func (e CGTextDrawingMode) String() string
String returns the CGTextDrawingMode constant's name, or its numeric form when the value is not a known constant.
type CGTextEncoding
deprecated
type CGTextEncoding int32
Text encodings for fonts.
Deprecated: No longer supported
const ( // The built-in encoding of the font. KCGEncodingFontSpecific CGTextEncoding = 0 // The MacRoman encoding. MacRoman is an ASCII variant originally created for use in the Mac OS, in which characters 127 and lower are ASCII, and characters 128 and higher are non-English characters and symbols. KCGEncodingMacRoman CGTextEncoding = 1 )
func (CGTextEncoding) String ¶
func (e CGTextEncoding) String() string
String returns the CGTextEncoding constant's name, or its numeric form when the value is not a known constant.
type CGToneMapping ¶
type CGToneMapping uint32
const ( KCGToneMappingDefault CGToneMapping = 0 KCGToneMappingImageSpecificLumaScaling CGToneMapping = 1 KCGToneMappingReferenceWhiteBased CGToneMapping = 2 KCGToneMappingITURecommended CGToneMapping = 3 KCGToneMappingEXRGamma CGToneMapping = 4 KCGToneMappingNone CGToneMapping = 5 )
func (CGToneMapping) String ¶
func (e CGToneMapping) String() string
String returns the CGToneMapping constant's name, or its numeric form when the value is not a known constant.
type CGWindowBackingType ¶
type CGWindowBackingType uint32
The data type used to specify the backing option for a given window.
const ( KCGBackingStoreRetained CGWindowBackingType = 0 KCGBackingStoreNonretained CGWindowBackingType = 1 KCGBackingStoreBuffered CGWindowBackingType = 2 )
func (CGWindowBackingType) String ¶
func (e CGWindowBackingType) String() string
String returns the CGWindowBackingType constant's name, or its numeric form when the value is not a known constant.
type CGWindowImageOption ¶
type CGWindowImageOption uint32
The data type to use to specify the type of image to be generated for a window. Bitmask — values may be combined with |.
const ( KCGWindowImageDefault CGWindowImageOption = 0 KCGWindowImageBoundsIgnoreFraming CGWindowImageOption = 1 KCGWindowImageShouldBeOpaque CGWindowImageOption = 2 KCGWindowImageOnlyShadows CGWindowImageOption = 4 // When capturing the window, return the best image resolution. The returned image size may be different than the screen size. KCGWindowImageBestResolution CGWindowImageOption = 8 // When capturing the window, return the nominal image resolution. The returned image size is the same as the screen size. KCGWindowImageNominalResolution CGWindowImageOption = 16 )
func (CGWindowImageOption) String ¶
func (e CGWindowImageOption) String() string
String returns the CGWindowImageOption constant's name, or its numeric form when the value is not a known constant.
type CGWindowLevelKey ¶
type CGWindowLevelKey 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.
const ( KCGBaseWindowLevelKey CGWindowLevelKey = 0 KCGMinimumWindowLevelKey CGWindowLevelKey = 1 KCGDesktopWindowLevelKey CGWindowLevelKey = 2 KCGBackstopMenuLevelKey CGWindowLevelKey = 3 KCGNormalWindowLevelKey CGWindowLevelKey = 4 KCGFloatingWindowLevelKey CGWindowLevelKey = 5 KCGTornOffMenuWindowLevelKey CGWindowLevelKey = 6 KCGDockWindowLevelKey CGWindowLevelKey = 7 KCGMainMenuWindowLevelKey CGWindowLevelKey = 8 KCGStatusWindowLevelKey CGWindowLevelKey = 9 KCGModalPanelWindowLevelKey CGWindowLevelKey = 10 KCGPopUpMenuWindowLevelKey CGWindowLevelKey = 11 KCGDraggingWindowLevelKey CGWindowLevelKey = 12 KCGScreenSaverWindowLevelKey CGWindowLevelKey = 13 KCGMaximumWindowLevelKey CGWindowLevelKey = 14 KCGOverlayWindowLevelKey CGWindowLevelKey = 15 KCGHelpWindowLevelKey CGWindowLevelKey = 16 KCGUtilityWindowLevelKey CGWindowLevelKey = 17 KCGDesktopIconWindowLevelKey CGWindowLevelKey = 18 KCGCursorWindowLevelKey CGWindowLevelKey = 19 KCGAssistiveTechHighWindowLevelKey CGWindowLevelKey = 20 KCGNumberOfWindowLevelKeys CGWindowLevelKey = 21 )
func (CGWindowLevelKey) String ¶
func (e CGWindowLevelKey) String() string
String returns the CGWindowLevelKey constant's name, or its numeric form when the value is not a known constant.
type CGWindowListOption ¶
type CGWindowListOption uint32
The data type used to specify the options for gathering a list of windows. Bitmask — values may be combined with |.
const ( KCGWindowListOptionAll CGWindowListOption = 0 KCGWindowListOptionOnScreenOnly CGWindowListOption = 1 KCGWindowListOptionOnScreenAboveWindow CGWindowListOption = 2 KCGWindowListOptionOnScreenBelowWindow CGWindowListOption = 4 KCGWindowListOptionIncludingWindow CGWindowListOption = 8 KCGWindowListExcludeDesktopElements CGWindowListOption = 16 )
func (CGWindowListOption) String ¶
func (e CGWindowListOption) String() string
String returns the CGWindowListOption constant's name, or its numeric form when the value is not a known constant.
type CGWindowSharingType ¶
type CGWindowSharingType uint32
The data type used to specify the sharing mode used by a window.
const ( KCGWindowSharingNone CGWindowSharingType = 0 KCGWindowSharingReadOnly CGWindowSharingType = 1 KCGWindowSharingReadWrite CGWindowSharingType = 2 )
func (CGWindowSharingType) String ¶
func (e CGWindowSharingType) String() string
String returns the CGWindowSharingType constant's name, or its numeric form when the value is not a known constant.
type ColorSyncProfile ¶
type ColorSyncProfile struct{}
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type IOSurfaceRef ¶ added in v0.18.0
IOSurfaceRef is a handle for the opaque IOSurfaceRef type.
func (IOSurfaceRef) IsNil ¶ added in v0.18.0
func (h IOSurfaceRef) IsNil() bool
IsNil reports whether IOSurfaceRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type MTLDevice ¶
type MTLDevice interface {
}
MTLDevice is the Go form of the Objective-C protocol MTLDevice.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.