56 return [[
self alloc] init];
66 [path appendBezierPathWithOvalInRect:rect];
78 [path appendBezierPathWithRect:rect];
86 + (float)defaultLineWidth
94 + (void)setDefaultLineWidth:(
float)width
102 + (void)fillRect:(CGRect)aRect
110 + (void)strokeRect:(CGRect)aRect
118 + (void)strokeLineFromPoint:(CGPoint)point1 toPoint:(CGPoint)point2
122 [path moveToPoint:point1];
123 [path lineToPoint:point2];
133 if (
self = [super init])
136 _lineWidth = [[
self class] defaultLineWidth];
145 - (void)moveToPoint:(CGPoint)point
153 - (void)lineToPoint:(CGPoint)point
161 - (void)curveToPoint:(CGPoint)endPoint controlPoint1:(CGPoint)controlPoint1 controlPoint2:(CGPoint)controlPoint2
163 CGPathAddCurveToPoint(_path, nil, controlPoint1.x, controlPoint1.y, controlPoint2.x, controlPoint2.y, endPoint.x, endPoint.y);
174 - (CGRect)controlPointBounds
225 - (void)setLineWidth:(
float)lineWidth
227 _lineWidth = lineWidth;
233 - (unsigned)elementCount
249 - (CGPoint)currentPoint
257 - (void)appendBezierPathWithPoints:(
CPArray)points count:(
unsigned)count
265 - (void)appendBezierPathWithRect:(CGRect)rect
273 - (void)appendBezierPathWithOvalInRect:(CGRect)rect
281 - (void)appendBezierPathWithRoundedRect:(CGRect)rect xRadius:(
float)xRadius yRadius:(
float)yRadius
286 - (void)appendBezierPathWithArcFromPoint:(CGPoint)fromPoint toPoint:(CGPoint)toPoint radius:(
float)radius
302 - (void)removeAllPoints