Skip to content

Commit

Permalink
Merge pull request #77288 from puchik/expose_get_window_id
Browse files Browse the repository at this point in the history
Expose get_window_id() from Window class
  • Loading branch information
akien-mga committed May 23, 2023
2 parents 9dc2869 + 49890a9 commit 0125417
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/classes/Window.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@
See [method Control.get_theme_color] for details.
</description>
</method>
<method name="get_window_id" qualifiers="const">
<return type="int" />
<description>
Returns the ID of the window.
</description>
</method>
<method name="grab_focus">
<return type="void" />
<description>
Expand Down
2 changes: 2 additions & 0 deletions scene/main/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,8 @@ 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);

ClassDB::bind_method(D_METHOD("get_window_id"), &Window::get_window_id);

ClassDB::bind_method(D_METHOD("set_initial_position", "initial_position"), &Window::set_initial_position);
ClassDB::bind_method(D_METHOD("get_initial_position"), &Window::get_initial_position);

Expand Down

0 comments on commit 0125417

Please sign in to comment.