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

Function PiuLabelDraw

modules/piu/All/piuLabel.c:124–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void PiuLabelDraw(void* it, PiuView* view, PiuRectangle area)
125{
126 PiuLabel* self = it;
127 PiuContentDraw(it, view, area);
128 if ((*self)->string && (*self)->computedStyle) {
129 PiuRectangleRecord bounds;
130 PiuRectangleSet(&bounds, 0, 0, (*self)->bounds.width, (*self)->bounds.height);
131 //PiuViewPushClip(view, 0, 0, bounds.width, bounds.height);
132 PiuStyleDraw((*self)->computedStyle, (*self)->string, view, &bounds, ((*self)->flags & piuLabelEllipsis) ? 1 : 0, (*self)->state);
133 //PiuViewPopClip(view);
134 }
135}
136
137void PiuLabelMark(xsMachine* the, void* it, xsMarkRoot markRoot)
138{

Callers

nothing calls this directly

Calls 3

PiuContentDrawFunction · 0.85
PiuRectangleSetFunction · 0.85
PiuStyleDrawFunction · 0.85

Tested by

no test coverage detected