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

Immutable wrapper for various shadow drawing properties. More...

#import <CPTShadow.h>

+ Inheritance diagram for CPTShadow:
+ Collaboration diagram for CPTShadow:

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...
 
CPTColorshadowColor
 The shadow color. If nil (the default), the shadow will not be drawn. More...
 

Detailed Description

Immutable wrapper for various shadow drawing properties.

See also
See Apple’s Quartz 2D and CGContext documentation for more information about each of these properties.

In general, you will want to create a CPTMutableShadow if you want to customize properties.

Method Documentation

◆ init

- (nonnull instancetype) init
implementation

Initializes a newly allocated CPTShadow object.

The initialized object will have the following properties:

Returns
The initialized object.

◆ setShadowInContext:

- (void) setShadowInContext: (nonnull CGContextRef context

Sets the shadow properties in the given graphics context.

Parameters
contextThe graphics context.

◆ shadow

+ (nonnull instancetype) shadow

Creates and returns a new CPTShadow instance.

Returns
A new CPTShadow instance.

Property Documentation

◆ shadowBlurRadius

- (CGFloat) shadowBlurRadius
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.

◆ shadowColor

- (nullable CPTColor *) shadowColor
readnonatomicassign

The shadow color. If nil (the default), the shadow will not be drawn.

◆ shadowOffset

- (CGSize) shadowOffset
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).


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