26 lines
641 B
Objective-C
26 lines
641 B
Objective-C
/*
|
|
|
|
Erica Sadun, http://ericasadun.com
|
|
https://github.com/erica/iOS-Drawing/tree/master/C08/Quartz%20Book%20Pack/Bezier
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "RNSVGUIKit.h"
|
|
|
|
#define RNSVGNULLPOINT CGRectNull.origin
|
|
|
|
@interface RNSVGBezierElement : NSObject
|
|
|
|
// Element storage
|
|
@property (nonatomic, assign) CGPathElementType elementType;
|
|
@property (nonatomic, assign) CGPoint point;
|
|
@property (nonatomic, assign) CGPoint controlPoint1;
|
|
@property (nonatomic, assign) CGPoint controlPoint2;
|
|
|
|
// Instance creation
|
|
+ (instancetype)elementWithPathElement:(CGPathElement)element;
|
|
+ (NSArray *)elementsFromCGPath:(CGPathRef)path;
|
|
|
|
@end
|