aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/util
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-15 06:14:28 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-15 06:14:28 -0400
commit9f3bd64a332c1bacee57d394bdaf0b4d06153ab0 (patch)
treef88eec9f09a35fd1da0b45808b19dd4a15ac76c4 /include/wlr/util
parent59675347e6c1ac86ec750ea69cddaf0c873f6437 (diff)
util/box: Introduce wlr_box_equal
Diffstat (limited to 'include/wlr/util')
-rw-r--r--include/wlr/util/box.h9
1 files changed, 9 insertions, 0 deletions
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