summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-06 11:39:18 +0100
committerGitHub <noreply@github.com>2020-01-06 11:39:18 +0100
commit845480497207839bef48997d152f00b60b6176a8 (patch)
tree8a4b65992148e55897e33c9b09c9664c2dda3e6b /doc/classes
parent7c3543380fe9ecd3d9a2d2dd3319e1c37e06820f (diff)
parent21a392341034169fff18db626e1c356545289af5 (diff)
Merge pull request #33967 from Calinou/add-os-is-window-focused
Add an `OS.is_window_focused()` getter
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/OS.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml
index 22f4dc2d83..71d0c1a6fe 100644
--- a/doc/classes/OS.xml
+++ b/doc/classes/OS.xml
@@ -655,6 +655,14 @@
Returns [code]true[/code] if the window should always be on top of other windows.
</description>
</method>
+ <method name="is_window_focused" qualifiers="const">
+ <return type="bool">
+ </return>
+ <description>
+ Returns [code]true[/code] if the window is currently focused.
+ [b]Note:[/b] Only implemented on desktop platforms. On other platforms, it will always return [code]true[/code].
+ </description>
+ </method>
<method name="kill">
<return type="int" enum="Error">
</return>