summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-10 09:40:44 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-10 11:10:46 +0200
commitca8b762797cd725124f26c77f1a872cef269022b (patch)
tree9ad4c56a1ab0925c70c163d2ec580a9c95322162 /doc/classes
parent269fa200d04ae96b0114b788e18df638c5fb164b (diff)
Add Node::get_window() method.
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Node.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml
index 0ccc4155b4..02fd6dae30 100644
--- a/doc/classes/Node.xml
+++ b/doc/classes/Node.xml
@@ -421,6 +421,12 @@
Returns the node's [Viewport].
</description>
</method>
+ <method name="get_window" qualifiers="const">
+ <return type="Window" />
+ <description>
+ Returns the [Window] that contains this node. If the node is in the main window, this is equivalent to getting the root node ([code]get_tree().get_root()[/code]).
+ </description>
+ </method>
<method name="has_node" qualifiers="const">
<return type="bool" />
<param index="0" name="path" type="NodePath" />