From 2e07e028c1080051846b1b200493e528a8f9a5e6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 28 Sep 2014 22:00:30 +0200 Subject: Support minimum window size. Conflicts: pugl/pugl_win.cpp --- pugl/pugl_internal.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pugl/pugl_internal.h') diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index 32d31bf..8a193d6 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -52,6 +52,8 @@ struct PuglViewImpl { int width; int height; + int min_width; + int min_height; int mods; bool mouse_in_view; bool ignoreKeyRepeat; @@ -89,6 +91,13 @@ puglInitWindowSize(PuglView* view, int width, int height) view->height = height; } +void +puglInitWindowMinSize(PuglView* view, int width, int height) +{ + view->min_width = width; + view->min_height = height; +} + void puglInitWindowParent(PuglView* view, PuglNativeWindow parent) { -- cgit v1.2.3