mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-25 03:19:49 +01:00
22 lines
611 B
C
22 lines
611 B
C
#ifndef WLR_UTIL_REGION_H
|
|
#define WLR_UTIL_REGION_H
|
|
|
|
#include <pixman.h>
|
|
#include <wayland-server.h>
|
|
|
|
/**
|
|
* Scales a region, ie. multiplies all its coordinates by `scale`.
|
|
*
|
|
* 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,
|
|
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
|