mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	box: add wlr_fbox
Same as wlr_box, but for floating-point numbers.
This commit is contained in:
		
							parent
							
								
									5118189a2b
								
							
						
					
					
						commit
						9814213a91
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -18,6 +18,11 @@ struct wlr_box {
 | 
				
			||||||
	int width, height;
 | 
						int width, height;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					struct wlr_fbox {
 | 
				
			||||||
 | 
						double x, y;
 | 
				
			||||||
 | 
						double width, height;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void wlr_box_closest_point(const struct wlr_box *box, double x, double y,
 | 
					void wlr_box_closest_point(const struct wlr_box *box, double x, double y,
 | 
				
			||||||
	double *dest_x, double *dest_y);
 | 
						double *dest_x, double *dest_y);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue