forked from core-plot/core-plot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCPTLegendEntry.h
More file actions
44 lines (34 loc) · 1 KB
/
CPTLegendEntry.h
File metadata and controls
44 lines (34 loc) · 1 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
#import "CPTDefinitions.h"
/// @file
@class CPTLegendEntry;
@class CPTPlot;
@class CPTTextStyle;
/**
* @brief An array of CPTLegendEntry objects.
**/
typedef NSArray<CPTLegendEntry *> CPTLegendEntryArray;
/**
* @brief A mutable array of CPTLegendEntry objects.
**/
typedef NSMutableArray<CPTLegendEntry *> CPTMutableLegendEntryArray;
@interface CPTLegendEntry : NSObject<NSCoding, NSSecureCoding>
/// @name Plot Info
/// @{
@property (nonatomic, readwrite, cpt_weak_property, nullable) CPTPlot *plot;
@property (nonatomic, readwrite, assign) NSUInteger index;
/// @}
/// @name Formatting
/// @{
@property (nonatomic, readwrite, strong, nullable) CPTTextStyle *textStyle;
/// @}
/// @name Layout
/// @{
@property (nonatomic, readwrite, assign) NSUInteger row;
@property (nonatomic, readwrite, assign) NSUInteger column;
@property (nonatomic, readonly) CGSize titleSize;
/// @}
/// @name Drawing
/// @{
-(void)drawTitleInRect:(CGRect)rect inContext:(nonnull CGContextRef)context scale:(CGFloat)scale;
/// @}
@end