[Core] Remove ID from element declaration struct and split clay macro into CLAY and CLAY_WITHID (#492)

This commit is contained in:
Nic Barker 2025-09-16 11:39:07 +10:00 committed by Tim Millard
parent ebe9b2e46f
commit 615279a5a0
20 changed files with 363 additions and 396 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
},