Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
#import "CPTPlatformSpecificFunctions.h"
Functions | |
void | CPTPushCGContext (__nonnull CGContextRef newContext) |
Pushes the current AppKit graphics context onto a stack and replaces it with the given Core Graphics context. More... | |
void | CPTPopCGContext (void) |
Pops the top context off the stack and restores it to the AppKit graphics context. More... | |
__nonnull CGColorRef | CPTCreateCGColorFromNSColor (NSColor *__nonnull nsColor) |
Creates a CGColorRef from an NSColor. More... | |
CPTRGBAColor | CPTRGBAColorFromNSColor (NSColor *__nonnull nsColor) |
Creates a CPTRGBAColor from an NSColor. More... | |
CPTNativeImage *__nonnull | CPTQuickLookImage (CGRect rect, __nonnull CPTQuickLookImageBlock renderBlock) |
__nonnull CGColorRef CPTCreateCGColorFromNSColor | ( | NSColor *__nonnull | nsColor | ) |
Creates a CGColorRef from an NSColor.
The caller must release the returned CGColorRef. Pattern colors are not supported.
nsColor | The NSColor. |
void CPTPopCGContext | ( | void | ) |
Pops the top context off the stack and restores it to the AppKit graphics context.
void CPTPushCGContext | ( | __nonnull CGContextRef | newContext | ) |
Pushes the current AppKit graphics context onto a stack and replaces it with the given Core Graphics context.
newContext | The graphics context. |
CPTNativeImage* __nonnull CPTQuickLookImage | ( | CGRect | rect, |
__nonnull CPTQuickLookImageBlock | renderBlock | ||
) |
CPTRGBAColor CPTRGBAColorFromNSColor | ( | NSColor *__nonnull | nsColor | ) |
Creates a CPTRGBAColor from an NSColor.
Pattern colors are not supported.
nsColor | The NSColor. |