Cargo Features

[dependencies]
objc2-core-graphics = { version = "0.3.0", default-features = false, features = ["std", "alloc", "bitflags", "block2", "libc", "objc2", "objc2-io-surface", "objc2-metal", "CGAffineTransform", "CGBitmapContext", "CGColor", "CGColorConversionInfo", "CGColorSpace", "CGContext", "CGConvertColorDataWithFormat", "CGDataConsumer", "CGDataProvider", "CGDirectDisplay", "CGDirectPalette", "CGDisplayConfiguration", "CGDisplayFade", "CGDisplayStream", "CGEXRToneMappingGamma", "CGError", "CGEvent", "CGEventSource", "CGEventTypes", "CGFont", "CGFunction", "CGGeometry", "CGGradient", "CGITUToneMapping", "CGImage", "CGLayer", "CGPDFArray", "CGPDFContentStream", "CGPDFContext", "CGPDFDictionary", "CGPDFDocument", "CGPDFObject", "CGPDFOperatorTable", "CGPDFPage", "CGPDFScanner", "CGPDFStream", "CGPDFString", "CGPSConverter", "CGPath", "CGPattern", "CGRemoteOperation", "CGSession", "CGShading", "CGToneMapping", "CGWindow", "CGWindowLevel"] }
default = CGAffineTransform, CGBase, CGBitmapContext, CGColor, CGColorConversionInfo, CGColorSpace, CGContext, CGConvertColorDataWithFormat, CGDataConsumer, CGDataProvider, CGDirectDisplay, CGDirectDisplayMetal, CGDirectPalette, CGDisplayConfiguration, CGDisplayFade, CGDisplayStream, CGEXRToneMappingGamma, CGError, CGEvent, CGEventSource, CGEventTypes, CGFont, CGFunction, CGGeometry, CGGradient, CGITUToneMapping, CGImage, CGLayer, CGPDFArray, CGPDFContentStream, CGPDFContext, CGPDFDictionary, CGPDFDocument, CGPDFObject, CGPDFOperatorTable, CGPDFPage, CGPDFScanner, CGPDFStream, CGPDFString, CGPSConverter, CGPath, CGPattern, CGRemoteOperation, CGSession, CGShading, CGToneMapping, CGWindow, CGWindowLevel, bitflags, block2, libc, objc2, objc2-metal, std

These default features are set whenever objc2-core-graphics is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std
bitflags default CGDirectDisplay CGDisplayConfiguration CGEventTypes CGGradient CGImage CGPDFDocument CGRemoteOperation CGWindow

Enables bitflags

block2 default

Enables block2

Affects CGPath::CGPathApplyBlock, CGPath::CGPathApplyWithBlock, CGDisplayStream::CGDisplayStreamFrameAvailableHandler, CGPDFArray::CGPDFArrayApplierBlock, CGPDFArray::CGPDFArrayApplyBlock, CGPDFDictionary::CGPDFDictionaryApplierBlock, CGPDFDictionary::CGPDFDictionaryApplyBlock, CGDisplayStream::CGDisplayStreamCreate

libc default

Enables libc

Affects CGDataProvider::CGDataProviderSkipForwardCallback, CGDataProvider::CGDataProviderSequentialCallbacks, CGDataProvider::CGDataProviderGetBytesAtPositionCallback, CGDataProvider::CGDataProviderDirectCallbacks, CGDataProvider::CGDataProviderCreateSequential, CGDataProvider::CGDataProviderCreateDirect, CGDirectDisplay::CGDisplayIsCaptured, CGDirectDisplay::CGDisplayBestModeForParameters, CGDirectDisplay::CGDisplayBestModeForParametersAndRefreshRate, CGDisplayFade::CGDisplayFadeOperationInProgress, CGEventTypes::CGEventTapInformation, CGRemoteOperation::CGCursorIsVisible, CGRemoteOperation::CGCursorIsDrawnInFramebuffer, CGDisplayConfiguration::CGDisplayIsActive, CGDisplayConfiguration::CGDisplayIsAsleep, CGDisplayConfiguration::CGDisplayIsOnline, CGDisplayConfiguration::CGDisplayIsMain, CGDisplayConfiguration::CGDisplayIsBuiltin, CGDisplayConfiguration::CGDisplayIsInMirrorSet, CGDisplayConfiguration::CGDisplayIsAlwaysInMirrorSet

