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

Function PiuRectangleApplyMargins

modules/piu/All/piuRectangle.c:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void PiuRectangleApplyMargins(PiuRectangle r0, PiuRectangle r1, PiuMargins margins)
51{
52 PiuCoordinate dl, dt, dr, db;
53 dl = margins->left;
54 dt = margins->top;
55 dr = margins->right;
56 db = margins->bottom;
57 PiuRectangleSet(r0, r1->x + dl, r1->y + dt, r1->width - dl - dr, r1->height - dt - db);
58}
59
60PiuBoolean PiuRectangleContains(PiuRectangle r0, PiuRectangle r1)
61{

Callers

nothing calls this directly

Calls 1

PiuRectangleSetFunction · 0.85

Tested by

no test coverage detected