util/box: introduce wlr_fbox_intersects

Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
This commit is contained in:
Loukas Agorgianitis 2026-03-27 21:28:18 +02:00
parent d05f14f38b
commit 807373594e
No known key found for this signature in database
GPG key ID: DDC6FA7D5BB332E6
2 changed files with 16 additions and 0 deletions

View file

@ -114,6 +114,13 @@ void wlr_fbox_transform(struct wlr_fbox *dest, const struct wlr_fbox *box,
*/
bool wlr_box_intersects(const struct wlr_box *a, const struct wlr_box *b);
/**
* Checks whether two boxes intersect.
*
* Returns false if either box is empty.
*/
bool wlr_fbox_intersects(const struct wlr_fbox *a, const struct wlr_fbox *b);
/**
* Returns true if the two boxes are equal, false otherwise.
*/