Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTLegendEntry.h
Go to the documentation of this file.
1 #import "CPTDefinitions.h"
2 
4 
5 @class CPTLegendEntry;
6 @class CPTPlot;
7 @class CPTTextStyle;
8 
13 
18 
20 
23 @property (nonatomic, readwrite, cpt_weak_property, nullable) CPTPlot *plot;
24 @property (nonatomic, readwrite, assign) NSUInteger index;
26 
29 @property (nonatomic, readwrite, strong, nullable) CPTTextStyle *textStyle;
31 
34 @property (nonatomic, readwrite, assign) NSUInteger row;
35 @property (nonatomic, readwrite, assign) NSUInteger column;
36 @property (nonatomic, readonly) CGSize titleSize;
38 
41 -(void)drawTitleInRect:(CGRect)rect inContext:(nonnull CGContextRef)context scale:(CGFloat)scale;
43 
44 @end
CPTLegendEntryArray
NSArray< CPTLegendEntry * > CPTLegendEntryArray
An array of CPTLegendEntry objects.
Definition: CPTLegendEntry.h:7
CPTLegendEntry::textStyle
CPTTextStyle * textStyle
The text style used to draw the legend entry title.
Definition: CPTLegendEntry.h:29
NSMutableArray
CPTLegendEntry::row
NSUInteger row
The row number where this entry appears in the legend (first row is 0).
Definition: CPTLegendEntry.h:34
CPTLegendEntry
A graph legend entry.
Definition: CPTLegendEntry.h:19
CPTTextStyle
Immutable wrapper for various text style properties.
Definition: CPTTextStyle.h:18
CPTLegendEntry::index
NSUInteger index
The zero-based index of the legend entry for the given plot.
Definition: CPTLegendEntry.h:24
CPTLegendEntry::plot
CPTPlot * plot
The plot associated with this legend entry.
Definition: CPTLegendEntry.h:23
CGContextRef
typedef CGContextRef
CPTDefinitions.h
CGFloat
typedef CGFloat
CPTPlot
An abstract plot class.
Definition: CPTPlot.h:258
CPTLegendEntry::column
NSUInteger column
The column number where this entry appears in the legend (first column is 0).
Definition: CPTLegendEntry.h:35
NSArray
CPTLegendEntry::titleSize
CGSize titleSize
The size of the legend entry title when drawn using the textStyle.
Definition: CPTLegendEntry.h:36
CPTMutableLegendEntryArray
NSMutableArray< CPTLegendEntry * > CPTMutableLegendEntryArray
A mutable array of CPTLegendEntry objects.
Definition: CPTLegendEntry.h:17
cpt_weak_property
#define cpt_weak_property
A custom definition for automatic reference counting (ARC) weak properties that falls back to assign ...
Definition: CPTDefinitions.h:32
CGRect
typedef CGRect
NSSecureCoding-p