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

Function PiuLabelMeasureVertically

modules/piu/All/piuLabel.c:157–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void PiuLabelMeasureVertically(void* it)
158{
159 PiuLabel* self = it;
160 PiuAlignment vertical = (*self)->coordinates.vertical;
161 if (!(vertical & piuHeight)) {
162 if ((*self)->string && (*self)->computedStyle)
163 (*self)->coordinates.height = PiuStyleGetHeight((*self)->computedStyle, (*self)->string);
164 else
165 (*self)->coordinates.height = 0;
166 }
167}
168
169void PiuLabelUnbind(void* it, PiuApplication* application, PiuView* view)
170{

Callers

nothing calls this directly

Calls 1

PiuStyleGetHeightFunction · 0.85

Tested by

no test coverage detected