MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / Clay__ElementIsOffscreen

Function Clay__ElementIsOffscreen

include/clay.h:2561–2571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2559}
2560
2561bool Clay__ElementIsOffscreen(Clay_BoundingBox *boundingBox) {
2562 Clay_Context* context = Clay_GetCurrentContext();
2563 if (context->disableCulling) {
2564 return false;
2565 }
2566
2567 return (boundingBox->x > (float)context->layoutDimensions.width) ||
2568 (boundingBox->y > (float)context->layoutDimensions.height) ||
2569 (boundingBox->x + boundingBox->width < 0) ||
2570 (boundingBox->y + boundingBox->height < 0);
2571}
2572
2573void Clay__CalculateFinalLayout(float deltaTime, bool useStoredBoundingBoxes, bool generateRenderCommands) {
2574 Clay_Context* context = Clay_GetCurrentContext();

Callers 2

Calls 1

Clay_GetCurrentContextFunction · 0.85

Tested by

no test coverage detected