Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTPlatformSpecificFunctions.h
Go to the documentation of this file.
1 #import "CPTDefinitions.h"
3 
5 
6 #if __cplusplus
7 extern "C" {
8 #endif
9 
12 void CPTPushCGContext(__nonnull CGContextRef context);
13 void CPTPopCGContext(void);
14 
16 
19 __nonnull CGColorRef CPTCreateCGColorFromNSColor(NSColor *__nonnull nsColor) CF_RETURNS_RETAINED;
20 CPTRGBAColor CPTRGBAColorFromNSColor(NSColor *__nonnull nsColor);
21 
23 
26 CPTNativeImage *__nonnull CPTQuickLookImage(CGRect rect, __nonnull CPTQuickLookImageBlock renderBlock);
27 
29 
30 #if __cplusplus
31 }
32 #endif
CGColorRef
typedef CGColorRef
NSColor
CPTPushCGContext
void CPTPushCGContext(__nonnull CGContextRef context)
Pushes the current AppKit graphics context onto a stack and replaces it with the given Core Graphics ...
Definition: CPTPlatformSpecificFunctions.m:15
CPTCreateCGColorFromNSColor
__nonnull CGColorRef CPTCreateCGColorFromNSColor(NSColor *__nonnull nsColor) CF_RETURNS_RETAINED
Creates a CGColorRef from an NSColor.
Definition: CPTPlatformSpecificFunctions.m:78
CPTRGBAColor
RGBA color for gradients.
Definition: CPTDefinitions.h:174
CPTPlatformSpecificDefines.h
CPTPopCGContext
void CPTPopCGContext(void)
Pops the top context off the stack and restores it to the AppKit graphics context.
Definition: CPTPlatformSpecificFunctions.m:43
CPTRGBAColorFromNSColor
CPTRGBAColor CPTRGBAColorFromNSColor(NSColor *__nonnull nsColor)
Creates a CPTRGBAColor from an NSColor.
Definition: CPTPlatformSpecificFunctions.m:94
CPTDefinitions.h
CPTQuickLookImage
CPTNativeImage *__nonnull CPTQuickLookImage(CGRect rect, __nonnull CPTQuickLookImageBlock renderBlock)
Definition: CPTPlatformSpecificFunctions.m:113
CPTQuickLookImageBlock
void(^ CPTQuickLookImageBlock)(__nonnull CGContextRef context, CGFloat scale, CGRect bounds)
Render a Quick Look image into the given context.
Definition: CPTDefinitions.h:286