mirror of
https://github.com/nicbarker/clay.git
synced 2025-11-02 07:46:17 +00:00
Compare commits
2 commits
9a51edf23b
...
1f4e388b68
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f4e388b68 | ||
|
|
d300cf7cef |
3
clay.h
3
clay.h
|
|
@ -1322,8 +1322,7 @@ Clay_LayoutElement* Clay__GetOpenLayoutElement(void) {
|
|||
}
|
||||
|
||||
uint32_t Clay__GetParentElementId(void) {
|
||||
Clay_Context* context = Clay_GetCurrentContext();
|
||||
return Clay_LayoutElementArray_Get(&context->layoutElements, Clay__int32_tArray_GetValue(&context->openLayoutElementStack, context->openLayoutElementStack.length - 2))->id;
|
||||
return Clay__GetOpenLayoutElement()->id;
|
||||
}
|
||||
|
||||
Clay_LayoutConfig * Clay__StoreLayoutConfig(Clay_LayoutConfig config) { return Clay_GetCurrentContext()->booleanWarnings.maxElementsExceeded ? &CLAY_LAYOUT_DEFAULT : Clay__LayoutConfigArray_Add(&Clay_GetCurrentContext()->layoutConfigs, config); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue