|
Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Go to the documentation of this file.
11 typedef struct _CPTGradientElement {
41 @property (nonatomic, readonly, getter = isOpaque)
BOOL opaque;
51 @property (nonatomic, readwrite, assign) CGFloat
angle;
57 @property (nonatomic, readwrite, assign) CGPoint
endAnchor;
62 +(nonnull instancetype)gradientWithBeginningColor:(nonnull
CPTColor *)begin endingColor:(nonnull
CPTColor *)end;
63 +(nonnull instancetype)gradientWithBeginningColor:(nonnull
CPTColor *)begin endingColor:(nonnull
CPTColor *)end beginningPosition:(
CGFloat)beginningPosition endingPosition:(
CGFloat)endingPosition;
struct _CPTGradientElement *__nullable nextElement
Pointer to the next CPTGradientElement in the list (last element == NULL)
Definition: CPTGradient.h:15
CGFloat position
Gradient position (0 ≤ position ≤ 1)
Definition: CPTGradient.h:13
nonnull instancetype unifiedDarkGradient()
Creates and returns a new CPTGradient instance initialized with the unified dark gradient.
Definition: CPTGradient.m:492
nonnull instancetype sourceListSelectedGradient()
Creates and returns a new CPTGradient instance initialized with the source list selected gradient.
Definition: CPTGradient.m:517
nonnull instancetype aquaPressedGradient()
Creates and returns a new CPTGradient instance initialized with the Aqua pressed gradient.
Definition: CPTGradient.m:378
nonnull instancetype unifiedSelectedGradient()
Creates and returns a new CPTGradient instance initialized with the unified selected gradient.
Definition: CPTGradient.m:417
CPTGradientType
Enumeration of gradient types.
Definition: CPTGradient.h:31
@ CPTLinearBlendingMode
Linear blending mode.
Definition: CPTGradient.h:23
nonnull instancetype aquaNormalGradient()
Creates and returns a new CPTGradient instance initialized with the Aqua normal gradient.
Definition: CPTGradient.m:339
BOOL opaque
If YES, the gradient is completely opaque.
Definition: CPTGradient.h:41
An immutable color.
Definition: CPTColor.h:3
RGBA color for gradients.
Definition: CPTDefinitions.h:174
nonnull instancetype rainbowGradient()
Creates and returns a new CPTGradient instance initialized with a rainbow gradient.
Definition: CPTGradient.m:575
nonnull instancetype unifiedPressedGradient()
Creates and returns a new CPTGradient instance initialized with the unified pressed gradient.
Definition: CPTGradient.m:467
A structure representing one node in a linked list of RGBA colors.
Definition: CPTGradient.h:11
CPTGradientType gradientType
The gradient type.
Definition: CPTGradient.h:46
@ CPTChromaticBlendingMode
Chromatic blending mode.
Definition: CPTGradient.h:24
@ CPTInverseChromaticBlendingMode
Inverse chromatic blending mode.
Definition: CPTGradient.h:25
CGPoint startAnchor
The anchor point for starting point of a radial gradient. Defaults to (0.5, 0.5) which centers the gr...
Definition: CPTGradient.h:56
nonnull instancetype aquaSelectedGradient()
Creates and returns a new CPTGradient instance initialized with the Aqua selected gradient.
Definition: CPTGradient.m:292
nonnull instancetype sourceListUnselectedGradient()
Creates and returns a new CPTGradient instance initialized with the source list unselected gradient.
Definition: CPTGradient.m:546
Draws color gradient fills.
Definition: CPTGradient.h:39
CGPoint endAnchor
The anchor point for ending point of a radial gradient. Defaults to (0.5, 0.5) which centers the grad...
Definition: CPTGradient.h:57
nonnull instancetype hydrogenSpectrumGradient()
Creates and returns a new CPTGradient instance initialized with a hydrogen spectrum gradient.
Definition: CPTGradient.m:606
CGFloat angle
The axis angle of an axial gradient, expressed in degrees and measured counterclockwise from the posi...
Definition: CPTGradient.h:51
CPTGradientBlendingMode blendingMode
The color blending mode used to create the gradient.
Definition: CPTGradient.h:45
@ CPTGradientTypeRadial
Radial gradient.
Definition: CPTGradient.h:33
CPTGradientBlendingMode
Enumeration of blending modes.
Definition: CPTGradient.h:22
An immutable color space.
Definition: CPTColorSpace.h:1
CPTRGBAColor color
Color.
Definition: CPTGradient.h:12
@ CPTGradientTypeAxial
Axial gradient.
Definition: CPTGradient.h:32
nonnull instancetype unifiedNormalGradient()
Creates and returns a new CPTGradient instance initialized with the unified normal gradient.
Definition: CPTGradient.m:442