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

Function PiuContentDraw

modules/piu/All/piuContent.c:276–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void PiuContentDraw(void* it, PiuView* view, PiuRectangle area)
277{
278 PiuContent* self = it;
279 PiuSkin* skin = (*self)->skin;
280 if (skin) {
281 PiuRectangleRecord bounds;
282 PiuRectangleSet(&bounds, 0, 0, (*self)->bounds.width, (*self)->bounds.height);
283 if (bounds.width && bounds.height)
284 PiuSkinDraw(skin, view, &bounds, (*self)->variant, (*self)->state, (*self)->coordinates.horizontal, (*self)->coordinates.vertical);
285 }
286}
287
288void PiuContentFitHorizontally(void* it)
289{

Callers 7

PiuSVGImageDrawFunction · 0.85
PiuTextDrawFunction · 0.85
PiuPortDrawFunction · 0.85
PiuLabelDrawFunction · 0.85
PiuImageDrawFunction · 0.85
PiuGIFImageDrawFunction · 0.85
PiuImageBufferDrawFunction · 0.85

Calls 2

PiuRectangleSetFunction · 0.85
PiuSkinDrawFunction · 0.85

Tested by

no test coverage detected