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

Function PiuTextFitHorizontally

modules/piu/All/piuText.c:692–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692void PiuTextFitHorizontally(void* it)
693{
694 PiuText* self = it;
695 if (((*self)->coordinates.horizontal & piuLeftRight) != piuLeftRight)
696 (*self)->bounds.width = (*self)->coordinates.width;
697 (*self)->textWidth = (*self)->bounds.width;
698 (*self)->textHeight = 0;
699 if (((*self)->textWidth) && ((*self)->flags & piuTextStyled))
700 PiuTextFormat(self);
701 (*self)->flags &= ~(piuWidthChanged | piuContentsHorizontallyChanged);
702 if (!((*self)->coordinates.vertical & piuHeight)) {
703 PiuContentReflow(self, piuHeightChanged);
704 }
705}
706
707void PiuTextFormat(PiuText* self)
708{

Callers

nothing calls this directly

Calls 2

PiuTextFormatFunction · 0.85
PiuContentReflowFunction · 0.85

Tested by

no test coverage detected