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

Function PiuApplicationResize

modules/piu/All/piuApplication.c:243–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void PiuApplicationResize(PiuApplication* self)
244{
245 PiuView* view = (*self)->view;
246 PiuDimension width, height;
247 PiuViewInvalidate(view, NULL);
248 PiuViewGetSize(view, &width, &height);
249 (*self)->coordinates.horizontal = piuWidth;
250 (*self)->coordinates.left = (*self)->coordinates.right = (*self)->bounds.x = 0;
251 (*self)->coordinates.width = (*self)->bounds.width = width;
252 (*self)->coordinates.vertical = piuHeight;
253 (*self)->coordinates.top = (*self)->coordinates.bottom = (*self)->bounds.y = 0;
254 (*self)->coordinates.height = (*self)->bounds.height = height;
255 (*self)->flags |= piuAdjusting;
256 PiuContainerMeasureHorizontally(self);
257 PiuContainerFitHorizontally(self);
258 PiuContainerMeasureVertically(self);
259 PiuContainerFitVertically(self);
260 (*self)->flags &= ~piuAdjusting;
261 PiuViewReflow(view);
262}
263
264void PiuApplicationSetFocus(PiuApplication* self, void* it)
265{

Callers 5

PiuView_onResizeFunction · 0.85
PiuApplication_createFunction · 0.85
PiuWindowProcFunction · 0.85

Calls 7

PiuViewInvalidateFunction · 0.50
PiuViewGetSizeFunction · 0.50
PiuViewReflowFunction · 0.50

Tested by

no test coverage detected