source: orbit/iOS/Orbit/Orbit/CorePlotHeaders/CPTLayer.h @ e5b8e57

ServoTab_Interfacepyramid
Last change on this file since e5b8e57 was a9059a5, checked in by Steve Castellotti <sc@…>, 10 years ago

Arduino:

  • updated to permit custom setting of Throttle, Yaw, and Pitch

Android:

  • Minor tweak to Configuration location

iOS:

  • Property mode set to 100644
File size: 2.9 KB
Line 
1#import "CPTDefinitions.h"
2#import "CPTResponder.h"
3#import <Foundation/Foundation.h>
4#import <QuartzCore/QuartzCore.h>
5
6@class CPTGraph;
7@class CPTShadow;
8
9/// @name Layout
10/// @{
11
12/** @brief Notification sent by all layers when the layer @link CALayer::bounds bounds @endlink change.
13 *  @ingroup notification
14 **/
15extern NSString *const CPTLayerBoundsDidChangeNotification;
16
17/// @}
18
19@interface CPTLayer : CALayer<CPTResponder> {
20    @private
21    CGFloat paddingLeft;
22    CGFloat paddingTop;
23    CGFloat paddingRight;
24    CGFloat paddingBottom;
25    BOOL masksToBorder;
26    CPTShadow *shadow;
27    BOOL renderingRecursively;
28    BOOL useFastRendering;
29    __cpt_weak CPTGraph *graph;
30    CGPathRef outerBorderPath;
31    CGPathRef innerBorderPath;
32    id<NSCopying, NSCoding, NSObject> identifier;
33}
34
35/// @name Graph
36/// @{
37@property (nonatomic, readwrite, cpt_weak_property) __cpt_weak CPTGraph *graph;
38/// @}
39
40/// @name Padding
41/// @{
42@property (nonatomic, readwrite) CGFloat paddingLeft;
43@property (nonatomic, readwrite) CGFloat paddingTop;
44@property (nonatomic, readwrite) CGFloat paddingRight;
45@property (nonatomic, readwrite) CGFloat paddingBottom;
46/// @}
47
48/// @name Drawing
49/// @{
50@property (readwrite, assign) CGFloat contentsScale;
51@property (nonatomic, readonly, assign) BOOL useFastRendering;
52@property (nonatomic, readwrite, copy) CPTShadow *shadow;
53/// @}
54
55/// @name Masking
56/// @{
57@property (nonatomic, readwrite, assign) BOOL masksToBorder;
58@property (nonatomic, readwrite, assign) CGPathRef outerBorderPath;
59@property (nonatomic, readwrite, assign) CGPathRef innerBorderPath;
60@property (nonatomic, readonly, assign) CGPathRef maskingPath;
61@property (nonatomic, readonly, assign) CGPathRef sublayerMaskingPath;
62/// @}
63
64/// @name Identification
65/// @{
66@property (nonatomic, readwrite, copy) id<NSCopying, NSCoding, NSObject> identifier;
67/// @}
68
69/// @name Layout
70/// @{
71@property (readonly) NSSet *sublayersExcludedFromAutomaticLayout;
72/// @}
73
74/// @name Initialization
75/// @{
76-(id)initWithFrame:(CGRect)newFrame;
77/// @}
78
79/// @name Drawing
80/// @{
81-(void)renderAsVectorInContext:(CGContextRef)context;
82-(void)recursivelyRenderInContext:(CGContextRef)context;
83-(void)layoutAndRenderInContext:(CGContextRef)context;
84-(NSData *)dataForPDFRepresentationOfLayer;
85/// @}
86
87/// @name Masking
88/// @{
89-(void)applySublayerMaskToContext:(CGContextRef)context forSublayer:(CPTLayer *)sublayer withOffset:(CGPoint)offset;
90-(void)applyMaskToContext:(CGContextRef)context;
91/// @}
92
93/// @name Layout
94/// @{
95-(void)pixelAlign;
96-(void)sublayerMarginLeft:(CGFloat *)left top:(CGFloat *)top right:(CGFloat *)right bottom:(CGFloat *)bottom;
97/// @}
98
99/// @name Information
100/// @{
101-(void)logLayers;
102/// @}
103
104@end
105
106/// @cond
107// for MacOS 10.6 SDK compatibility
108#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
109#else
110#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
111@interface CALayer(CPTExtensions)
112
113@property (readwrite) CGFloat contentsScale;
114
115@end
116#endif
117#endif
118
119/// @endcond
Note: See TracBrowser for help on using the repository browser.