From a25ecaf03e75e61314b7271068a030b7d33eaf09 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 1 Sep 2016 22:23:00 -0400 Subject: Add puglGetSize() --- pugl/pugl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pugl/pugl.h') diff --git a/pugl/pugl.h b/pugl/pugl.h index 07d3cf4..0c6dd79 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -283,6 +283,12 @@ puglGetContext(PuglView* view); PUGL_API bool puglGetVisible(PuglView* view); +/** + Get the current size of the view. +*/ +PUGL_API void +puglGetSize(PuglView* view, int* width, int* height); + /** Return the timestamp (if any) of the currently-processing event. */ -- cgit v1.2.3