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

Function PiuRectangleContains

modules/piu/All/piuRectangle.c:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60PiuBoolean PiuRectangleContains(PiuRectangle r0, PiuRectangle r1)
61{
62 return r0->x <= r1->x &&
63 r0->y <= r1->y &&
64 (r0->x + r0->width ) >= (r1->x + r1->width ) &&
65 (r0->y + r0->height) >= (r1->y + r1->height);
66}
67
68void PiuRectangleEmpty(PiuRectangle r)
69{

Callers 1

PiuViewAdjustAuxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected