mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
[Core] Remove ID from element declaration struct and split clay macro into CLAY and CLAY_WITHID (#492)
This commit is contained in:
parent
0d6969c8c3
commit
1cbc56cbf2
20 changed files with 363 additions and 396 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue