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

Draws area fills. More...

#import <CPTFill.h>

+ Inheritance diagram for CPTFill:
+ Collaboration diagram for CPTFill:

Public Class Methods

Factory Methods
(nonnull instancetype) + fillWithColor:
 Creates and returns a new CPTFill instance initialized with a given color. More...
 
(nonnull instancetype) + fillWithGradient:
 Creates and returns a new CPTFill instance initialized with a given gradient. More...
 
(nonnull instancetype) + fillWithImage:
 Creates and returns a new CPTFill instance initialized with a given image. More...
 
- Public Class Methods inherited from NSObject
(id+ alloc
 
(Class+ class
 
(void) + initialize
 
(void) + load
 
(id+ new
 
- Public Class Methods inherited from <NSKeyValueBindingCreation>
(void) + exposeBinding:
 
- Public Class Methods inherited from <NSSecureCoding>
(BOOL+ supportsSecureCoding:
 

Public Instance Methods

(void) - fillRect:inContext: [implementation]
 Draws the gradient into the given graphics context inside the provided rectangle. More...
 
(void) - fillPathInContext: [implementation]
 Draws the gradient into the given graphics context clipped to the current drawing path. More...
 
Initialization
(nonnull instancetype) - initWithColor:
 Initializes a newly allocated CPTFill object with the provided color. More...
 
(nonnull instancetype) - initWithGradient:
 Initializes a newly allocated CPTFill object with the provided gradient. More...
 
(nonnull instancetype) - initWithImage:
 Initializes a newly allocated CPTFill object with the provided image. More...
 
Drawing
(void) - fillRect:inContext:
 
(void) - fillPathInContext:
 
- 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 <NSKeyValueBindingCreation>
(NSArray *) - exposedBindings
 
(Class- valueClassForBinding:
 
(void) - bind:toObject:withKeyPath:options:
 
(NSArray *) - optionDescriptionsForBinding:
 
(NSDictionary *) - infoForBinding:
 
(void) - unbind:
 
- Public Instance Methods inherited from <NSCopying>
(id- copyWithZone:
 
- Public Instance Methods inherited from <NSCoding>
(id- initWithCoder:
 
(void) - encodeWithCoder:
 

Properties

BOOL opaque
 If YES, the fill is completely opaque. More...
 
CGColorRef cgColor
 Returns a CGColorRef describing the fill if the fill can be represented as a color, NULL otherwise. More...
 

Detailed Description

Draws area fills.

CPTFill instances can be used to fill drawing areas with colors (including patterns), gradients, and images. Drawing methods are provided to fill rectangular areas and arbitrary drawing paths.

Method Documentation

◆ fillPathInContext: [1/2]

- (void) fillPathInContext: (nonnull CGContextRef __unused)  context
implementation

Draws the gradient into the given graphics context clipped to the current drawing path.

Parameters
contextThe graphics context to draw into.

Provided by category CPTFill(AbstractMethods).

◆ fillPathInContext: [2/2]

- (void) fillPathInContext: (nonnull CGContextRef context

Provided by category CPTFill(AbstractMethods).

◆ fillRect:inContext: [1/2]

- (void) fillRect: (CGRect __unused)  rect
inContext: (nonnull CGContextRef __unused)  context 
implementation

Draws the gradient into the given graphics context inside the provided rectangle.

Parameters
rectThe rectangle to draw into.
contextThe graphics context to draw into.

Provided by category CPTFill(AbstractMethods).

◆ fillRect:inContext: [2/2]

- (void) fillRect: (CGRect rect
inContext: (nonnull CGContextRef context 

Provided by category CPTFill(AbstractMethods).

◆ fillWithColor:

+ (nonnull instancetype) fillWithColor: (nonnull CPTColor *)  aColor

Creates and returns a new CPTFill instance initialized with a given color.

Parameters
aColorThe color.
Returns
A new CPTFill instance initialized with the given color.

◆ fillWithGradient:

+ (nonnull instancetype) fillWithGradient: (nonnull CPTGradient *)  aGradient

Creates and returns a new CPTFill instance initialized with a given gradient.

Parameters
aGradientThe gradient.
Returns
A new CPTFill instance initialized with the given gradient.

◆ fillWithImage:

+ (nonnull instancetype) fillWithImage: (nonnull CPTImage *)  anImage

Creates and returns a new CPTFill instance initialized with a given image.

Parameters
anImageThe image.
Returns
A new CPTFill instance initialized with the given image.

◆ initWithColor:

- (nonnull instancetype) initWithColor: (nonnull CPTColor *)  aColor

Initializes a newly allocated CPTFill object with the provided color.

Parameters
aColorThe color.
Returns
The initialized CPTFill object.

◆ initWithGradient:

- (nonnull instancetype) initWithGradient: (nonnull CPTGradient *)  aGradient

Initializes a newly allocated CPTFill object with the provided gradient.

Parameters
aGradientThe gradient.
Returns
The initialized CPTFill object.

◆ initWithImage:

- (nonnull instancetype) initWithImage: (nonnull CPTImage *)  anImage

Initializes a newly allocated CPTFill object with the provided image.

Parameters
anImageThe image.
Returns
The initialized CPTFill object.

Property Documentation

◆ cgColor

- (nullable CGColorRef) cgColor
readnonatomicassign

Returns a CGColorRef describing the fill if the fill can be represented as a color, NULL otherwise.

Provided by category CPTFill(AbstractMethods).

◆ opaque

- (BOOL) opaque
readnonatomicassign

If YES, the fill is completely opaque.

Provided by category CPTFill(AbstractMethods).


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