|
Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Go to the documentation of this file. 1 #import <Availability.h>
2 #import <TargetConditionals.h>
21 #if TARGET_OS_IPHONE && defined(__IPHONE_5_0) && (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_5_0) && __clang__ && (__clang_major__ >= 3)
22 #define CPT_SDK_SUPPORTS_WEAK 1
23 #elif TARGET_OS_MAC && defined(__MAC_10_7) && (MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_7) && __clang__ && (__clang_major__ >= 3)
24 #define CPT_SDK_SUPPORTS_WEAK 1
26 #define CPT_SDK_SUPPORTS_WEAK 0
29 #if CPT_SDK_SUPPORTS_WEAK
30 #define cpt_weak_property weak
32 #define cpt_weak_property unsafe_unretained
43 #define cpt_deprecated __attribute__((deprecated))
56 #define cpt_unused __unused
66 #define cpt_swift_enum __attribute__((swift_wrapper(enum)))
73 #define cpt_swift_struct __attribute__((swift_wrapper(struct)))
83 #define CPTFloat(x) ((CGFloat)(x))
92 #define CPTPointMake(x, y) CGPointMake((CGFloat)(x), (CGFloat)(y))
101 #define CPTSizeMake(w, h) CGSizeMake((CGFloat)(w), (CGFloat)(h))
112 #define CPTRectMake(x, y, w, h) CGRectMake((CGFloat)(x), (CGFloat)(y), (CGFloat)(w), (CGFloat)(h))
122 #define CPTRectInset(rect, dx, dy) CGRectInset(rect, (CGFloat)(dx), (CGFloat)(dy))
129 #define CPTNAN ((CGFloat)NAN)
174 typedef struct _CPTRGBAColor {
221 typedef struct _CPTEdgeInsets {
@ CPTNumericTypeFloat
Float.
Definition: CPTDefinitions.h:136
@ CPTCoordinateY
Y axis.
Definition: CPTDefinitions.h:166
NSArray< NSNumber * > CPTNumberArray
An array of numbers.
Definition: CPTDefinitions.h:236
NSArray< NSValue * > CPTValueArray
An array of values.
Definition: CPTDefinitions.h:266
@ CPTErrorBarTypeConstantRatio
Constant ratio error bars.
Definition: CPTDefinitions.h:145
NSMutableArray< NSNumber * > CPTMutableNumberArray
A mutable array of numbers.
Definition: CPTDefinitions.h:241
@ CPTAlignmentCenter
Align horizontally to the center.
Definition: CPTDefinitions.h:211
const CPTEdgeInsets CPTEdgeInsetsZero
Defines a set of stretchable image edge insets where all of the values are zero (0).
Definition: CPTDefinitions.m:3
@ CPTRectAnchorBottomLeft
The bottom left corner.
Definition: CPTDefinitions.h:195
NSMutableDictionary< NSString *, id > CPTMutableDictionary
A mutable dictionary with string keys and object values.
Definition: CPTDefinitions.h:281
@ CPTScaleTypeLogModulus
Log-modulus axis scale.
Definition: CPTDefinitions.h:158
@ CPTAlignmentMiddle
Align vertically to the middle.
Definition: CPTDefinitions.h:214
CPTAlignment
Label and constraint alignment constants.
Definition: CPTDefinitions.h:209
@ CPTSignNone
No offset.
Definition: CPTDefinitions.h:186
CGFloat blue
The blue component (0 ≤ blue ≤ 1).
Definition: CPTDefinitions.h:177
@ CPTScaleTypeCategory
Category axis scale.
Definition: CPTDefinitions.h:157
NSMutableArray< NSValue * > CPTMutableValueArray
A mutable array of values.
Definition: CPTDefinitions.h:271
RGBA color for gradients.
Definition: CPTDefinitions.h:174
CPTRectAnchor
Locations around the edge of a rectangle.
Definition: CPTDefinitions.h:194
@ CPTRectAnchorBottom
The bottom center.
Definition: CPTDefinitions.h:196
@ CPTErrorBarTypeCustom
Custom error bars.
Definition: CPTDefinitions.h:144
NSArray< NSString * > CPTStringArray
An array of strings.
Definition: CPTDefinitions.h:256
@ CPTScaleTypeLinear
Linear axis scale.
Definition: CPTDefinitions.h:153
@ CPTRectAnchorRight
The right middle.
Definition: CPTDefinitions.h:199
CGFloat red
The red component (0 ≤ red ≤ 1).
Definition: CPTDefinitions.h:175
@ CPTCoordinateNone
Invalid coordinate value.
Definition: CPTDefinitions.h:168
@ CPTRectAnchorCenter
The center of the rect.
Definition: CPTDefinitions.h:203
@ CPTRectAnchorTopRight
The top right.
Definition: CPTDefinitions.h:202
@ CPTNumericTypeInteger
Integer.
Definition: CPTDefinitions.h:135
CGFloat right
The right inset.
Definition: CPTDefinitions.h:225
CPTSign
Enumeration of label positioning offset directions.
Definition: CPTDefinitions.h:185
@ CPTAlignmentBottom
Align vertically to the bottom.
Definition: CPTDefinitions.h:215
@ CPTNumericTypeDouble
Double.
Definition: CPTDefinitions.h:137
@ CPTRectAnchorLeft
The left middle.
Definition: CPTDefinitions.h:198
NSMutableSet< NSNumber * > CPTMutableNumberSet
A mutable set of numbers.
Definition: CPTDefinitions.h:251
CPTNumericType
Enumeration of numeric types.
Definition: CPTDefinitions.h:134
NSSet< NSNumber * > CPTNumberSet
A set of numbers.
Definition: CPTDefinitions.h:246
CGFloat bottom
The bottom inset.
Definition: CPTDefinitions.h:224
@ CPTRectAnchorTop
The top center.
Definition: CPTDefinitions.h:201
@ CPTSignNegative
Negative offset.
Definition: CPTDefinitions.h:188
@ CPTRectAnchorTopLeft
The top left corner.
Definition: CPTDefinitions.h:200
@ CPTAlignmentTop
Align vertically to the top.
Definition: CPTDefinitions.h:213
NSMutableArray< NSString * > CPTMutableStringArray
A mutable array of strings.
Definition: CPTDefinitions.h:261
CPTCoordinate
Enumeration of axis coordinates.
Definition: CPTDefinitions.h:164
CGFloat green
The green component (0 ≤ green ≤ 1).
Definition: CPTDefinitions.h:176
CGFloat top
The top inset.
Definition: CPTDefinitions.h:222
CGFloat alpha
The alpha component (0 ≤ alpha ≤ 1).
Definition: CPTDefinitions.h:178
@ CPTCoordinateZ
Z axis.
Definition: CPTDefinitions.h:167
@ CPTAlignmentLeft
Align horizontally to the left side.
Definition: CPTDefinitions.h:210
const NSStringDrawingOptions CPTStringDrawingOptions
String drawing options used when measuring and drawing text.
Definition: CPTDefinitions.m:5
@ CPTSignPositive
Positive offset.
Definition: CPTDefinitions.h:187
CPTErrorBarType
Enumeration of error bar types.
Definition: CPTDefinitions.h:143
@ CPTRectAnchorBottomRight
The bottom right corner.
Definition: CPTDefinitions.h:197
@ CPTScaleTypeDateTime
Date/time axis scale (not implemented)
Definition: CPTDefinitions.h:156
@ CPTCoordinateX
X axis.
Definition: CPTDefinitions.h:165
CPTScaleType
Enumeration of axis scale types.
Definition: CPTDefinitions.h:152
@ CPTScaleTypeAngular
Angular axis scale (not implemented)
Definition: CPTDefinitions.h:155
CGFloat left
The left inset.
Definition: CPTDefinitions.h:223
NSDictionary< NSString *, id > CPTDictionary
A dictionary with string keys and object values.
Definition: CPTDefinitions.h:276
@ CPTScaleTypeLog
Logarithmic axis scale.
Definition: CPTDefinitions.h:154
Edge inset distances for stretchable images.
Definition: CPTDefinitions.h:221
@ CPTAlignmentRight
Align horizontally to the right side.
Definition: CPTDefinitions.h:212
void(^ CPTQuickLookImageBlock)(__nonnull CGContextRef context, CGFloat scale, CGRect bounds)
Render a Quick Look image into the given context.
Definition: CPTDefinitions.h:286
@ CPTErrorBarTypeConstantValue
Constant value error bars.
Definition: CPTDefinitions.h:146