Remove element extension

This commit is contained in:
Nic Barker 2025-02-03 14:16:22 +13:00
parent c71783a08c
commit dac0a830cb
2 changed files with 1 additions and 11 deletions

10
clay.h
View File

@ -313,9 +313,6 @@ CLAY__WRAPPER_STRUCT(Clay_TextElementConfig);
typedef struct { typedef struct {
void* imageData; void* imageData;
Clay_Dimensions sourceDimensions; Clay_Dimensions sourceDimensions;
#ifdef CLAY_EXTEND_CONFIG_IMAGE
CLAY_EXTEND_CONFIG_IMAGE
#endif
} Clay_ImageElementConfig; } Clay_ImageElementConfig;
CLAY__WRAPPER_STRUCT(Clay_ImageElementConfig); CLAY__WRAPPER_STRUCT(Clay_ImageElementConfig);
@ -357,11 +354,7 @@ CLAY__WRAPPER_STRUCT(Clay_FloatingElementConfig);
// Custom // Custom
typedef struct { typedef struct {
#ifndef CLAY_EXTEND_CONFIG_CUSTOM
void* customData; void* customData;
#else
CLAY_EXTEND_CONFIG_CUSTOM
#endif
} Clay_CustomElementConfig; } Clay_CustomElementConfig;
CLAY__WRAPPER_STRUCT(Clay_CustomElementConfig); CLAY__WRAPPER_STRUCT(Clay_CustomElementConfig);
@ -394,9 +387,6 @@ typedef struct {
typedef struct { typedef struct {
Clay_Color color; Clay_Color color;
Clay_BorderWidth width; Clay_BorderWidth width;
#ifdef CLAY_EXTEND_CONFIG_BORDER
CLAY_EXTEND_CONFIG_BORDER
#endif
} Clay_BorderElementConfig; } Clay_BorderElementConfig;
CLAY__WRAPPER_STRUCT(Clay_BorderElementConfig); CLAY__WRAPPER_STRUCT(Clay_BorderElementConfig);

View File

@ -11,7 +11,7 @@ void RenderHeaderButton(Clay_String text) {
.cornerRadius = CLAY_CORNER_RADIUS(5) .cornerRadius = CLAY_CORNER_RADIUS(5)
}) { }) {
CLAY_TEXT(text, CLAY_TEXT_CONFIG({ CLAY_TEXT(text, CLAY_TEXT_CONFIG({
.font = FONT_ID_BODY_16, .fontId = FONT_ID_BODY_16,
.fontSize = 16, .fontSize = 16,
.textColor = { 255, 255, 255, 255 } .textColor = { 255, 255, 255, 255 }
})); }));