objc2 default

Enables objc2, objc2 of objc2-core-foundation and optional objc2-io-surface

Affects CGDirectDisplayMetal::CGDirectDisplayCopyCurrentMetalDevice

objc2-io-surface

Enables objc2-io-surface

Affects CGDisplayStream::CGDisplayStreamFrameAvailableHandler, CGDisplayStream::CGDisplayStreamCreate

objc2-metal default

Enables objc2-metal

Affects CGDirectDisplayMetal::CGDirectDisplayCopyCurrentMetalDevice

CGAffineTransform default

Enables CFCGTypes of objc2-core-foundation

CGBase CGBitmapContext default
CGColor default

Enables CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

Affects CGContext::CGContextSetFillColorWithColor, CGContext::CGContextSetStrokeColorWithColor, CGContext::CGContextSetShadowWithColor

CGColorConversionInfo default

Enables CFBase, CFDictionary and CFError of objc2-core-foundation

CGColorSpace default

Enables CFBase, CFCGTypes and CFData of objc2-core-foundation

Affects CGColor::CGColorCreate, CGColor::CGColorCreateCopyByMatchingToColorSpace, CGColor::CGColorGetColorSpace, CGColorConversionInfo::CGColorConversionInfoCreate, CGColorConversionInfo::CGColorConversionInfoCreateWithOptions, CGContext::CGContextSetFillColorSpace, CGContext::CGContextSetStrokeColorSpace, CGContext::CGContextSetRenderingIntent, CGGradient::CGGradientCreateWithColorComponents, CGGradient::CGGradientCreateWithColors, CGImage::CGImageCreateCopyWithColorSpace, CGImage::CGImageGetColorSpace, CGImage::CGImageGetRenderingIntent, CGBitmapContext::CGBitmapContextCreateWithData, CGBitmapContext::CGBitmapContextCreate, CGBitmapContext::CGBitmapContextGetColorSpace, CGColor::CGColorCreateWithPattern, CGColorConversionInfo::CGColorConversionInfoCreateForToneMapping, CGConvertColorDataWithFormat::CGColorDataFormat, CGConvertColorDataWithFormat::CGConvertColorDataWithFormat

CGContext default

Enables CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

Affects CGBitmapContext::CGBitmapContextGetData, CGBitmapContext::CGBitmapContextGetWidth, CGBitmapContext::CGBitmapContextGetHeight, CGBitmapContext::CGBitmapContextGetBitsPerComponent, CGBitmapContext::CGBitmapContextGetBitsPerPixel, CGBitmapContext::CGBitmapContextGetBytesPerRow, CGDirectDisplay::CGDisplayGetDrawingContext, CGLayer::CGLayerCreateWithContext, CGLayer::CGLayerGetContext, CGLayer::CGContextDrawLayerInRect, CGLayer::CGContextDrawLayerAtPoint, CGPDFContext::CGPDFContextCreateWithURL, CGPDFContext::CGPDFContextClose, CGPDFContext::CGPDFContextBeginPage, CGPDFContext::CGPDFContextEndPage, CGPDFContext::CGPDFContextAddDocumentMetadata, CGPDFContext::CGPDFContextSetPageTagStructureTree, CGPDFContext::CGPDFContextSetURLForRect, CGPDFContext::CGPDFContextAddDestinationAtPoint, CGPDFContext::CGPDFContextSetDestinationForRect

CGConvertColorDataWithFormat default

Enables CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

CGDataConsumer default

Enables CFBase, CFData and CFURL of objc2-core-foundation

Affects CGPDFContext::CGPDFContextCreate, CGPSConverter::CGPSConverterConvert

CGDataProvider default

Enables CFBase, CFData and CFURL of objc2-core-foundation

