From 77f88bd146b1ce10d405c7812bdd2c4d78857bd4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 22 Jan 2025 18:42:14 -0500 Subject: Factor out puglIsValidSize() --- src/internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/internal.h') 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); -- cgit v1.2.1