|
Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Go to the documentation of this file.
6 @property (nonatomic, readonly, getter = isOpaque) BOOL
opaque;
9 @property (nonatomic, readonly, nonnull) NSColor *nsColor;
10 #elif TARGET_OS_SIMULATOR || TARGET_OS_IPHONE
36 +(nonnull instancetype)colorWithCGColor:(nonnull
CGColorRef)newCGColor;
38 +(nonnull instancetype)colorWithGenericGray:(
CGFloat)gray;
41 +(nonnull instancetype)colorWithNSColor:(nonnull NSColor *)newNSColor;
42 #elif TARGET_OS_SIMULATOR || TARGET_OS_IPHONE
43 +(nonnull instancetype)colorWithUIColor:(nonnull
UIColor *)newUIColor;
45 +(nonnull instancetype)colorWithNativeColor:(nonnull
CPTNativeColor *)newColor;
51 -(nonnull instancetype)initWithCGColor:(nonnull
CGColorRef)cgColor NS_DESIGNATED_INITIALIZER;
53 -(nullable instancetype)initWithCoder:(nonnull
NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
56 -(nonnull instancetype)initWithNSColor:(nonnull NSColor *)newNSColor NS_DESIGNATED_INITIALIZER;
57 #elif TARGET_OS_SIMULATOR || TARGET_OS_IPHONE
58 -(nonnull instancetype)initWithUIColor:(nonnull
UIColor *)newUIColor NS_DESIGNATED_INITIALIZER;
60 -(nonnull instancetype)initWithNativeColor:(nonnull
CPTNativeColor *)newColor;
62 -(nonnull instancetype)colorWithAlphaComponent:(
CGFloat)alpha;
nonnull instancetype magentaColor()
Returns a shared instance of CPTColor initialized with a fully opaque magenta color.
Definition: CPTColor.m:326
nonnull instancetype whiteColor()
Returns a shared instance of CPTColor initialized with a fully opaque white color.
Definition: CPTColor.m:154
nonnull instancetype brownColor()
Returns a shared instance of CPTColor initialized with a fully opaque brown color.
Definition: CPTColor.m:372
CPTNativeColor * nativeColor
The platform-native color to wrap around.
Definition: CPTColor.h:13
nonnull instancetype lightGrayColor()
Returns a shared instance of CPTColor initialized with a fully opaque 67% gray color.
Definition: CPTColor.m:170
An immutable color.
Definition: CPTColor.h:3
nonnull instancetype grayColor()
Returns a shared instance of CPTColor initialized with a fully opaque 50% gray color.
Definition: CPTColor.m:186
CGColorRef cgColor
The CGColorRef to wrap around.
Definition: CPTColor.h:5
nonnull instancetype greenColor()
Returns a shared instance of CPTColor initialized with a fully opaque green color.
Definition: CPTColor.m:253
nonnull instancetype purpleColor()
Returns a shared instance of CPTColor initialized with a fully opaque purple color.
Definition: CPTColor.m:356
nonnull instancetype cyanColor()
Returns a shared instance of CPTColor initialized with a fully opaque cyan color.
Definition: CPTColor.m:291
BOOL opaque
If YES, the color is completely opaque.
Definition: CPTColor.h:6
nonnull instancetype blackColor()
Returns a shared instance of CPTColor initialized with a fully opaque black color.
Definition: CPTColor.m:218
nonnull instancetype blueColor()
Returns a shared instance of CPTColor initialized with a fully opaque blue color.
Definition: CPTColor.m:272
nonnull instancetype yellowColor()
Returns a shared instance of CPTColor initialized with a fully opaque yellow color.
Definition: CPTColor.m:310
nonnull instancetype redColor()
Returns a shared instance of CPTColor initialized with a fully opaque red color.
Definition: CPTColor.m:234
nonnull instancetype clearColor()
Returns a shared instance of CPTColor initialized with a fully transparent color.
Definition: CPTColor.m:132
nonnull instancetype darkGrayColor()
Returns a shared instance of CPTColor initialized with a fully opaque 33% gray color.
Definition: CPTColor.m:202
UIColor * uiColor
The UIColor to wrap around.
Definition: CPTColor.h:11
nonnull instancetype orangeColor()
Returns a shared instance of CPTColor initialized with a fully opaque orange color.
Definition: CPTColor.m:340