diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-28 22:00:30 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-16 18:31:22 -0500 |
commit | 2e07e028c1080051846b1b200493e528a8f9a5e6 (patch) | |
tree | 61db9c5aba47555204d1b054662ac1954008d256 /pugl/pugl_internal.h | |
parent | 3fa6c2c10f7d4ca06fd30e2442dcd25f492cc351 (diff) |
Support minimum window size.
Conflicts:
pugl/pugl_win.cpp
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r-- | pugl/pugl_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
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; @@ -90,6 +92,13 @@ puglInitWindowSize(PuglView* view, int width, int height) } void +puglInitWindowMinSize(PuglView* view, int width, int height) +{ + view->min_width = width; + view->min_height = height; +} + +void puglInitWindowParent(PuglView* view, PuglNativeWindow parent) { view->parent = parent; |