Add drop_area_t
This commit is contained in:
		
							
								
								
									
										17
									
								
								include/drop_area.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								include/drop_area.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| #ifndef DROP_AREA_H | ||||
| #define DROP_AREA_H | ||||
|  | ||||
| #include "colour.h" | ||||
| #include "window.h" | ||||
| #include <stdbool.h> | ||||
|  | ||||
| typedef struct { | ||||
|   render_rect_t rect; | ||||
|   colour_t border_colour; | ||||
|   bool mouseover; | ||||
| } drop_area_t; | ||||
|  | ||||
| void init_drop_area(window_t *wnd, drop_area_t *area, render_rect_t rect, | ||||
|                     colour_t border_colour); | ||||
|  | ||||
| #endif // !DROP_AREA_H | ||||
		Reference in New Issue
	
	Block a user