aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/util
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-26 22:11:09 +0100
committeremersion <contact@emersion.fr>2018-01-26 22:11:09 +0100
commitece2c1e4e200192bde19a2590b5a31f244e09524 (patch)
treed8b2bb12b076bf73b70c21b2283ded34fedaee86 /include/wlr/util
parenta98ece68d32031dbd81b0064fad659515fc09f76 (diff)
Damage tracking for transformed outputs
Diffstat (limited to 'include/wlr/util')
-rw-r--r--include/wlr/util/region.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/util/region.h b/include/wlr/util/region.h
index e268436b..5d2b37e1 100644
--- a/include/wlr/util/region.h
+++ b/include/wlr/util/region.h
@@ -2,6 +2,7 @@
#define WLR_UTIL_REGION_H
#include <pixman.h>
+#include <wayland-server.h>
/**
* Scales a region, ie. multiplies all its coordinates by `scale`.
@@ -12,4 +13,10 @@
void wlr_region_scale(pixman_region32_t *dst, pixman_region32_t *src,
float scale);
+/**
+ * Applies a transform to a region inside a box of size `width` x `height`.
+ */
+void wlr_region_transform(pixman_region32_t *dst, pixman_region32_t *src,
+ enum wl_output_transform transform, int width, int height);
+
#endif