summaryrefslogtreecommitdiffstats
path: root/scene/main/window.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-02 07:20:45 +0200
committerGitHub <noreply@github.com>2020-07-02 07:20:45 +0200
commit1ae40793c78ba9ab84d102772bb271c91a492568 (patch)
tree4b8eb5059519ee08c233ee412a77fe0a3bcfcd6b /scene/main/window.cpp
parent0a8dbe7f75f2999e0f73af83dda3510c965f2b94 (diff)
parent39a77735bd9ef140a3cc5496a07f92a412c84320 (diff)
downloadredot-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.cpp8
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);