Lines Matching refs:SkPath
48 JSArray EMSCRIPTEN_KEEPALIVE ToCmds(const SkPath& path) { in ToCmds()
94 SkPath path; in FromCmds()
150 SkPath EMSCRIPTEN_KEEPALIVE NewPath() { in NewPath()
151 return SkPath(); in NewPath()
154 SkPath EMSCRIPTEN_KEEPALIVE CopyPath(const SkPath& a) { in CopyPath()
155 SkPath copy(a); in CopyPath()
159 bool EMSCRIPTEN_KEEPALIVE Equals(const SkPath& a, const SkPath& b) { in Equals()
173 void ApplyArcTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyArcTo()
178 void ApplyClose(SkPath& p) { in ApplyClose()
182 void ApplyConicTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyConicTo()
187 void ApplyCubicTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyCubicTo()
192 void ApplyLineTo(SkPath& p, SkScalar x, SkScalar y) { in ApplyLineTo()
196 void ApplyMoveTo(SkPath& p, SkScalar x, SkScalar y) { in ApplyMoveTo()
200 void ApplyQuadTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2) { in ApplyQuadTo()
210 JSString EMSCRIPTEN_KEEPALIVE ToSVGString(const SkPath& path) { in ToSVGString()
222 SkPath path; in FromSVGString()
233 bool EMSCRIPTEN_KEEPALIVE ApplySimplify(SkPath& path) { in ApplySimplify()
237 bool EMSCRIPTEN_KEEPALIVE ApplyPathOp(SkPath& pathOne, const SkPath& pathTwo, SkPathOp op) { in ApplyPathOp()
241 SkPathOrNull EMSCRIPTEN_KEEPALIVE MakeFromOp(const SkPath& pathOne, const SkPath& pathTwo, SkPathOp… in MakeFromOp()
242 SkPath out; in MakeFromOp()
250 SkPath path; in ResolveBuilder()
261 void EMSCRIPTEN_KEEPALIVE ToCanvas(const SkPath& path, emscripten::val /* Path2D or Canvas*/ ctx) { in ToCanvas()
262 SkPath::Iter iter(path, false); in ToCanvas()
264 SkPath::Verb verb; in ToCanvas()
265 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in ToCanvas()
267 case SkPath::kMove_Verb: in ToCanvas()
270 case SkPath::kLine_Verb: in ToCanvas()
273 case SkPath::kQuad_Verb: in ToCanvas()
276 case SkPath::kConic_Verb: in ToCanvas()
279 SkPath::ConvertConicToQuads(pts[0], pts[1], pts[2], iter.conicWeight(), quads, 1); in ToCanvas()
283 case SkPath::kCubic_Verb: in ToCanvas()
287 case SkPath::kClose_Verb: in ToCanvas()
290 case SkPath::kDone_Verb: in ToCanvas()
298 emscripten::val EMSCRIPTEN_KEEPALIVE ToPath2D(const SkPath& path) { in ToPath2D()
307 void ApplyAddRect(SkPath& path, SkScalar x, SkScalar y, SkScalar width, SkScalar height) { in ApplyAddRect()
311 void ApplyAddArc(SkPath& path, SkScalar x, SkScalar y, SkScalar radius, in ApplyAddArc()
313 SkPath temp; in ApplyAddArc()
317 path.addPath(temp, SkPath::kExtend_AddPathMode); in ApplyAddArc()
320 void ApplyEllipse(SkPath& path, SkScalar x, SkScalar y, SkScalar radiusX, SkScalar radiusY, in ApplyEllipse()
325 SkPath temp; in ApplyEllipse()
331 path.addPath(temp, m, SkPath::kExtend_AddPathMode); in ApplyEllipse()
335 void ApplyAddPath(SkPath& orig, const SkPath& newPath, in ApplyAddPath()
345 JSString GetFillTypeString(const SkPath& path) { in GetFillTypeString()
360 bool ApplyDash(SkPath& path, SkScalar on, SkScalar off, SkScalar phase) { in ApplyDash()
375 bool ApplyTrim(SkPath& path, SkScalar startT, SkScalar stopT, bool isComplement) { in ApplyTrim()
400 bool ApplyStroke(SkPath& path, StrokeOpts opts) { in ApplyStroke()
427 void ApplyTransform(SkPath& orig, const SimpleMatrix& sm) { in ApplyTransform()
431 void ApplyTransform(SkPath& orig, in ApplyTransform()
470 class_<SkPath>("SkPath") in EMSCRIPTEN_BINDINGS()
472 .constructor<const SkPath&>() in EMSCRIPTEN_BINDINGS()
493 .function("setFillType", select_overload<void(SkPathFillType)>(&SkPath::setFillType)) in EMSCRIPTEN_BINDINGS()
494 .function("getFillType", &SkPath::getFillType) in EMSCRIPTEN_BINDINGS()
496 .function("getBounds", &SkPath::getBounds) in EMSCRIPTEN_BINDINGS()
497 .function("computeTightBounds", &SkPath::computeTightBounds) in EMSCRIPTEN_BINDINGS()
507 ….function("_transform", select_overload<void(SkPath& orig, const SimpleMatrix& sm)>(&ApplyTransfor… in EMSCRIPTEN_BINDINGS()
508 ….function("_transform", select_overload<void(SkPath& orig, SkScalar, SkScalar, SkScalar, SkScalar,… in EMSCRIPTEN_BINDINGS()
521 .function("dump", select_overload<void() const>(&SkPath::dump)) in EMSCRIPTEN_BINDINGS()
522 .function("dumpHex", select_overload<void() const>(&SkPath::dumpHex)) in EMSCRIPTEN_BINDINGS()