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

Function PiuLabelMeasureHorizontally

modules/piu/All/piuLabel.c:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void PiuLabelMeasureHorizontally(void* it)
146{
147 PiuLabel* self = it;
148 PiuAlignment horizontal = (*self)->coordinates.horizontal;
149 if (!(horizontal & piuWidth)) {
150 if ((*self)->string && (*self)->computedStyle)
151 (*self)->coordinates.width = PiuStyleGetWidth((*self)->computedStyle, (*self)->string);
152 else
153 (*self)->coordinates.width = 0;
154 }
155}
156
157void PiuLabelMeasureVertically(void* it)
158{

Callers

nothing calls this directly

Calls 1

PiuStyleGetWidthFunction · 0.85

Tested by

no test coverage detected