From 9f3bd64a332c1bacee57d394bdaf0b4d06153ab0 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 15 Aug 2022 06:14:28 -0400 Subject: util/box: Introduce wlr_box_equal --- include/wlr/util/box.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/wlr/util') diff --git a/include/wlr/util/box.h b/include/wlr/util/box.h index 8516688d..e01b351e 100644 --- a/include/wlr/util/box.h +++ b/include/wlr/util/box.h @@ -92,4 +92,13 @@ bool wlr_fbox_empty(const struct wlr_fbox *box); void wlr_fbox_transform(struct wlr_fbox *dest, const struct wlr_fbox *box, enum wl_output_transform transform, double width, double height); +#ifdef WLR_USE_UNSTABLE + +/** + * Returns true if the two boxes are equal, false otherwise. + */ +bool wlr_box_equal(const struct wlr_box *a, const struct wlr_box *b); + +#endif + #endif -- cgit v1.2.3