Affects CGColorSpace::CGColorSpaceCreateICCBased, CGFont::CGFontCreateWithDataProvider, CGImage::CGImageMaskCreate, CGImage::CGImageGetDataProvider, CGPDFDocument::CGPDFDocumentCreateWithProvider, CGImage::CGImageCreate, CGImage::CGImageCreateWithJPEGDataProvider, CGImage::CGImageCreateWithPNGDataProvider, CGImage::CGImageCreateWithContentHeadroom, CGPSConverter::CGPSConverterConvert

CGDirectDisplay default = bitflags

Enables CFArray, CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

Affects CGDisplayConfiguration::CGDisplayReconfigurationCallBack, CGDisplayConfiguration::CGDisplayMirrorsDisplay, CGDisplayConfiguration::CGDisplayPrimaryDisplay, CGDisplayConfiguration::CGDisplayUnitNumber, CGDisplayConfiguration::CGDisplayVendorNumber, CGDisplayConfiguration::CGDisplayModelNumber, CGDisplayConfiguration::CGDisplaySerialNumber, CGDisplayConfiguration::CGDisplayScreenSize, CGDisplayConfiguration::CGDisplayRotation, CGDisplayConfiguration::CGConfigureDisplayOrigin, CGDisplayConfiguration::CGConfigureDisplayWithDisplayMode, CGDisplayConfiguration::CGConfigureDisplayMirrorOfDisplay, CGDisplayConfiguration::CGDisplayRegisterReconfigurationCallback, CGDisplayConfiguration::CGDisplayRemoveReconfigurationCallback, CGDisplayConfiguration::CGDisplayIsActive, CGDisplayConfiguration::CGDisplayIsAsleep, CGDirectDisplayMetal::CGDirectDisplayCopyCurrentMetalDevice, CGDisplayStream::CGDisplayStreamCreate

CGDirectDisplayMetal CGDirectPalette default
CGDisplayConfiguration default = bitflags

Enables CFCGTypes and CFDictionary of objc2-core-foundation

Affects CGDisplayFade::CGConfigureDisplayFadeEffect

CGDisplayFade default
CGDisplayStream default

Enables CFBase, CFCGTypes, CFDictionary and CFRunLoop of objc2-core-foundation

CGEXRToneMappingGamma default

Enables CFBase of objc2-core-foundation

CGError default

Affects CGDirectDisplay::CGGetDisplaysWithPoint, CGDirectDisplay::CGGetDisplaysWithRect, CGDirectDisplay::CGGetDisplaysWithOpenGLDisplayMask, CGDirectDisplay::CGGetActiveDisplayList, CGDirectDisplay::CGGetOnlineDisplayList, CGDirectDisplay::CGDisplaySetDisplayMode, CGDirectDisplay::CGSetDisplayTransferByFormula, CGDirectDisplay::CGGetDisplayTransferByFormula, CGDirectDisplay::CGSetDisplayTransferByTable, CGDirectDisplay::CGGetDisplayTransferByTable, CGDirectDisplay::CGSetDisplayTransferByByteTable, CGDirectDisplay::CGDisplayCapture, CGDirectDisplay::CGDisplayCaptureWithOptions, CGDirectDisplay::CGDisplayRelease, CGDirectDisplay::CGCaptureAllDisplays, CGDirectDisplay::CGCaptureAllDisplaysWithOptions, CGDisplayConfiguration::CGBeginDisplayConfiguration, CGDisplayConfiguration::CGCancelDisplayConfiguration, CGDisplayConfiguration::CGCompleteDisplayConfiguration, CGDisplayFade::CGAcquireDisplayFadeReservation

CGEvent default

Enables CFBase, CFCGTypes, CFData and CFMachPort of objc2-core-foundation

CGEventSource default

Enables CFBase and CFDate of objc2-core-foundation

CGEventTypes default = bitflags

