diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-10 10:52:12 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-10 10:52:12 +0100 |
commit | e3a87641bde07c1a2a8a9efdff8ad88856a14cd7 (patch) | |
tree | 3fdc163f6d6100c1481d1ff8c25d0bd072d7759d /doc/classes | |
parent | 796690948f275039f205fab815fde03e4022edab (diff) | |
parent | ca8b762797cd725124f26c77f1a872cef269022b (diff) |
Merge pull request #71147 from bruvzg/get_win
Add Node::get_window() method.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Node.xml | 6 |
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" /> |