diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-27 05:50:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-27 06:07:34 +0300 |
commit | 66800a1deb2dc9e6cd13690a5246fbbea45c16b0 (patch) | |
tree | 946efe3dfd8e2fb98764c87ef502a1a1caf44e97 /source/blender/blenlib/BLI_rect.h | |
parent | edf4378c442a24c8f35959a52a1d3e9894e0b6a0 (diff) |
BLI_rect: add resize_x/y functions
Without this, it's inconvenient to resize a single axis
and doesn't read very well.
Diffstat (limited to 'source/blender/blenlib/BLI_rect.h')
-rw-r--r-- | source/blender/blenlib/BLI_rect.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_rect.h b/source/blender/blenlib/BLI_rect.h index 1d15a10ebc0..1d742e2c28a 100644 --- a/source/blender/blenlib/BLI_rect.h +++ b/source/blender/blenlib/BLI_rect.h @@ -62,8 +62,12 @@ void BLI_rcti_translate(struct rcti *rect, int x, int y); void BLI_rcti_recenter(struct rcti *rect, int x, int y); void BLI_rctf_recenter(struct rctf *rect, float x, float y); void BLI_rcti_resize(struct rcti *rect, int x, int y); +void BLI_rcti_resize_x(struct rcti *rect, int x); +void BLI_rcti_resize_y(struct rcti *rect, int y); void BLI_rcti_pad(struct rcti *rect, int pad_x, int pad_y); void BLI_rctf_resize(struct rctf *rect, float x, float y); +void BLI_rctf_resize_x(struct rctf *rect, float x); +void BLI_rctf_resize_y(struct rctf *rect, float y); void BLI_rcti_scale(rcti *rect, const float scale); void BLI_rctf_scale(rctf *rect, const float scale); void BLI_rctf_pad_y(struct rctf *rect, |