mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
util/box: Introduce wlr_box_contains_box
This commit is contained in:
parent
8730ca9661
commit
4b4ca11f6f
2 changed files with 19 additions and 0 deletions
|
|
@ -71,6 +71,14 @@ bool wlr_box_intersection(struct wlr_box *dest, const struct wlr_box *box_a,
|
|||
*/
|
||||
bool wlr_box_contains_point(const struct wlr_box *box, double x, double y);
|
||||
|
||||
/**
|
||||
* Verifies that a box is fully contained within another box.
|
||||
*
|
||||
* Returns true if the "smaller" box is fully contained within the "bigger" box.
|
||||
* If either of the boxes are empty, false is returned.
|
||||
*/
|
||||
bool wlr_box_contains_box(const struct wlr_box *bigger, const struct wlr_box *smaller);
|
||||
|
||||
/**
|
||||
* Checks whether a box is empty or not.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue