Lines Matching refs:SkLua
123 SkLua::SkLua(const char termCode[]) : fTermCode(termCode), fWeOwnL(true) { in SkLua() function in SkLua
126 SkLua::Load(fL); in SkLua()
129 SkLua::SkLua(lua_State* L) : fL(L), fWeOwnL(false) {} in SkLua() function in SkLua
131 SkLua::~SkLua() { in ~SkLua()
143 bool SkLua::runCode(const char code[]) { in runCode()
152 bool SkLua::runCode(const void* code, size_t size) { in runCode()
247 void SkLua::pushBool(bool value, const char key[]) { in pushBool()
252 void SkLua::pushString(const char str[], const char key[]) { in pushString()
257 void SkLua::pushString(const char str[], size_t length, const char key[]) { in pushString()
264 void SkLua::pushString(const SkString& str, const char key[]) { in pushString()
269 void SkLua::pushColor(SkColor color, const char key[]) { in pushColor()
278 void SkLua::pushU32(uint32_t value, const char key[]) { in pushU32()
283 void SkLua::pushScalar(SkScalar value, const char key[]) { in pushScalar()
288 void SkLua::pushArrayU16(const uint16_t array[], int count, const char key[]) { in pushArrayU16()
297 void SkLua::pushArrayPoint(const SkPoint array[], int count, const char key[]) { in pushArrayPoint()
309 void SkLua::pushArrayScalar(const SkScalar array[], int count, const char key[]) { in pushArrayScalar()
318 void SkLua::pushRect(const SkRect& r, const char key[]) { in pushRect()
327 void SkLua::pushRRect(const SkRRect& rr, const char key[]) { in pushRRect()
332 void SkLua::pushDash(const SkPathEffect::DashInfo& info, const char key[]) { in pushDash()
340 void SkLua::pushMatrix(const SkMatrix& matrix, const char key[]) { in pushMatrix()
345 void SkLua::pushPaint(const SkPaint& paint, const char key[]) { in pushPaint()
350 void SkLua::pushPath(const SkPath& path, const char key[]) { in pushPath()
355 void SkLua::pushCanvas(SkCanvas* canvas, const char key[]) { in pushCanvas()
360 void SkLua::pushTextBlob(const SkTextBlob* blob, const char key[]) { in pushTextBlob()
590 SkLua(L).pushMatrix(get_ref<SkCanvas>(L, 1)->getTotalMatrix()); in lcanvas_getTotalMatrix()
739 SkLua(L).pushScalar(byte2unit(get_obj<SkPaint>(L, 1)->getAlpha())); in lpaint_getAlpha()
749 SkLua(L).pushColor(get_obj<SkPaint>(L, 1)->getColor()); in lpaint_getColor()
759 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getFilterQuality()); in lpaint_getFilterQuality()
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()
809 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getStrokeMiter()); in lpaint_getStrokeMiter()
891 SkLua lua(L); in lpaint_getFillPath()
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()
966 SkLua(L).pushU32((unsigned)get_obj<SkFont>(L, 1)->getHinting()); in lfont_getHinting()
972 SkLua(L).pushU32(SkTypeface::UniqueID(face)); in lfont_getFontID()
980 SkLua(L).pushScalar(get_obj<SkFont>(L, 1)->measureText(text, len, kUTF8_SkTextEncoding)); in lfont_measureText()
996 SkLua(L).pushScalar(height); in lfont_getMetrics()
1114 SkLua(L).pushDash(info); in lpatheffect_asADash()
1248 SkLua(L).pushRect(get_obj<SkPath>(L, 1)->getBounds()); in lpath_getBounds()
1268 SkLua(L).pushString(fill_type_to_str(fill)); in lpath_getFillType()
1309 SkLua(L).pushString(segment_masks_to_str(segMasks)); in lpath_getSegmentTypes()
1315 SkLua(L).pushBool(isConvex); in lpath_isConvex()
1330 SkLua(L).pushRect(r); in lpath_isRect()
1351 SkLua lua(L); in lpath_isNestedFillRects()
1479 SkLua(L).pushRect(get_obj<SkRRect>(L, 1)->rect()); in lrrect_rect()
1692 SkLua(L).pushRect(get_ref<SkTextBlob>(L, 1)->bounds()); in ltextblob_bounds()
1890 SkLua(L).pushScalar(end.fY); in lsk_newTextBlob()
1996 void SkLua::Load(lua_State* L) { in Load()
2020 SkLua::Load(L); in luaopen_skia()