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

Function PiuSVGImageDraw

modules/piu/Pebble/piuSVGImage.c:189–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void PiuSVGImageDraw(void* it, PiuView* view, PiuRectangle area)
190{
191 PiuSVGImage* self = it;
192 PiuContentDraw(it, view, area);
193 if ((*self)->dci || (*self)->dcs) {
194 PiuRectangleRecord bounds;
195 PiuRectangleSet(&bounds, 0, 0, (*self)->bounds.width, (*self)->bounds.height);
196 if ((*self)->flags & piuClip)
197 PiuViewPushClip(view, 0, 0, bounds.width, bounds.height);
198 PiuViewDrawContent(view, PiuSVGImageDrawAux, it, 0, 0, bounds.width, bounds.height);
199 if ((*self)->flags & piuClip)
200 PiuViewPopClip(view);
201 }
202}
203
204extern GContext *getPocoPebbleGContext(Poco poco);
205

Callers

nothing calls this directly

Calls 5

PiuContentDrawFunction · 0.85
PiuRectangleSetFunction · 0.85
PiuViewPushClipFunction · 0.70
PiuViewDrawContentFunction · 0.70
PiuViewPopClipFunction · 0.70

Tested by

no test coverage detected