Switch direction of CLAY and CLAY_AUTO_ID macro

This commit is contained in:
Nic Barker 2025-09-16 11:04:18 +10:00
parent 1e99cf0a7c
commit 0900a7ffec
12 changed files with 255 additions and 262 deletions

View file

@ -53,7 +53,7 @@ Clay_RenderCommandArray ClayImageSample_CreateLayout() {
.height = CLAY_SIZING_GROW(0)
};
CLAY({ .id = CLAY_ID("OuterContainer"),
CLAY(CLAY_ID("OuterContainer"), {
.layout = {
.layoutDirection = CLAY_TOP_TO_BOTTOM,
.sizing = layoutExpand,
@ -61,8 +61,7 @@ Clay_RenderCommandArray ClayImageSample_CreateLayout() {
.childGap = 16
}
}) {
CLAY({
.id = CLAY_ID("SampleImage"),
CLAY(CLAY_ID("SampleImage"), {
.layout = {
.sizing = layoutExpand
},