aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/util
diff options
context:
space:
mode:
authorKirill Primak <vyivel@posteo.net>2021-08-23 23:32:43 +0300
committerSimon Ser <contact@emersion.fr>2021-08-24 10:36:06 +0200
commit664307f9682eaac573b22a2282a6d089e1abd489 (patch)
tree7381bd88510340d3ad5c6ef0bc3cad19869bcc1c /include/wlr/util
parentf2f3df9fb1ecc6d5d4fbda26ba5d57a8c04a3b62 (diff)
util/box: introduce wlr_fbox_transform()
A floating-point version of wlr_box_transform().
Diffstat (limited to 'include/wlr/util')
-rw-r--r--include/wlr/util/box.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/util/box.h b/include/wlr/util/box.h
index 5be2cdc1..b9ddca25 100644
--- a/include/wlr/util/box.h
+++ b/include/wlr/util/box.h
@@ -78,4 +78,9 @@ bool wlr_box_empty(const struct wlr_box *box);
void wlr_box_transform(struct wlr_box *dest, const struct wlr_box *box,
enum wl_output_transform transform, int width, int height);
+/**
+ * Transforms a floating-point box inside a (0, 0, width, height) box.
+ */
+void wlr_fbox_transform(struct wlr_fbox *dest, const struct wlr_fbox *box,
+ enum wl_output_transform transform, double width, double height);
#endif