Lines Matching full:get_obj
68 template <typename T> T* get_obj(lua_State* L, int index) {
311 *get_obj<SkPaint>(L, 3));
318 *get_obj<SkPaint>(L, 3));
326 *get_obj<SkPaint>(L, 5));
350 get_ref<SkCanvas>(L, 1)->drawPath(*get_obj<SkPath>(L, 2),
351 *get_obj<SkPaint>(L, 3));
365 *get_obj<SkPaint>(L, 5));
470 lua_pushboolean(L, get_obj<SkPaint>(L, 1)->isAntiAlias());
475 get_obj<SkPaint>(L, 1)->setAntiAlias(lua2bool(L, 2));
480 SkLua(L).pushColor(get_obj<SkPaint>(L, 1)->getColor());
485 get_obj<SkPaint>(L, 1)->setColor(lua2color(L, 2));
490 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getTextSize());
495 get_obj<SkPaint>(L, 1)->setTextSize(lua2scalar(L, 2));
500 push_ref(L, get_obj<SkPaint>(L, 1)->getTypeface());
505 get_obj<SkPaint>(L, 1)->setTypeface(get_ref<SkTypeface>(L, 2));
510 SkTypeface* face = get_obj<SkPaint>(L, 1)->getTypeface();
525 SkPaint::Align align = get_obj<SkPaint>(L, 1)->getTextAlign();
542 get_obj<SkPaint>(L, 1)->setTextAlign(gAlignRec[i].fAlign);
551 lua_pushboolean(L, SkPaint::kStroke_Style == get_obj<SkPaint>(L, 1)->getStyle());
563 get_obj<SkPaint>(L, 1)->setStyle(style);
568 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getStrokeWidth());
573 get_obj<SkPaint>(L, 1)->setStrokeWidth(lua2scalar(L, 2));
581 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->measureText(text, len));
601 SkScalar height = get_obj<SkPaint>(L, 1)->getFontMetrics(&fm);
614 const SkPaint* paint = get_obj<SkPaint>(L, 1);
629 const SkPaint* paint = get_obj<SkPaint>(L, 1);
639 get_obj<SkPaint>(L, 1)->~SkPaint();
757 SkMatrix::TypeMask mask = get_obj<SkMatrix>(L, 1)->getType();
768 lua_pushnumber(L, get_obj<SkMatrix>(L,1)->getScaleX());
773 lua_pushnumber(L, get_obj<SkMatrix>(L,1)->getScaleY());
778 lua_pushnumber(L, get_obj<SkMatrix>(L,1)->getTranslateX());
783 lua_pushnumber(L, get_obj<SkMatrix>(L,1)->getTranslateY());
799 SkLua(L).pushRect(get_obj<SkPath>(L, 1)->getBounds());
804 lua_pushboolean(L, get_obj<SkPath>(L, 1)->isEmpty());
810 bool pred = get_obj<SkPath>(L, 1)->isRect(&r);
831 bool pred = get_obj<SkPath>(L, 1)->isNestedRects(rects, dirs);
846 get_obj<SkPath>(L, 1)->reset();
851 get_obj<SkPath>(L, 1)->moveTo(lua2scalar(L, 2), lua2scalar(L, 3));
856 get_obj<SkPath>(L, 1)->lineTo(lua2scalar(L, 2), lua2scalar(L, 3));
861 get_obj<SkPath>(L, 1)->quadTo(lua2scalar(L, 2), lua2scalar(L, 3),
867 get_obj<SkPath>(L, 1)->cubicTo(lua2scalar(L, 2), lua2scalar(L, 3),
874 get_obj<SkPath>(L, 1)->close();
879 get_obj<SkPath>(L, 1)->~SkPath();
914 SkLua(L).pushRect(get_obj<SkRRect>(L, 1)->rect());
919 lua_pushstring(L, rrect_type(*get_obj<SkRRect>(L, 1)));
930 v = get_obj<SkRRect>(L, 1)->radii((SkRRect::Corner)corner);
938 get_obj<SkRRect>(L, 1)->~SkRRect();