From 9814213a91e7ceb0f8d422c45562fe0c5e74f2a9 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 8 Jun 2020 18:41:42 +0200 Subject: [PATCH] box: add wlr_fbox Same as wlr_box, but for floating-point numbers. --- include/wlr/types/wlr_box.h | 5 +++++ 1 file changed, 5 insertions(+) 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);