Affects CGEvent::CGEventCreate, CGEvent::CGEventCreateData, CGEvent::CGEventCreateFromData, CGEvent::CGEventCreateMouseEvent, CGEvent::CGEventCreateScrollWheelEvent2, CGEvent::CGEventCreateCopy, CGEvent::CGEventCreateSourceFromEvent, CGEvent::CGEventSetSource, CGEvent::CGEventGetType, CGEvent::CGEventSetType, CGEvent::CGEventGetTimestamp, CGEvent::CGEventSetTimestamp, CGEvent::CGEventGetLocation, CGEvent::CGEventGetUnflippedLocation, CGEvent::CGEventSetLocation, CGEvent::CGEventGetFlags, CGEventSource::CGEventSourceCreate, CGEventSource::CGEventSourceGetKeyboardType, CGEventSource::CGEventSourceSetKeyboardType, CGEventSource::CGEventSourceGetPixelsPerLine

CGFont default

Enables CFArray, CFBase, CFCGTypes, CFData and CFDictionary of objc2-core-foundation

Affects CGContext::CGContextSetFont, CGContext::CGContextShowGlyphsAtPositions, CGContext::CGContextShowGlyphs, CGContext::CGContextShowGlyphsAtPoint, CGContext::CGContextShowGlyphsWithAdvances

CGFunction default

Enables CFBase and CFCGTypes of objc2-core-foundation

Affects CGShading::CGShadingCreateAxial, CGShading::CGShadingCreateRadial

CGGeometry default

Enables CFCGTypes and CFDictionary of objc2-core-foundation

CGGradient default = bitflags

Enables CFArray, CFBase and CFCGTypes of objc2-core-foundation

Affects CGContext::CGContextDrawLinearGradient, CGContext::CGContextDrawRadialGradient, CGContext::CGContextDrawConicGradient

CGITUToneMapping default

Enables CFBase of objc2-core-foundation

CGImage default = bitflags

Enables CFBase and CFCGTypes of objc2-core-foundation

Affects CGColorConversionInfo::CGColorBufferFormat, CGColorConversionInfo::CGColorConversionInfoConvertData, CGContext::CGContextClipToMask, CGContext::CGContextDrawImage, CGContext::CGContextDrawTiledImage, CGDirectDisplay::CGDisplayCreateImage, CGDirectDisplay::CGDisplayCreateImageForRect, CGWindow::CGWindowListCreateImage, CGWindow::CGWindowListCreateImageFromArray, CGBitmapContext::CGBitmapContextGetAlphaInfo, CGBitmapContext::CGBitmapContextGetBitmapInfo, CGBitmapContext::CGBitmapContextCreateImage, CGContext::CGContextDrawImageApplyingToneMapping, CGConvertColorDataWithFormat::CGColorDataFormat, CGConvertColorDataWithFormat::CGConvertColorDataWithFormat

CGLayer default

Enables CFBase, CFCGTypes and CFDictionary of objc2-core-foundation

CGPDFArray default

Enables CFCGTypes of objc2-core-foundation

Affects CGPDFDictionary::CGPDFDictionaryGetArray, CGPDFDocument::CGPDFDocumentGetID, CGPDFScanner::CGPDFScannerPopArray

CGPDFContentStream default

Enables CFArray of objc2-core-foundation

Affects CGPDFScanner::CGPDFScannerGetContentStream, CGPDFScanner::CGPDFScannerCreate

CGPDFContext default

Enables CFBase, CFCGTypes, CFData, CFDictionary and CFURL of objc2-core-foundation

CGPDFDictionary default

Enables CFCGTypes of objc2-core-foundation

Affects CGPDFArray::CGPDFArrayGetDictionary, CGPDFDocument::CGPDFDocumentGetCatalog, CGPDFDocument::CGPDFDocumentGetInfo, CGPDFPage::CGPDFPageGetDictionary, CGPDFScanner::CGPDFScannerPopDictionary, CGPDFStream::CGPDFStreamGetDictionary, CGPDFContentStream::CGPDFContentStreamCreateWithStream, CGPDFContext::CGPDFContextSetParentTree, CGPDFContext::CGPDFContextSetIDTree

CGPDFDocument default = bitflags

Enables CFBase, CFCGTypes, CFDictionary and CFURL of objc2-core-foundation

Affects CGContext::CGContextDrawPDFDocument, CGPDFPage::CGPDFPageGetDocument

