-
Notifications
You must be signed in to change notification settings - Fork 598
Expand file tree
/
Copy pathCPTLineStyle.h
More file actions
46 lines (37 loc) · 1.36 KB
/
CPTLineStyle.h
File metadata and controls
46 lines (37 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#import "CPTDefinitions.h"
/// @file
@class CPTColor;
@class CPTFill;
@class CPTGradient;
@class CPTLineStyle;
/**
* @brief An array of line styles.
**/
typedef NSArray<CPTLineStyle *> CPTLineStyleArray;
/**
* @brief A mutable array of line styles.
**/
typedef NSMutableArray<CPTLineStyle *> CPTMutableLineStyleArray;
@interface CPTLineStyle : NSObject<NSCopying, NSMutableCopying, NSCoding, NSSecureCoding>
@property (nonatomic, readonly) CGLineCap lineCap;
@property (nonatomic, readonly) CGLineJoin lineJoin;
@property (nonatomic, readonly) CGFloat miterLimit;
@property (nonatomic, readonly) CGFloat lineWidth;
@property (nonatomic, readonly, nullable) CPTNumberArray *dashPattern;
@property (nonatomic, readonly) CGFloat patternPhase;
@property (nonatomic, readonly, nullable) CPTColor *lineColor;
@property (nonatomic, readonly, nullable) CPTFill *lineFill;
@property (nonatomic, readonly, nullable) CPTGradient *lineGradient;
@property (nonatomic, readonly, getter = isOpaque) BOOL opaque;
/// @name Factory Methods
/// @{
+(nonnull instancetype)lineStyle;
+(nonnull instancetype)lineStyleWithStyle:(nullable CPTLineStyle *)lineStyle;
/// @}
/// @name Drawing
/// @{
-(void)setLineStyleInContext:(nonnull CGContextRef)context;
-(void)strokePathInContext:(nonnull CGContextRef)context;
-(void)strokeRect:(CGRect)rect inContext:(nonnull CGContextRef)context;
/// @}
@end