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

Function Clay__DebugViewRenderElementConfigHeader

include/clay.h:3476–3483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3474}
3475
3476void Clay__DebugViewRenderElementConfigHeader(Clay_String elementId, Clay__DebugElementConfigType type) {
3477 Clay__DebugElementConfigTypeLabelConfig config = Clay__DebugGetElementConfigTypeLabel(type);
3478 Clay_Color backgroundColor = config.color;
3479 backgroundColor.a = 90;
3480 CLAY_AUTO_ID({ .layout = { .padding = { 8, 8, 2, 2 } }, .backgroundColor = backgroundColor, .cornerRadius = CLAY_CORNER_RADIUS(4), .border = { .color = config.color, .width = { 1, 1, 1, 1, 0 } } }) {
3481 CLAY_TEXT(config.label, CLAY_TEXT_CONFIG({ .textColor = CLAY__DEBUGVIEW_COLOR_4, .fontSize = 16 }));
3482 }
3483}
3484
3485void Clay__RenderDebugViewColor(Clay_Color color, Clay_TextElementConfig textConfig) {
3486 CLAY_AUTO_ID({ .layout = { .childAlignment = {.y = CLAY_ALIGN_Y_CENTER} } }) {

Callers 1

Clay__RenderDebugViewFunction · 0.85

Calls 2

CLAY_AUTO_IDFunction · 0.85

Tested by

no test coverage detected