Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Draws area fills. More...
#import <CPTFill.h>
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 <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 <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... | |
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.
|
implementation |
Draws the gradient into the given graphics context clipped to the current drawing path.
context | The graphics context to draw into. |
Provided by category CPTFill(AbstractMethods).
- (void) fillPathInContext: | (nonnull CGContextRef) | context |
Provided by category CPTFill(AbstractMethods).
|
implementation |
Draws the gradient into the given graphics context inside the provided rectangle.
rect | The rectangle to draw into. |
context | The graphics context to draw into. |
Provided by category CPTFill(AbstractMethods).
- (void) fillRect: | (CGRect) | rect | |
inContext: | (nonnull CGContextRef) | context | |
Provided by category CPTFill(AbstractMethods).
+ (nonnull instancetype) fillWithColor: | (nonnull CPTColor *) | aColor |
+ (nonnull instancetype) fillWithGradient: | (nonnull CPTGradient *) | aGradient |
+ (nonnull instancetype) fillWithImage: | (nonnull CPTImage *) | anImage |
- (nonnull instancetype) initWithColor: | (nonnull CPTColor *) | aColor |
- (nonnull instancetype) initWithGradient: | (nonnull CPTGradient *) | aGradient |
- (nonnull instancetype) initWithImage: | (nonnull CPTImage *) | anImage |
|
readnonatomicassign |
Returns a CGColorRef describing the fill if the fill can be represented as a color, NULL
otherwise.
Provided by category CPTFill(AbstractMethods).
|
readnonatomicassign |
If YES, the fill is completely opaque.
Provided by category CPTFill(AbstractMethods).