49 float _lineDashesPhase;
57 return [[
self alloc] init];
67 [path appendBezierPathWithOvalInRect:aRect];
79 [path appendBezierPathWithRect:aRect];
84 + (
CPBezierPath)bezierPathWithRoundedRect:(CGRect)aRect xRadius:(
float)xRadius yRadius:(
float)yRadius
88 [path appendBezierPathWithRoundedRect:aRect xRadius:xRadius yRadius:yRadius];
96 + (float)defaultLineWidth
104 + (void)setDefaultLineWidth:(
float)width
112 + (void)fillRect:(CGRect)aRect
120 + (void)strokeRect:(CGRect)aRect
128 + (void)strokeLineFromPoint:(CGPoint)point1 toPoint:(CGPoint)point2
132 [path moveToPoint:point1];
133 [path lineToPoint:point2];
143 if (
self = [super
init])
146 _lineWidth = [[
self class] defaultLineWidth];
147 _lineDashesPhase = 0;
157 - (void)moveToPoint:(CGPoint)point
165 - (void)lineToPoint:(CGPoint)point
173 - (void)curveToPoint:(CGPoint)endPoint controlPoint1:(CGPoint)controlPoint1 controlPoint2:(CGPoint)controlPoint2
175 CGPathAddCurveToPoint(_path, nil, controlPoint1.x, controlPoint1.y, controlPoint2.x, controlPoint2.y, endPoint.x, endPoint.y);
186 - (CGRect)controlPointBounds
231 - (void)getLineDash:(CPArrayRef)patternRef count:(NSInteger)count phase:(CGFloatRef)phaseRef
239 - (void)getLineDash:(CPArrayRef)patternRef phase:(CGFloatRef)phaseRef
242 @deref(patternRef) = [_lineDashes copy];
244 @deref(phaseRef) = _lineDashesPhase;
250 - (void)setLineDash:(CPArray)aPattern count:(NSInteger)count phase:(CGFloat)aPhase
261 - (void)setLineDash:(CPArray)aPattern phase:(CGFloat)aPhase
263 _lineDashes = aPattern;
264 _lineDashesPhase = aPhase;
278 - (void)setLineWidth:(
float)lineWidth
280 _lineWidth = lineWidth;
286 - (unsigned)elementCount
302 - (CGPoint)currentPoint
310 - (void)appendBezierPathWithPoints:(CPArray)points count:(
unsigned)count
318 - (void)appendBezierPathWithRect:(CGRect)rect
326 - (void)appendBezierPathWithOvalInRect:(CGRect)rect
334 - (void)appendBezierPathWithRoundedRect:(CGRect)rect xRadius:(
float)xRadius yRadius:(
float)yRadius
339 - (void)appendBezierPathWithArcFromPoint:(CGPoint)fromPoint toPoint:(CGPoint)toPoint radius:(
float)radius
355 - (void)removeAllPoints
function CGPathWithRoundedRectangleInRect(aRect, xRadius, yRadius, ne, se, sw, nw)
CPGraphicsContext currentContext()
function CGPathGetBoundingBox(aPath)
function CGPathCloseSubpath(aPath)
CGRect controlPointBounds()
void setLineDash:phase:(CPArray aPattern, [phase] CGFloat aPhase)
CPBezierPath bezierPathWithRect:(CGRect aRect)
function CGContextStrokePath(aContext)
function CGContextSetLineWidth(aContext, aLineWidth)
function CGContextClosePath(aContext)
function CGPathMoveToPoint(aPath, aTransform, x, y)
function CGPathAddLines(aPath, aTransform, points, count)
function CGContextSetLineDash(aContext, aPhase, someDashes)
function CGPathAddCurveToPoint(aPath, aTransform, cp1x, cp1y, cp2x, cp2y, x, y)
function CGContextAddPath(aContext, aPath)
function CGPathWithEllipseInRect(aRect)
function CGPathIsEmpty(aPath)
void getLineDash:phase:(CPArrayRef patternRef, [phase] CGFloatRef phaseRef)
function CGContextBeginPath(aContext)
function CGPathCreateMutable()
function CGPathAddRect(aPath, aTransform, aRect)
function CGPathGetCurrentPoint(aPath)
CPBezierPath bezierPath()
function CGPathAddLineToPoint(aPath, aTransform, x, y)
function CGContextFillPath(aContext)
function CGPathAddPath(aPath, aTransform, anotherPath)
function CGPathAddArcToPoint(aPath, aTransform, x1, y1, x2, y2, aRadius)