Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Immutable wrapper for various shadow drawing properties. More...
#import <CPTShadow.h>
Public Class Methods | |
Factory Methods | |
(nonnull instancetype) | + shadow |
Creates and returns a new CPTShadow instance. 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 | |
Drawing | |
(void) | - setShadowInContext: |
Sets the shadow properties in the given graphics context. More... | |
Initialization | |
(nonnull instancetype) | - init [implementation] |
Initializes a newly allocated CPTShadow object. 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 <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 <NSMutableCopying> | |
(id) | - mutableCopyWithZone: |
Public Instance Methods inherited from <NSCoding> | |
(id) | - initWithCoder: |
(void) | - encodeWithCoder: |
Properties | |
CGSize | shadowOffset |
The horizontal and vertical offset values, specified using the width and height fields of the CGSize data type. The offsets are not affected by custom transformations. Positive values extend up and to the right. Default is (0.0 , 0.0 ). More... | |
CGFloat | shadowBlurRadius |
The blur radius, measured in the default user coordinate space. A value of 0.0 (the default) indicates no blur, while larger values produce correspondingly larger blurring. This value must not be negative. More... | |
CPTColor * | shadowColor |
The shadow color. If nil (the default), the shadow will not be drawn. More... | |
Immutable wrapper for various shadow drawing properties.
In general, you will want to create a CPTMutableShadow if you want to customize properties.
|
implementation |
Initializes a newly allocated CPTShadow object.
The initialized object will have the following properties:
0.0
, 0.0
)0.0
- (void) setShadowInContext: | (nonnull CGContextRef) | context |
Sets the shadow properties in the given graphics context.
context | The graphics context. |
+ (nonnull instancetype) shadow |
|
readnonatomicassign |
The blur radius, measured in the default user coordinate space. A value of 0.0
(the default) indicates no blur, while larger values produce correspondingly larger blurring. This value must not be negative.
|
readnonatomicassign |
The shadow color. If nil (the default), the shadow will not be drawn.
|
readnonatomicassign |
The horizontal and vertical offset values, specified using the width and height fields of the CGSize data type. The offsets are not affected by custom transformations. Positive values extend up and to the right. Default is (0.0
, 0.0
).