Kenny Levinsen
ff7d093800
util/box: Add wlr_box_intersects
...
wlr_box_intersection generates a new box based on the intersection of
two boxes. Often we simply want to know *if* two boxes intersected,
which we can answer much cheaper.
Add wlr_box_intersects, in similar vein as wlr_box_contains_box but
returning true for any overlap.
2026-03-09 22:09:40 +00:00
Alexander Orzechowski
4b4ca11f6f
util/box: Introduce wlr_box_contains_box
2024-08-06 20:00:01 -04:00
Kirill Primak
5f4a35290d
util/box: always treat NULL boxes as empty
2023-05-23 21:08:22 +03:00
Alexander Orzechowski
1d08ef234e
util/box: Introduce wlr_fbox_equal
2022-08-15 06:14:59 -04:00
Alexander Orzechowski
9f3bd64a33
util/box: Introduce wlr_box_equal
2022-08-15 06:14:28 -04:00
Simon Ser
28d89779af
Reformat doc comments
...
Unify the way we document our APIs. See CONTRIBUTING.md for the
rules.
2022-05-25 14:22:58 +00:00
Elyes HAOUAS
dc3d1530bf
Fix spelling errors
...
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
2021-10-02 10:22:13 +02:00
Simon Ser
fdc22449d6
util/box: introduce wlr_fbox_empty
...
Same as wlr_box_empty, but for wlr_fbox.
2021-09-22 10:45:39 -06:00
Kirill Primak
664307f968
util/box: introduce wlr_fbox_transform()
...
A floating-point version of wlr_box_transform().
2021-08-24 10:36:06 +02:00
Simon Zeni
4c7657ee62
util/box: stabilize interface
2021-07-06 21:43:17 +02:00
Simon Zeni
e192d87731
move wlr_box from /types to /util
2021-07-06 21:43:17 +02:00