Lines Matching defs:SkLua

8 #include "SkLua.h"
99 SkLua::SkLua(const char termCode[]) : fTermCode(termCode), fWeOwnL(true) {
102 SkLua::Load(fL);
105 SkLua::SkLua(lua_State* L) : fL(L), fWeOwnL(false) {}
107 SkLua::~SkLua() {
119 bool SkLua::runCode(const char code[]) {
128 bool SkLua::runCode(const void* code, size_t size) {
218 void SkLua::pushBool(bool value, const char key[]) {
223 void SkLua::pushString(const char str[], const char key[]) {
228 void SkLua::pushString(const char str[], size_t length, const char key[]) {
235 void SkLua::pushString(const SkString& str, const char key[]) {
240 void SkLua::pushColor(SkColor color, const char key[]) {
249 void SkLua::pushU32(uint32_t value, const char key[]) {
254 void SkLua::pushScalar(SkScalar value, const char key[]) {
259 void SkLua::pushArrayU16(const uint16_t array[], int count, const char key[]) {
268 void SkLua::pushArrayPoint(const SkPoint array[], int count, const char key[]) {
280 void SkLua::pushArrayScalar(const SkScalar array[], int count, const char key[]) {
289 void SkLua::pushRect(const SkRect& r, const char key[]) {
298 void SkLua::pushRRect(const SkRRect& rr, const char key[]) {
303 void SkLua::pushDash(const SkPathEffect::DashInfo& info, const char key[]) {
311 void SkLua::pushMatrix(const SkMatrix& matrix, const char key[]) {
316 void SkLua::pushPaint(const SkPaint& paint, const char key[]) {
321 void SkLua::pushPath(const SkPath& path, const char key[]) {
326 void SkLua::pushCanvas(SkCanvas* canvas, const char key[]) {
331 void SkLua::pushTextBlob(const SkTextBlob* blob, const char key[]) {
368 void SkLua::pushClipStack(const SkClipStack& stack, const char* key) {
380 void SkLua::pushClipStackElement(const SkClipStack::Element& element, const char* key) {
623 SkLua(L).pushMatrix(get_ref<SkCanvas>(L, 1)->getTotalMatrix());
628 SkLua(L).pushClipStack(*get_ref<SkCanvas>(L, 1)->getClipStack());
632 int SkLua::lcanvas_getReducedClipStack(lua_State* L) {
656 SkLua(L).pushClipStackElement(*iter.get());
745 { "getReducedClipStack", SkLua::lcanvas_getReducedClipStack },
877 SkLua(L).pushScalar(byte2unit(get_obj<SkPaint>(L, 1)->getAlpha()));
887 SkLua(L).pushColor(get_obj<SkPaint>(L, 1)->getColor());
897 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getTextSize());
902 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getTextScaleX());
907 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getTextSkewX());
927 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getHinting());
932 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getFilterQuality());
946 SkLua(L).pushU32(SkTypeface::UniqueID(face));
1003 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getStrokeCap());
1008 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getStrokeJoin());
1013 SkLua(L).pushU32(get_obj<SkPaint>(L, 1)->getTextEncoding());
1018 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getStrokeWidth());
1028 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->getStrokeMiter());
1036 SkLua(L).pushScalar(get_obj<SkPaint>(L, 1)->measureText(text, len));
1064 SkLua(L).pushScalar(height);
1314 SkLua(L).pushDash(info);
1466 SkLua(L).pushRect(get_obj<SkPath>(L, 1)->getBounds());
1486 SkLua(L).pushString(fill_type_to_str(fill));
1527 SkLua(L).pushString(segment_masks_to_str(segMasks));
1533 SkLua(L).pushBool(isConvex);
1548 SkLua(L).pushRect(r);
1569 SkLua lua(L);
1657 SkLua(L).pushRect(get_obj<SkRRect>(L, 1)->rect());
1871 SkLua(L).pushRect(get_ref<SkTextBlob>(L, 1)->bounds());
2030 SkLua(L).pushScalar(newBottom);
2115 void SkLua::Load(lua_State* L) {
2138 SkLua::Load(L);