MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuSVGImageDictionary

Function PiuSVGImageDictionary

modules/piu/Pebble/piuSVGImage.c:168–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void PiuSVGImageDictionary(xsMachine* the, void* it)
169{
170 PiuSVGImage* self = it;
171 xsBooleanValue boolean;
172 if (xsFindBoolean(xsArg(1), xsID_clip, &boolean)) {
173 if (boolean)
174 (*self)->flags |= piuClip;
175 else
176 (*self)->flags &= ~piuClip;
177 }
178 if (xsFindResult(xsArg(1), xsID_path)) {
179 if (xsTypeOf(xsResult) == xsIntegerType) {
180 (*self)->id = xsToInteger(xsResult);
181 }
182 else {
183 xsSlot* path = PiuString(xsResult);
184 (*self)->path = path;
185 }
186 }
187}
188
189void PiuSVGImageDraw(void* it, PiuView* view, PiuRectangle area)
190{

Callers 1

PiuSVGImage_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected