diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-24 12:50:45 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-11 23:11:17 +0000 |
commit | 9fd28d1e8151a0dca6f1c89e4328fcad01959537 (patch) | |
tree | ccabae813257f01f104b6e390aa26d58c24b4e57 /include/wlr | |
parent | feb56912409d8208253942e48bcd861400f32172 (diff) |
util/region: constify
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/util/region.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/wlr/util/region.h b/include/wlr/util/region.h index deecac0a..c3f1cbe8 100644 --- a/include/wlr/util/region.h +++ b/include/wlr/util/region.h @@ -26,33 +26,33 @@ * The resulting coordinates are rounded up or down so that the new region is * at least as big as the original one. */ -void wlr_region_scale(pixman_region32_t *dst, pixman_region32_t *src, +void wlr_region_scale(pixman_region32_t *dst, const pixman_region32_t *src, float scale); -void wlr_region_scale_xy(pixman_region32_t *dst, pixman_region32_t *src, +void wlr_region_scale_xy(pixman_region32_t *dst, const pixman_region32_t *src, float scale_x, float scale_y); /** * 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, +void wlr_region_transform(pixman_region32_t *dst, const pixman_region32_t *src, enum wl_output_transform transform, int width, int height); /** * Expands the region of `distance`. If `distance` is negative, it shrinks the * region. */ -void wlr_region_expand(pixman_region32_t *dst, pixman_region32_t *src, +void wlr_region_expand(pixman_region32_t *dst, const pixman_region32_t *src, int distance); /* * Builds the smallest possible region that contains the region rotated about * the point (ox, oy). */ -void wlr_region_rotated_bounds(pixman_region32_t *dst, pixman_region32_t *src, +void wlr_region_rotated_bounds(pixman_region32_t *dst, const pixman_region32_t *src, float rotation, int ox, int oy); -bool wlr_region_confine(pixman_region32_t *region, double x1, double y1, double x2, +bool wlr_region_confine(const pixman_region32_t *region, double x1, double y1, double x2, double y2, double *x2_out, double *y2_out); #endif |