mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +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 {
 | 
			
		||||
    void* imageData;
 | 
			
		||||
    Clay_Dimensions sourceDimensions;
 | 
			
		||||
    #ifdef CLAY_EXTEND_CONFIG_IMAGE
 | 
			
		||||
    CLAY_EXTEND_CONFIG_IMAGE
 | 
			
		||||
    #endif
 | 
			
		||||
} Clay_ImageElementConfig;
 | 
			
		||||
 | 
			
		||||
CLAY__WRAPPER_STRUCT(Clay_ImageElementConfig);
 | 
			
		||||
| 
						 | 
				
			
			@ -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);
 | 
			
		||||
| 
						 | 
				
			
			@ -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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 }
 | 
			
		||||
        }));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue