mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	Fix issues with borders
This commit is contained in:
		
							parent
							
								
									1aaf6df33a
								
							
						
					
					
						commit
						9b100c2456
					
				
							
								
								
									
										4
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
					@ -64,7 +64,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CLAY_BORDER_OUTSIDE_RADIUS(width, color, radius) Clay__AttachElementConfig(CLAY__INIT(Clay_ElementConfigUnion) { .borderElementConfig = Clay__StoreBorderElementConfig(CLAY__INIT(Clay_BorderElementConfig) { .left = { width, color }, .right = { width, color }, .top = { width, color }, .bottom = { width, color }, .cornerRadius = CLAY_CORNER_RADIUS(radius) })}, CLAY__ELEMENT_CONFIG_TYPE_BORDER_CONTAINER)
 | 
					#define CLAY_BORDER_OUTSIDE_RADIUS(width, color, radius) Clay__AttachElementConfig(CLAY__INIT(Clay_ElementConfigUnion) { .borderElementConfig = Clay__StoreBorderElementConfig(CLAY__INIT(Clay_BorderElementConfig) { .left = { width, color }, .right = { width, color }, .top = { width, color }, .bottom = { width, color }, .cornerRadius = CLAY_CORNER_RADIUS(radius) })}, CLAY__ELEMENT_CONFIG_TYPE_BORDER_CONTAINER)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CLAY_BORDER_ALL(...) Clay__AttachElementConfig(CLAY__INIT(Clay_ElementConfigUnion) { .borderElementConfig = Clay__StoreBorderElementConfig(CLAY__INIT(Clay_BorderElementConfig) { .left = __VA_ARGS__, .right = __VA_ARGS__, .top = __VA_ARGS__, .bottom = __VA_ARGS__, .betweenChildren = __VA_ARGS__ } }, CLAY__ELEMENT_CONFIG_TYPE_BORDER_CONTAINER)
 | 
					#define CLAY_BORDER_ALL(...) Clay__AttachElementConfig(CLAY__INIT(Clay_ElementConfigUnion) { .borderElementConfig = Clay__StoreBorderElementConfig(CLAY__INIT(Clay_BorderElementConfig) { .left = __VA_ARGS__, .right = __VA_ARGS__, .top = __VA_ARGS__, .bottom = __VA_ARGS__, .betweenChildren = __VA_ARGS__ } ) }, CLAY__ELEMENT_CONFIG_TYPE_BORDER_CONTAINER)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CLAY_BORDER_ALL_RADIUS(width, color, radius) Clay__AttachElementConfig(CLAY__INIT(Clay_ElementConfigUnion) { .borderElementConfig = Clay__StoreBorderElementConfig(CLAY__INIT(Clay_BorderElementConfig) { .left = { width, color }, .right = { width, color }, .top = { width, color }, .bottom = { width, color }, .betweenChildren = { width, color }, .cornerRadius = CLAY_CORNER_RADIUS(radius)}) }, CLAY__ELEMENT_CONFIG_TYPE_BORDER_CONTAINER)
 | 
					#define CLAY_BORDER_ALL_RADIUS(width, color, radius) Clay__AttachElementConfig(CLAY__INIT(Clay_ElementConfigUnion) { .borderElementConfig = Clay__StoreBorderElementConfig(CLAY__INIT(Clay_BorderElementConfig) { .left = { width, color }, .right = { width, color }, .top = { width, color }, .bottom = { width, color }, .betweenChildren = { width, color }, .cornerRadius = CLAY_CORNER_RADIUS(radius)}) }, CLAY__ELEMENT_CONFIG_TYPE_BORDER_CONTAINER)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -338,6 +338,8 @@ typedef struct {
 | 
				
			||||||
    #endif
 | 
					    #endif
 | 
				
			||||||
} Clay_ImageElementConfig;
 | 
					} Clay_ImageElementConfig;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CLAY__WRAPPER_STRUCT(Clay_ImageElementConfig);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Floating
 | 
					// Floating
 | 
				
			||||||
typedef CLAY_PACKED_ENUM {
 | 
					typedef CLAY_PACKED_ENUM {
 | 
				
			||||||
    CLAY_ATTACH_POINT_LEFT_TOP,
 | 
					    CLAY_ATTACH_POINT_LEFT_TOP,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue