[DisplayServer] Add method to check if native window is focused.

This commit is contained in:
bruvzg 2023-06-15 10:53:31 +03:00
parent 9c41c4ecb6
commit 28db3c7158
18 changed files with 71 additions and 4 deletions

View file

@ -1258,6 +1258,13 @@
Returns the V-Sync mode of the given window.
</description>
</method>
<method name="window_is_focused" qualifiers="const">
<return type="bool" />
<param index="0" name="window_id" type="int" default="0" />
<description>
Returns [code]true[/code] if the window specified by [param window_id] is focused.
</description>
</method>
<method name="window_is_maximize_allowed" qualifiers="const">
<return type="bool" />
<param index="0" name="window_id" type="int" default="0" />