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

Function PiuStyleGetWidth

modules/piu/All/piuStyle.c:401–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401PiuDimension PiuStyleGetWidth(PiuStyle* self, xsSlot* string)
402{
403 PiuFont* font = (*self)->font;
404 return (*self)->margins.left + PiuFontGetWidth(font, string, 0, -1) + (*self)->margins.right;
405}
406
407PiuDimension PiuStyleGetHeight(PiuStyle* self, xsSlot* string)
408{

Callers 3

PiuStyleDrawFunction · 0.85
PiuStyle_measureFunction · 0.85

Calls 1

PiuFontGetWidthFunction · 0.50

Tested by

no test coverage detected