Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTLayerAnnotation.h
Go to the documentation of this file.
1 #import "CPTAnnotation.h"
2 #import "CPTDefinitions.h"
3 
4 @class CPTConstraints;
5 
7 
8 @property (nonatomic, readonly, cpt_weak_property, nullable) CPTLayer *anchorLayer;
9 @property (nonatomic, readwrite, assign) CPTRectAnchor rectAnchor;
10 @property (nonatomic, readwrite, strong, nullable) CPTConstraints *xConstraints;
11 @property (nonatomic, readwrite, strong, nullable) CPTConstraints *yConstraints;
12 
15 -(nonnull instancetype)initWithAnchorLayer:(nonnull CPTLayer *)anchorLayer NS_DESIGNATED_INITIALIZER;
16 -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER;
18 
19 @end
CPTLayerAnnotation::xConstraints
CPTConstraints * xConstraints
The constraints used to position the content layer relative to the reference layer in the x-direction...
Definition: CPTLayerAnnotation.h:10
CPTAnnotation
An annotation positions a content layer relative to some anchor point.
Definition: CPTAnnotation.h:19
CPTConstraints
Implements a one-dimensional constrained position within a given numeric range.
Definition: CPTConstraints.h:1
CPTAnnotation.h
CPTRectAnchor
CPTRectAnchor
Locations around the edge of a rectangle.
Definition: CPTDefinitions.h:194
CPTLayerAnnotation
Positions a content layer relative to an anchor point in a reference layer.
Definition: CPTLayerAnnotation.h:7
CPTLayer
Base class for all Core Animation layers in Core Plot.
Definition: CPTLayer.h:83
CPTDefinitions.h
CPTLayerAnnotation::rectAnchor
CPTRectAnchor rectAnchor
The anchor position for the annotation.
Definition: CPTLayerAnnotation.h:9
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
CPTLayerAnnotation::yConstraints
CPTConstraints * yConstraints
The constraints used to position the content layer relative to the reference layer in the y-direction...
Definition: CPTLayerAnnotation.h:11
CPTLayerAnnotation::anchorLayer
CPTLayer * anchorLayer
The reference layer.
Definition: CPTLayerAnnotation.h:8
NSCoder