forked from core-plot/core-plot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCPTAnnotation.h
More file actions
41 lines (30 loc) · 1.01 KB
/
CPTAnnotation.h
File metadata and controls
41 lines (30 loc) · 1.01 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
#import "CPTDefinitions.h"
/// @file
@class CPTAnnotation;
@class CPTAnnotationHostLayer;
@class CPTLayer;
/**
* @brief An array of annotations.
**/
typedef NSArray<__kindof CPTAnnotation *> *CPTAnnotationArray;
/**
* @brief A mutable array of annotations.
**/
typedef NSMutableArray<__kindof CPTAnnotation *> *CPTMutableAnnotationArray;
@interface CPTAnnotation : NSObject<NSCoding>
@property (nonatomic, readwrite, strong, nullable) CPTLayer *contentLayer;
@property (nonatomic, readwrite, cpt_weak_property, nullable) cpt_weak CPTAnnotationHostLayer *annotationHostLayer;
@property (nonatomic, readwrite, assign) CGPoint contentAnchorPoint;
@property (nonatomic, readwrite, assign) CGPoint displacement;
@property (nonatomic, readwrite, assign) CGFloat rotation;
@end
#pragma mark -
/** @category CPTAnnotation(AbstractMethods)
* @brief CPTAnnotation abstract methods—must be overridden by subclasses.
**/
@interface CPTAnnotation(AbstractMethods)
/// @name Layout
/// @{
-(void)positionContentLayer;
/// @}
@end