Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTColorSpace Class Reference

An immutable color space. More...

#import <CPTColorSpace.h>

+ Inheritance diagram for CPTColorSpace:
+ Collaboration diagram for CPTColorSpace:

Public Class Methods

Factory Methods
(nonnull instancetype) + genericRGBSpace
 Returns a shared instance of CPTColorSpace initialized with the standard RGB space. More...
 
- Public Class Methods inherited from NSObject
(id+ alloc
 
(Class+ class
 
(void) + initialize
 
(void) + load
 
(id+ new
 
- Public Class Methods inherited from <NSSecureCoding>
(BOOL+ supportsSecureCoding:
 

Public Instance Methods

Initialization
(nonnull instancetype) - initWithCGColorSpace:
 Initializes a newly allocated colorspace object with the specified color space. This is the designated initializer. More...
 
(nullable instancetype) - initWithCoder:
 Returns an object initialized from data in a given unarchiver. More...
 
- Public Instance Methods inherited from NSObject
(Class- classForCoder
 
(id- copy
 
(void) - dealloc
 
(void) - finalize
 
(id- init
 
(id- mutableCopy
 
- Public Instance Methods inherited from <NSObject>
(NSString *) - description
 
(NSUInteger- hash
 
(BOOL- isEqual:
 
- Public Instance Methods inherited from <NSCoding>
(id- initWithCoder:
 
(void) - encodeWithCoder:
 

Properties

CGColorSpaceRef cgColorSpace
 The CGColorSpaceRef to wrap around. More...
 

Detailed Description

An immutable color space.

An immutable object wrapper class around CGColorSpaceRef.

Method Documentation

◆ genericRGBSpace

+ (nonnull instancetype) genericRGBSpace

Returns a shared instance of CPTColorSpace initialized with the standard RGB space.

The standard RGB space is created by the CGColorSpaceCreateDeviceRGB() function.

Returns
A shared CPTColorSpace object initialized with the standard RGB colorspace.

◆ initWithCGColorSpace:

- (nonnull instancetype) initWithCGColorSpace: (nonnull CGColorSpaceRef colorSpace

Initializes a newly allocated colorspace object with the specified color space. This is the designated initializer.

Parameters
colorSpaceThe color space.
Returns
The initialized CPTColorSpace object.

◆ initWithCoder:

- (nullable instancetype) initWithCoder: (nonnull NSCoder *)  coder

Returns an object initialized from data in a given unarchiver.

Parameters
coderAn unarchiver object.
Returns
An object initialized from data in a given unarchiver.

Property Documentation

◆ cgColorSpace

- (nonnull CGColorSpaceRef) cgColorSpace
readnonatomicassign

The CGColorSpaceRef to wrap around.


The documentation for this class was generated from the following files: