• Home
  • Raw
  • Download

Lines Matching refs:get_obj

113 template <typename T> T* get_obj(lua_State* L, int index) {  in get_obj()  function
433 get_ref<SkCanvas>(L, 1)->drawPaint(*get_obj<SkPaint>(L, 2)); in lcanvas_drawPaint()
440 const SkPaint* paint = get_obj<SkPaint>(L, 3); in lcanvas_drawRect()
448 *get_obj<SkPaint>(L, 3)); in lcanvas_drawOval()
456 *get_obj<SkPaint>(L, 5)); in lcanvas_drawCircle()
465 const SkPaint* ptr = get_obj<SkPaint>(L, index); in lua2OptionalPaint()
529 get_ref<SkCanvas>(L, 1)->drawPatch(cubics, colors, texs, *get_obj<SkPaint>(L, 5)); in lcanvas_drawPatch()
534 get_ref<SkCanvas>(L, 1)->drawPath(*get_obj<SkPath>(L, 2), in lcanvas_drawPath()
535 *get_obj<SkPaint>(L, 3)); in lcanvas_drawPath()
568 SkFont::LEGACY_ExtractFromPaint(*get_obj<SkPaint>(L, 5)), in lcanvas_drawText()
569 *get_obj<SkPaint>(L, 5)); in lcanvas_drawText()
579 const SkPaint& paint = *get_obj<SkPaint>(L, 5); in lcanvas_drawTextBlob()
631 get_ref<SkCanvas>(L, 1)->concat(*get_obj<SkMatrix>(L, 2)); in lcanvas_concat()
687 push_ptr(L, get_obj<DocHolder>(L, 1)->fDoc->beginPage(lua2scalar(L, 2), in ldocument_beginPage()
694 get_obj<DocHolder>(L, 1)->fDoc->endPage(); in ldocument_endPage()
699 get_obj<DocHolder>(L, 1)->fDoc->close(); in ldocument_close()
704 get_obj<DocHolder>(L, 1)->~DocHolder(); in ldocument_gc()
719 lua_pushboolean(L, get_obj<SkPaint>(L, 1)->isAntiAlias()); in lpaint_isAntiAlias()
724 get_obj<SkPaint>(L, 1)->setAntiAlias(lua2bool(L, 2)); in lpaint_setAntiAlias()
729 lua_pushboolean(L, get_obj<SkPaint>(L, 1)->isDither()); in lpaint_isDither()
734 get_obj<SkPaint>(L, 1)->setDither(lua2bool(L, 2)); in lpaint_setDither()
739 SkLua(L).pushScalar(byte2unit(get_obj<SkPaint>(L, 1)->getAlpha())); in lpaint_getAlpha()
744 get_obj<SkPaint>(L, 1)->setAlpha(unit2byte(lua2scalar(L, 2))); in lpaint_setAlpha()
749 SkLua(L).pushColor(get_obj<SkPaint>(L, 1)->getColor()); in lpaint_getColor()
754 get_obj<SkPaint>(L, 1)->setColor(lua2color(L, 2)); in lpaint_setColor()
759 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getFilterQuality()); in lpaint_getFilterQuality()
766 get_obj<SkPaint>(L, 1)->setFilterQuality((SkFilterQuality)level); in lpaint_setFilterQuality()
772 lua_pushboolean(L, SkPaint::kStroke_Style == get_obj<SkPaint>(L, 1)->getStyle()); in lpaint_getStroke()
784 get_obj<SkPaint>(L, 1)->setStyle(style); in lpaint_setStroke()
789 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getStrokeCap()); in lpaint_getStrokeCap()
794 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getStrokeJoin()); in lpaint_getStrokeJoin()
799 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getStrokeWidth()); in lpaint_getStrokeWidth()
804 get_obj<SkPaint>(L, 1)->setStrokeWidth(lua2scalar(L, 2)); in lpaint_setStrokeWidth()
809 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getStrokeMiter()); in lpaint_getStrokeMiter()
814 const SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_getEffects()
827 const SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_getColorFilter()
837 SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_setColorFilter()
843 const SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_getImageFilter()
853 SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_setImageFilter()
859 const SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_getShader()
869 SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_setShader()
875 const SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_getPathEffect()
885 const SkPaint* paint = get_obj<SkPaint>(L, 1); in lpaint_getFillPath()
886 const SkPath* path = get_obj<SkPath>(L, 2); in lpaint_getFillPath()
898 get_obj<SkPaint>(L, 1)->~SkPaint(); in lpaint_gc()
936 SkLua(L).pushScalar(get_obj<SkFont>(L, 1)->getSize()); in lfont_getSize()
941 SkLua(L).pushScalar(get_obj<SkFont>(L, 1)->getScaleX()); in lfont_getScaleX()
946 SkLua(L).pushScalar(get_obj<SkFont>(L, 1)->getSkewX()); in lfont_getSkewX()
951 get_obj<SkFont>(L, 1)->setSize(lua2scalar(L, 2)); in lfont_setSize()
956 push_ref(L, get_obj<SkFont>(L, 1)->getTypefaceOrDefault()); in lfont_getTypeface()
961 get_obj<SkFont>(L, 1)->setTypeface(sk_ref_sp(get_ref<SkTypeface>(L, 2))); in lfont_setTypeface()
966 SkLua(L).pushU32((unsigned)get_obj<SkFont>(L, 1)->getHinting()); in lfont_getHinting()
971 SkTypeface* face = get_obj<SkFont>(L, 1)->getTypefaceOrDefault(); in lfont_getFontID()
980 SkLua(L).pushScalar(get_obj<SkFont>(L, 1)->measureText(text, len, kUTF8_SkTextEncoding)); in lfont_measureText()
988 SkScalar height = get_obj<SkFont>(L, 1)->getMetrics(&fm); in lfont_getMetrics()
1001 get_obj<SkFont>(L, 1)->~SkFont(); in lfont_gc()
1159 SkMatrix::TypeMask mask = get_obj<SkMatrix>(L, 1)->getType(); in lmatrix_getType()
1170 lua_pushnumber(L, get_obj<SkMatrix>(L,1)->getScaleX()); in lmatrix_getScaleX()
1175 lua_pushnumber(L, get_obj<SkMatrix>(L,1)->getScaleY()); in lmatrix_getScaleY()
1180 lua_pushnumber(L, get_obj<SkMatrix>(L,1)->getTranslateX()); in lmatrix_getTranslateX()
1185 lua_pushnumber(L, get_obj<SkMatrix>(L,1)->getTranslateY()); in lmatrix_getTranslateY()
1190 lua_pushboolean(L, get_obj<SkMatrix>(L, 1)->invert(get_obj<SkMatrix>(L, 2))); in lmatrix_invert()
1196 get_obj<SkMatrix>(L, 1)->mapPoints(&pt, &pt, 1); in lmatrix_mapXY()
1203 SkMatrix* matrix = get_obj<SkMatrix>(L, 1); in lmatrix_setRectToRect()
1248 SkLua(L).pushRect(get_obj<SkPath>(L, 1)->getBounds()); in lpath_getBounds()
1267 SkPath::FillType fill = get_obj<SkPath>(L, 1)->getFillType(); in lpath_getFillType()
1308 uint32_t segMasks = get_obj<SkPath>(L, 1)->getSegmentMasks(); in lpath_getSegmentTypes()
1314 bool isConvex = SkPath::kConvex_Convexity == get_obj<SkPath>(L, 1)->getConvexity(); in lpath_isConvex()
1320 lua_pushboolean(L, get_obj<SkPath>(L, 1)->isEmpty()); in lpath_isEmpty()
1326 bool pred = get_obj<SkPath>(L, 1)->isRect(&r); in lpath_isRect()
1347 bool pred = get_obj<SkPath>(L, 1)->isNestedFillRects(rects, dirs); in lpath_isNestedFillRects()
1362 lua_pushinteger(L, get_obj<SkPath>(L, 1)->countPoints()); in lpath_countPoints()
1367 const SkPath* path = get_obj<SkPath>(L, 1); in lpath_getVerbs()
1406 get_obj<SkPath>(L, 1)->reset(); in lpath_reset()
1411 get_obj<SkPath>(L, 1)->moveTo(lua2scalar(L, 2), lua2scalar(L, 3)); in lpath_moveTo()
1416 get_obj<SkPath>(L, 1)->lineTo(lua2scalar(L, 2), lua2scalar(L, 3)); in lpath_lineTo()
1421 get_obj<SkPath>(L, 1)->quadTo(lua2scalar(L, 2), lua2scalar(L, 3), in lpath_quadTo()
1427 get_obj<SkPath>(L, 1)->cubicTo(lua2scalar(L, 2), lua2scalar(L, 3), in lpath_cubicTo()
1434 get_obj<SkPath>(L, 1)->close(); in lpath_close()
1439 get_obj<SkPath>(L, 1)->~SkPath(); in lpath_gc()
1479 SkLua(L).pushRect(get_obj<SkRRect>(L, 1)->rect()); in lrrect_rect()
1484 lua_pushstring(L, rrect_type(*get_obj<SkRRect>(L, 1))); in lrrect_type()
1495 v = get_obj<SkRRect>(L, 1)->radii((SkRRect::Corner)corner); in lrrect_radii()
1503 get_obj<SkRRect>(L, 1)->~SkRRect(); in lrrect_gc()
1622 SkCanvas* canvas = get_obj<SkPictureRecorder>(L, 1)->beginRecording(w, h); in lpicturerecorder_beginRecording()
1633 SkCanvas* canvas = get_obj<SkPictureRecorder>(L, 1)->getRecordingCanvas(); in lpicturerecorder_getCanvas()
1643 sk_sp<SkPicture> pic = get_obj<SkPictureRecorder>(L, 1)->finishRecordingAsPicture(); in lpicturerecorder_endRecording()
1653 get_obj<SkPictureRecorder>(L, 1)->~SkPictureRecorder(); in lpicturerecorder_gc()
1751 get_obj<SkFontStyle>(L, 1)->~SkFontStyle(); in lfontstyle_gc()
1880 const SkPaint& paint = *get_obj<SkPaint>(L, 3); in lsk_newTextBlob()
1902 SkFontStyle* passedStyle = get_obj<SkFontStyle>(L, 2); in lsk_newTypeface()