mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	util/box: Introduce wlr_fbox_equal
This commit is contained in:
		
							parent
							
								
									9f3bd64a33
								
							
						
					
					
						commit
						1d08ef234e
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -99,6 +99,11 @@ void wlr_fbox_transform(struct wlr_fbox *dest, const struct wlr_fbox *box,
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
bool wlr_box_equal(const struct wlr_box *a, const struct wlr_box *b);
 | 
					bool wlr_box_equal(const struct wlr_box *a, const struct wlr_box *b);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Returns true if the two boxes are equal, false otherwise.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					bool wlr_fbox_equal(const struct wlr_fbox *a, const struct wlr_fbox *b);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -179,4 +179,9 @@ bool wlr_box_equal(const struct wlr_box *a, const struct wlr_box *b) {
 | 
				
			||||||
		a->width == b->width && a->height == b->height;
 | 
							a->width == b->width && a->height == b->height;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool wlr_fbox_equal(const struct wlr_fbox *a, const struct wlr_fbox *b) {
 | 
				
			||||||
 | 
						return a->x == b->x && a->y == b->y &&
 | 
				
			||||||
 | 
							a->width == b->width && a->height == b->height;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue