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_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pugl/pugl_internal.h') diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index 6e7e621..9566c6f 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -174,6 +174,13 @@ puglGetVisible(PuglView* view) return view->visible; } +void +puglGetSize(PuglView* view, int* width, int* height) +{ + *width = view->width; + *height = view->height; +} + uint32_t puglGetEventTimestamp(PuglView* view) { -- cgit v1.2.3