CGPDFObject default

Enables CFCGTypes of objc2-core-foundation

Affects CGPDFArray::CGPDFArrayGetObject, CGPDFArray::CGPDFArrayGetBoolean, CGPDFArray::CGPDFArrayGetInteger, CGPDFArray::CGPDFArrayGetNumber, CGPDFContentStream::CGPDFContentStreamGetResource, CGPDFDictionary::CGPDFDictionaryGetObject, CGPDFDictionary::CGPDFDictionaryGetBoolean, CGPDFDictionary::CGPDFDictionaryGetInteger, CGPDFDictionary::CGPDFDictionaryGetNumber, CGPDFDictionary::CGPDFDictionaryApplierFunction, CGPDFDictionary::CGPDFDictionaryApplyFunction, CGPDFScanner::CGPDFScannerPopObject, CGPDFScanner::CGPDFScannerPopBoolean, CGPDFScanner::CGPDFScannerPopInteger, CGPDFScanner::CGPDFScannerPopNumber, CGPDFArray::CGPDFArrayApplierBlock, CGPDFArray::CGPDFArrayApplyBlock, CGPDFDictionary::CGPDFDictionaryApplierBlock, CGPDFDictionary::CGPDFDictionaryApplyBlock

CGPDFOperatorTable default

Affects CGPDFScanner::CGPDFScannerCreate

CGPDFPage default

Enables CFBase and CFCGTypes of objc2-core-foundation

Affects CGContext::CGContextDrawPDFPage, CGPDFContentStream::CGPDFContentStreamCreateWithPage, CGPDFDocument::CGPDFDocumentGetPage

CGPDFScanner default

Enables CFCGTypes of objc2-core-foundation

Affects CGPDFOperatorTable::CGPDFOperatorCallback, CGPDFOperatorTable::CGPDFOperatorTableSetCallback

CGPDFStream default

Enables CFData of objc2-core-foundation

Affects CGPDFArray::CGPDFArrayGetStream, CGPDFDictionary::CGPDFDictionaryGetStream, CGPDFScanner::CGPDFScannerPopStream, CGPDFContentStream::CGPDFContentStreamCreateWithStream

CGPDFString default

Enables CFBase and CFDate of objc2-core-foundation

Affects CGPDFArray::CGPDFArrayGetString, CGPDFDictionary::CGPDFDictionaryGetString, CGPDFScanner::CGPDFScannerPopString

CGPSConverter default

Enables CFBase and CFDictionary of objc2-core-foundation

CGPath default

Enables CFArray, CFBase and CFCGTypes of objc2-core-foundation

Affects CGContext::CGContextSetLineCap, CGContext::CGContextSetLineJoin, CGContext::CGContextAddPath, CGContext::CGContextCopyPath

CGPattern default

Enables CFBase and CFCGTypes of objc2-core-foundation

Affects CGColor::CGColorGetPattern, CGContext::CGContextSetFillPattern, CGContext::CGContextSetStrokePattern, CGColor::CGColorCreateWithPattern

CGRemoteOperation default = bitflags

Enables CFCGTypes, CFDate and CFMachPort of objc2-core-foundation

Affects CGEvent::CGEventCreateKeyboardEvent, CGEventSource::CGEventSourceKeyState, CGEventSource::CGEventSourceSetLocalEventsFilterDuringSuppressionState, CGEventSource::CGEventSourceGetLocalEventsFilterDuringSuppressionState

CGSession default

Enables CFDictionary of objc2-core-foundation

CGShading default

Enables CFBase and CFCGTypes of objc2-core-foundation

Affects CGContext::CGContextDrawShading

CGToneMapping default

Affects CGColorConversionInfo::CGColorConversionInfoCreateForToneMapping, CGContext::CGContextDrawImageApplyingToneMapping

CGWindow default = bitflags

Enables CFArray, CFBase and CFCGTypes of objc2-core-foundation

Affects CGDirectDisplay::CGShieldingWindowID

CGWindowLevel default

Affects CGDirectDisplay::CGShieldingWindowLevel