diff options
author | Simon Ser <contact@emersion.fr> | 2020-06-08 18:41:42 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-06-17 09:10:54 -0600 |
commit | 9814213a91e7ceb0f8d422c45562fe0c5e74f2a9 (patch) | |
tree | 0688434f4be46b41193d20c8899b8756a6f11578 /include/wlr | |
parent | 5118189a2b5f7cf1575b03d83320aec0a8a1b65f (diff) |
box: add wlr_fbox
Same as wlr_box, but for floating-point numbers.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_box.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_box.h b/include/wlr/types/wlr_box.h index 40585ab1..73e51b34 100644 --- a/include/wlr/types/wlr_box.h +++ b/include/wlr/types/wlr_box.h @@ -18,6 +18,11 @@ struct wlr_box { int width, height; }; +struct wlr_fbox { + double x, y; + double width, height; +}; + void wlr_box_closest_point(const struct wlr_box *box, double x, double y, double *dest_x, double *dest_y); |