diff options
author | David Robillard <d@drobilla.net> | 2025-01-22 18:42:14 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-01-22 18:42:14 -0500 |
commit | 77f88bd146b1ce10d405c7812bdd2c4d78857bd4 (patch) | |
tree | 985979dd02e043b5bc7f635e406b34bd6b3e46e4 /src/internal.h | |
parent | 44e65f78fca1597471d31a96907d5be465ca1ec1 (diff) | |
download | pugl-77f88bd146b1ce10d405c7812bdd2c4d78857bd4.tar.gz pugl-77f88bd146b1ce10d405c7812bdd2c4d78857bd4.tar.bz2 pugl-77f88bd146b1ce10d405c7812bdd2c4d78857bd4.zip |
Factor out puglIsValidSize()
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal.h b/src/internal.h index 3a2663b..8497c50 100644 --- a/src/internal.h +++ b/src/internal.h @@ -22,6 +22,10 @@ PUGL_BEGIN_DECLS bool puglIsValidPosition(int x, int y); +/// Return true if `width`,`height` is a valid position +bool +puglIsValidSize(unsigned x, unsigned y); + /// Return true if `size` is a valid view size bool puglIsValidArea(PuglArea size); |