mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-19 04:38:01 +00:00
Remove element extension
This commit is contained in:
parent
c71783a08c
commit
dac0a830cb
10
clay.h
10
clay.h
@ -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);
|
||||||
|
@ -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 }
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user