cappuccino/cappuccino — Issue #1402: CGContextAddLines is missing when canvas is available
Author: btandresen
Created: 2011-11-18 06:35:10+00:00
State: open

The [CGContextAddLines](http://cappuccino.org/learn/documentation/group__coregraphics.html#ga0ca6b203cebf8ac7752c49e8c3300876) function is defined in AppKit/CoreGraphics/CGContext.j, but it's in a conditional so that it's only available when canvas isn't. I don't think there's a fundamental reason why this is the case; looks like it just needs to be implemented in CGContextCanvas.j.

I checked the other functions in these files and found a few others that are missing for canvas:

* [CGContextStrokeRectWithWidth](http://cappuccino.org/learn/documentation/group__coregraphics.html#ga77346891155c2ce6db56dfba94d4a0d4)
* [CGContextAddQuadCurveToPoint](http://cappuccino.org/learn/documentation/group__coregraphics.html#ga4a84c8201ae6dbfd7831d48c6455eced)