You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
641 B
26 lines
641 B
/*
|
|
|
|
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
|