diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-10-31 14:23:25 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-10-31 14:23:47 -0300 |
commit | a4ea63737c9ed862c4a421d668942d6ffaf5a861 (patch) | |
tree | db255867f3e033cd48e080340e9e8e2812badf45 /scene/gui/viewport_container.h | |
parent | 157fa55e34b9bf21a22876aecef89ed0a9491412 (diff) |
Ability to shrink 3D viewport by half
Diffstat (limited to 'scene/gui/viewport_container.h')
-rw-r--r-- | scene/gui/viewport_container.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/viewport_container.h b/scene/gui/viewport_container.h index 630523b5fb..ebf5869ed9 100644 --- a/scene/gui/viewport_container.h +++ b/scene/gui/viewport_container.h @@ -37,6 +37,7 @@ class ViewportContainer : public Container { GDCLASS(ViewportContainer, Container); bool stretch; + int shrink; protected: void _notification(int p_what); @@ -46,6 +47,9 @@ public: void set_stretch(bool p_enable); bool is_stretch_enabled() const; + void set_stretch_shrink(int p_shrink); + int get_stretch_shrink() const; + virtual Size2 get_minimum_size() const; ViewportContainer(); |