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

Function Clay__GetElementSizing

include/clay.h:2272–2278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2270}
2271
2272Clay_SizingAxis Clay__GetElementSizing(Clay_LayoutElement* element, bool xAxis) {
2273 if (element->isTextElement) {
2274 return CLAY__INIT(Clay_SizingAxis) {};
2275 } else {
2276 return xAxis ? element->config.layout.sizing.width : element->config.layout.sizing.height;
2277 }
2278}
2279
2280// Writes out the location of text elements to layout elements buffer 1
2281void Clay__SizeContainersAlongAxis(bool xAxis, float deltaTime, Clay__int32_tArray* textElementsOut, Clay__int32_tArray* aspectRatioElementsOut) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected