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

Function Clay__RenderDebugViewColor

include/clay.h:3485–3499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3483}
3484
3485void Clay__RenderDebugViewColor(Clay_Color color, Clay_TextElementConfig textConfig) {
3486 CLAY_AUTO_ID({ .layout = { .childAlignment = {.y = CLAY_ALIGN_Y_CENTER} } }) {
3487 CLAY_TEXT(CLAY_STRING("{ r: "), textConfig);
3488 CLAY_TEXT(Clay__IntToString(color.r), textConfig);
3489 CLAY_TEXT(CLAY_STRING(", g: "), textConfig);
3490 CLAY_TEXT(Clay__IntToString(color.g), textConfig);
3491 CLAY_TEXT(CLAY_STRING(", b: "), textConfig);
3492 CLAY_TEXT(Clay__IntToString(color.b), textConfig);
3493 CLAY_TEXT(CLAY_STRING(", a: "), textConfig);
3494 CLAY_TEXT(Clay__IntToString(color.a), textConfig);
3495 CLAY_TEXT(CLAY_STRING(" }"), textConfig);
3496 CLAY_AUTO_ID({ .layout = { .sizing = { .width = CLAY_SIZING_FIXED(10) } } }) {}
3497 CLAY_AUTO_ID({ .layout = { .sizing = { CLAY_SIZING_FIXED(CLAY__DEBUGVIEW_ROW_HEIGHT - 8), CLAY_SIZING_FIXED(CLAY__DEBUGVIEW_ROW_HEIGHT - 8)} }, .backgroundColor = color, .cornerRadius = CLAY_CORNER_RADIUS(4), .border = { .color = CLAY__DEBUGVIEW_COLOR_4, .width = { 1, 1, 1, 1, 0 } } }) {}
3498 }
3499}
3500
3501void Clay__RenderDebugViewCornerRadius(Clay_CornerRadius cornerRadius, Clay_TextElementConfig textConfig) {
3502 CLAY_AUTO_ID({ .layout = { .childAlignment = {.y = CLAY_ALIGN_Y_CENTER} } }) {

Callers 1

Clay__RenderDebugViewFunction · 0.85

Calls 2

CLAY_AUTO_IDFunction · 0.85
Clay__IntToStringFunction · 0.85

Tested by

no test coverage detected