Skip to content

Commit

Permalink
Remove element extension
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbarker committed Feb 3, 2025
1 parent c71783a commit dac0a83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions clay.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ CLAY__WRAPPER_STRUCT(Clay_TextElementConfig);
typedef struct {
void* imageData;
Clay_Dimensions sourceDimensions;
#ifdef CLAY_EXTEND_CONFIG_IMAGE
CLAY_EXTEND_CONFIG_IMAGE
#endif
} Clay_ImageElementConfig;

CLAY__WRAPPER_STRUCT(Clay_ImageElementConfig);
Expand Down Expand Up @@ -357,11 +354,7 @@ CLAY__WRAPPER_STRUCT(Clay_FloatingElementConfig);

// Custom
typedef struct {
#ifndef CLAY_EXTEND_CONFIG_CUSTOM
void* customData;
#else
CLAY_EXTEND_CONFIG_CUSTOM
#endif
} Clay_CustomElementConfig;

CLAY__WRAPPER_STRUCT(Clay_CustomElementConfig);
Expand Down Expand Up @@ -394,9 +387,6 @@ typedef struct {
typedef struct {
Clay_Color color;
Clay_BorderWidth width;
#ifdef CLAY_EXTEND_CONFIG_BORDER
CLAY_EXTEND_CONFIG_BORDER
#endif
} Clay_BorderElementConfig;

CLAY__WRAPPER_STRUCT(Clay_BorderElementConfig);
Expand Down
2 changes: 1 addition & 1 deletion examples/shared-layouts/clay-video-demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void RenderHeaderButton(Clay_String text) {
.cornerRadius = CLAY_CORNER_RADIUS(5)
}) {
CLAY_TEXT(text, CLAY_TEXT_CONFIG({
.font = FONT_ID_BODY_16,
.fontId = FONT_ID_BODY_16,
.fontSize = 16,
.textColor = { 255, 255, 255, 255 }
}));
Expand Down

0 comments on commit dac0a83

Please sign in to comment.