diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-02 07:20:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-02 07:20:45 +0200 |
| commit | 1ae40793c78ba9ab84d102772bb271c91a492568 (patch) | |
| tree | 4b8eb5059519ee08c233ee412a77fe0a3bcfcd6b /scene/main/window.cpp | |
| parent | 0a8dbe7f75f2999e0f73af83dda3510c965f2b94 (diff) | |
| parent | 39a77735bd9ef140a3cc5496a07f92a412c84320 (diff) | |
| download | redot-engine-1ae40793c78ba9ab84d102772bb271c91a492568.tar.gz | |
Merge pull request #40022 from reduz/fix-subwindow-clamp
Add ability to clamp embedded subwindows to parent
Diffstat (limited to 'scene/main/window.cpp')
| -rw-r--r-- | scene/main/window.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index 8604bb78ac..0463615d4d 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -1251,6 +1251,14 @@ Rect2i Window::get_parent_rect() const { } } +void Window::set_clamp_to_embedder(bool p_enable) { + clamp_to_embedder = p_enable; +} + +bool Window::is_clamped_to_embedder() const { + return clamp_to_embedder; +} + void Window::_bind_methods() { ClassDB::bind_method(D_METHOD("set_title", "title"), &Window::set_title); ClassDB::bind_method(D_METHOD("get_title"), &Window::get_title); |
