Lines Matching refs:function
503 function("_getWebGLSurface", &getWebGLSurface, allow_raw_pointers()); in EMSCRIPTEN_BINDINGS()
504 function("currentContext", &emscripten_webgl_get_current_context); in EMSCRIPTEN_BINDINGS()
505 function("setCurrentContext", &emscripten_webgl_make_context_current); in EMSCRIPTEN_BINDINGS()
508 function("_decodeImage", optional_override([](uintptr_t /* uint8_t* */ iptr, in EMSCRIPTEN_BINDINGS()
514 function("_getRasterDirectSurface", optional_override([](const SimpleImageInfo ii, in EMSCRIPTEN_BINDINGS()
521 …function("_getRasterN32PremulSurface", optional_override([](int width, int height)->sk_sp<SkSurfac… in EMSCRIPTEN_BINDINGS()
525 function("getSkDataBytes", &getSkDataBytes, allow_raw_pointers()); in EMSCRIPTEN_BINDINGS()
526 function("MakeSkCornerPathEffect", &SkCornerPathEffect::Make, allow_raw_pointers()); in EMSCRIPTEN_BINDINGS()
527 function("MakeSkDiscretePathEffect", &SkDiscretePathEffect::Make, allow_raw_pointers()); in EMSCRIPTEN_BINDINGS()
528 …function("MakeBlurMaskFilter", optional_override([](SkBlurStyle style, SkScalar sigma, bool respec… in EMSCRIPTEN_BINDINGS()
532 function("_MakePathFromCmds", &MakePathFromCmds); in EMSCRIPTEN_BINDINGS()
533 function("MakePathFromOp", &MakePathFromOp); in EMSCRIPTEN_BINDINGS()
534 function("MakePathFromSVGString", &MakePathFromSVGString); in EMSCRIPTEN_BINDINGS()
537 …function("_MakeSkDashPathEffect", optional_override([](uintptr_t /* float* */ cptr, int count, SkS… in EMSCRIPTEN_BINDINGS()
542 function("_MakeImage", optional_override([](SimpleImageInfo ii, in EMSCRIPTEN_BINDINGS()
553 function("_MakeImageShader", optional_override([](sk_sp<SkImage> img, in EMSCRIPTEN_BINDINGS()
558 function("_MakeImageShader", optional_override([](sk_sp<SkImage> img, in EMSCRIPTEN_BINDINGS()
565 function("_MakeLinearGradientShader", optional_override([](SkPoint start, SkPoint end, in EMSCRIPTEN_BINDINGS()
576 function("_MakeLinearGradientShader", optional_override([](SkPoint start, SkPoint end, in EMSCRIPTEN_BINDINGS()
590 function("_MakeRadialGradientShader", optional_override([](SkPoint center, SkScalar radius, in EMSCRIPTEN_BINDINGS()
600 function("_MakeRadialGradientShader", optional_override([](SkPoint center, SkScalar radius, in EMSCRIPTEN_BINDINGS()
612 function("_MakeTwoPointConicalGradientShader", optional_override([]( in EMSCRIPTEN_BINDINGS()
625 function("_MakeTwoPointConicalGradientShader", optional_override([]( in EMSCRIPTEN_BINDINGS()
641 function("_MakeSkVertices", optional_override([](SkVertices::VertexMode mode, int vertexCount, in EMSCRIPTEN_BINDINGS()
660 .function("clear", optional_override([](SkCanvas& self, JSColor color)->void { in EMSCRIPTEN_BINDINGS()
665 … .function("clipPath", select_overload<void (const SkPath&, SkClipOp, bool)>(&SkCanvas::clipPath)) in EMSCRIPTEN_BINDINGS()
666 … .function("clipRect", select_overload<void (const SkRect&, SkClipOp, bool)>(&SkCanvas::clipRect)) in EMSCRIPTEN_BINDINGS()
667 .function("concat", optional_override([](SkCanvas& self, const SimpleMatrix& m) { in EMSCRIPTEN_BINDINGS()
670 .function("drawArc", &SkCanvas::drawArc) in EMSCRIPTEN_BINDINGS()
671 ….function("drawImage", select_overload<void (const sk_sp<SkImage>&, SkScalar, SkScalar, const SkPa… in EMSCRIPTEN_BINDINGS()
672 .function("drawImageRect", optional_override([](SkCanvas& self, const sk_sp<SkImage>& image, in EMSCRIPTEN_BINDINGS()
679 ….function("drawLine", select_overload<void (SkScalar, SkScalar, SkScalar, SkScalar, const SkPaint&… in EMSCRIPTEN_BINDINGS()
680 .function("drawOval", &SkCanvas::drawOval) in EMSCRIPTEN_BINDINGS()
681 .function("drawPaint", &SkCanvas::drawPaint) in EMSCRIPTEN_BINDINGS()
682 .function("drawPath", &SkCanvas::drawPath) in EMSCRIPTEN_BINDINGS()
683 .function("drawRect", &SkCanvas::drawRect) in EMSCRIPTEN_BINDINGS()
684 .function("drawRoundRect", &SkCanvas::drawRoundRect) in EMSCRIPTEN_BINDINGS()
685 .function("drawShadow", optional_override([](SkCanvas& self, const SkPath& path, in EMSCRIPTEN_BINDINGS()
693 … .function("_drawSimpleText", optional_override([](SkCanvas& self, uintptr_t /* char* */ sptr, in EMSCRIPTEN_BINDINGS()
701 ….function("drawTextBlob", select_overload<void (const sk_sp<SkTextBlob>&, SkScalar, SkScalar, cons… in EMSCRIPTEN_BINDINGS()
702 ….function("drawVertices", select_overload<void (const sk_sp<SkVertices>&, SkBlendMode, const SkPai… in EMSCRIPTEN_BINDINGS()
703 .function("flush", &SkCanvas::flush) in EMSCRIPTEN_BINDINGS()
704 .function("getTotalMatrix", optional_override([](const SkCanvas& self)->SimpleMatrix { in EMSCRIPTEN_BINDINGS()
708 .function("_readPixels", optional_override([](SkCanvas& self, SimpleImageInfo di, in EMSCRIPTEN_BINDINGS()
716 .function("restore", &SkCanvas::restore) in EMSCRIPTEN_BINDINGS()
717 .function("rotate", select_overload<void (SkScalar, SkScalar, SkScalar)>(&SkCanvas::rotate)) in EMSCRIPTEN_BINDINGS()
718 .function("save", &SkCanvas::save) in EMSCRIPTEN_BINDINGS()
719 .function("scale", &SkCanvas::scale) in EMSCRIPTEN_BINDINGS()
720 .function("skew", &SkCanvas::skew) in EMSCRIPTEN_BINDINGS()
721 .function("translate", &SkCanvas::translate) in EMSCRIPTEN_BINDINGS()
722 .function("_writePixels", optional_override([](SkCanvas& self, SimpleImageInfo di, in EMSCRIPTEN_BINDINGS()
734 .function("size", &SkData::size); in EMSCRIPTEN_BINDINGS()
741 .function("getScaleX", &SkFont::getScaleX) in EMSCRIPTEN_BINDINGS()
742 .function("getSize", &SkFont::getSize) in EMSCRIPTEN_BINDINGS()
743 .function("getSkewX", &SkFont::getSkewX) in EMSCRIPTEN_BINDINGS()
744 .function("getTypeface", &SkFont::getTypeface, allow_raw_pointers()) in EMSCRIPTEN_BINDINGS()
745 .function("measureText", optional_override([](SkFont& self, std::string text) { in EMSCRIPTEN_BINDINGS()
751 .function("setScaleX", &SkFont::setScaleX) in EMSCRIPTEN_BINDINGS()
752 .function("setSize", &SkFont::setSize) in EMSCRIPTEN_BINDINGS()
753 .function("setSkewX", &SkFont::setSkewX) in EMSCRIPTEN_BINDINGS()
754 .function("setTypeface", &SkFont::setTypeface, allow_raw_pointers()); in EMSCRIPTEN_BINDINGS()
760 .function("dumpFamilies", optional_override([](SkFontMgr& self) { in EMSCRIPTEN_BINDINGS()
770 .function("countFamilies", &SkFontMgr::countFamilies) in EMSCRIPTEN_BINDINGS()
771 .function("_makeTypefaceFromData", optional_override([](SkFontMgr& self, in EMSCRIPTEN_BINDINGS()
783 .function("height", &SkImage::height) in EMSCRIPTEN_BINDINGS()
784 .function("width", &SkImage::width) in EMSCRIPTEN_BINDINGS()
785 .function("_encodeToData", select_overload<sk_sp<SkData>()const>(&SkImage::encodeToData)) in EMSCRIPTEN_BINDINGS()
786 ….function("_encodeToDataWithFormat", select_overload<sk_sp<SkData>(SkEncodedImageFormat encodedIma… in EMSCRIPTEN_BINDINGS()
793 .function("copy", optional_override([](const SkPaint& self)->SkPaint { in EMSCRIPTEN_BINDINGS()
797 .function("getBlendMode", &SkPaint::getBlendMode) in EMSCRIPTEN_BINDINGS()
798 .function("getColor", optional_override([](SkPaint& self)->JSColor { in EMSCRIPTEN_BINDINGS()
803 .function("getFilterQuality", &SkPaint::getFilterQuality) in EMSCRIPTEN_BINDINGS()
804 .function("getStrokeCap", &SkPaint::getStrokeCap) in EMSCRIPTEN_BINDINGS()
805 .function("getStrokeJoin", &SkPaint::getStrokeJoin) in EMSCRIPTEN_BINDINGS()
806 .function("getStrokeMiter", &SkPaint::getStrokeMiter) in EMSCRIPTEN_BINDINGS()
807 .function("getStrokeWidth", &SkPaint::getStrokeWidth) in EMSCRIPTEN_BINDINGS()
808 .function("setAntiAlias", &SkPaint::setAntiAlias) in EMSCRIPTEN_BINDINGS()
809 .function("setBlendMode", &SkPaint::setBlendMode) in EMSCRIPTEN_BINDINGS()
810 .function("setColor", optional_override([](SkPaint& self, JSColor color)->void { in EMSCRIPTEN_BINDINGS()
815 .function("setFilterQuality", &SkPaint::setFilterQuality) in EMSCRIPTEN_BINDINGS()
816 .function("setMaskFilter", &SkPaint::setMaskFilter) in EMSCRIPTEN_BINDINGS()
817 .function("setPathEffect", &SkPaint::setPathEffect) in EMSCRIPTEN_BINDINGS()
818 .function("setShader", &SkPaint::setShader) in EMSCRIPTEN_BINDINGS()
819 .function("setStrokeCap", &SkPaint::setStrokeCap) in EMSCRIPTEN_BINDINGS()
820 .function("setStrokeJoin", &SkPaint::setStrokeJoin) in EMSCRIPTEN_BINDINGS()
821 .function("setStrokeMiter", &SkPaint::setStrokeMiter) in EMSCRIPTEN_BINDINGS()
822 .function("setStrokeWidth", &SkPaint::setStrokeWidth) in EMSCRIPTEN_BINDINGS()
823 .function("setStyle", &SkPaint::setStyle); in EMSCRIPTEN_BINDINGS()
831 .function("_addArc", &ApplyAddArc) in EMSCRIPTEN_BINDINGS()
833 .function("_addPath", &ApplyAddPath) in EMSCRIPTEN_BINDINGS()
835 .function("_addRect", &ApplyAddRect) in EMSCRIPTEN_BINDINGS()
837 .function("_addRoundRect", &ApplyAddRoundRect) in EMSCRIPTEN_BINDINGS()
838 .function("_arcTo", &ApplyArcTo) in EMSCRIPTEN_BINDINGS()
839 .function("_arcTo", &ApplyArcToAngle) in EMSCRIPTEN_BINDINGS()
840 .function("_close", &ApplyClose) in EMSCRIPTEN_BINDINGS()
841 .function("_conicTo", &ApplyConicTo) in EMSCRIPTEN_BINDINGS()
842 .function("countPoints", &SkPath::countPoints) in EMSCRIPTEN_BINDINGS()
843 .function("contains", &SkPath::contains) in EMSCRIPTEN_BINDINGS()
844 .function("_cubicTo", &ApplyCubicTo) in EMSCRIPTEN_BINDINGS()
845 .function("getPoint", &SkPath::getPoint) in EMSCRIPTEN_BINDINGS()
846 .function("isEmpty", &SkPath::isEmpty) in EMSCRIPTEN_BINDINGS()
847 .function("isVolatile", &SkPath::isVolatile) in EMSCRIPTEN_BINDINGS()
848 .function("_lineTo", &ApplyLineTo) in EMSCRIPTEN_BINDINGS()
849 .function("_moveTo", &ApplyMoveTo) in EMSCRIPTEN_BINDINGS()
850 .function("reset", &ApplyReset) in EMSCRIPTEN_BINDINGS()
851 .function("rewind", &ApplyRewind) in EMSCRIPTEN_BINDINGS()
852 .function("_quadTo", &ApplyQuadTo) in EMSCRIPTEN_BINDINGS()
853 .function("setIsVolatile", &SkPath::setIsVolatile) in EMSCRIPTEN_BINDINGS()
854 ….function("_transform", select_overload<void(SkPath&, SkScalar, SkScalar, SkScalar, SkScalar, SkSc… in EMSCRIPTEN_BINDINGS()
857 .function("_dash", &ApplyDash) in EMSCRIPTEN_BINDINGS()
858 .function("_trim", &ApplyTrim) in EMSCRIPTEN_BINDINGS()
859 .function("_stroke", &ApplyStroke) in EMSCRIPTEN_BINDINGS()
862 .function("_simplify", &ApplySimplify) in EMSCRIPTEN_BINDINGS()
863 .function("_op", &ApplyPathOp) in EMSCRIPTEN_BINDINGS()
866 .function("toSVGString", &ToSVGString) in EMSCRIPTEN_BINDINGS()
867 .function("toCmds", &ToCmds) in EMSCRIPTEN_BINDINGS()
869 .function("setFillType", &SkPath::setFillType) in EMSCRIPTEN_BINDINGS()
870 .function("getFillType", &SkPath::getFillType) in EMSCRIPTEN_BINDINGS()
871 .function("getBounds", &SkPath::getBounds) in EMSCRIPTEN_BINDINGS()
872 .function("computeTightBounds", &SkPath::computeTightBounds) in EMSCRIPTEN_BINDINGS()
873 .function("equals", &Equals) in EMSCRIPTEN_BINDINGS()
874 .function("copy", &CopyPath) in EMSCRIPTEN_BINDINGS()
876 .function("dump", select_overload<void() const>(&SkPath::dump)) in EMSCRIPTEN_BINDINGS()
877 .function("dumpHex", select_overload<void() const>(&SkPath::dumpHex)) in EMSCRIPTEN_BINDINGS()
886 .function("width", &SkSurface::width) in EMSCRIPTEN_BINDINGS()
887 .function("height", &SkSurface::height) in EMSCRIPTEN_BINDINGS()
888 .function("_flush", &SkSurface::flush) in EMSCRIPTEN_BINDINGS()
889 … .function("makeImageSnapshot", select_overload<sk_sp<SkImage>()>(&SkSurface::makeImageSnapshot)) in EMSCRIPTEN_BINDINGS()
890 ….function("makeImageSnapshot", select_overload<sk_sp<SkImage>(const SkIRect& bounds)>(&SkSurface::… in EMSCRIPTEN_BINDINGS()
891 .function("getCanvas", &SkSurface::getCanvas, allow_raw_pointers()); in EMSCRIPTEN_BINDINGS()
909 ….function("_applyBones", optional_override([](SkVertices& self, uintptr_t /* Bone* */ bptr, int bo… in EMSCRIPTEN_BINDINGS()
914 .function("bounds", &SkVertices::bounds) in EMSCRIPTEN_BINDINGS()
915 .function("mode", &SkVertices::mode) in EMSCRIPTEN_BINDINGS()
916 .function("uniqueID", &SkVertices::uniqueID) in EMSCRIPTEN_BINDINGS()
918 .function("dumpPositions", optional_override([](SkVertices& self)->void { in EMSCRIPTEN_BINDINGS()
925 .function("vertexCount", &SkVertices::vertexCount); in EMSCRIPTEN_BINDINGS()