diff options
author | pommicket <pommicket@gmail.com> | 2023-08-06 10:59:07 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-06 10:59:07 -0400 |
commit | 413e8f4ba1c5937de40f6366a88c26f540cbb222 (patch) | |
tree | 2e4240cfd72bdd23c5ee85e5a94e97717af95a45 /util.h | |
parent | 5891bf8f920be9cfa40cc03e86c16e6406943c20 (diff) |
new menu system all done
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -212,7 +212,17 @@ void rect_coords(Rect r, float *x1, float *y1, float *x2, float *y2); void rect_print(Rect r); float rects_intersect(Rect r1, Rect r2); bool rect_clip_to_rect(Rect *clipped, Rect clipper); +/// removes `amount` from all sides of r Rect rect_shrink(Rect r, float amount); +/// removes `amount` from the left side of r +Rect rect_shrink_left(Rect r, float amount); +/// removes `amount` from the top side of r +Rect rect_shrink_top(Rect r, float amount); +/// removes `amount` from the right side of r +Rect rect_shrink_right(Rect r, float amount); +/// removes `amount` from the bottom side of r +Rect rect_shrink_bottom(Rect r, float amount); +/// adds `amount` to all sides of r Rect rect_grow(Rect r, float amount); vec4 color_rgba_to_hsva(vec4 rgba); vec4 color_hsva_to_rgba(vec4 hsva); |