1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Add OS.has_clipboard() to check clipboard content

This commit is contained in:
Haoyu Qiu
2022-01-19 20:06:44 +08:00
parent 3fcc31eea7
commit 76297e744d
10 changed files with 52 additions and 1 deletions

View File

@@ -601,6 +601,12 @@
[b]Note:[/b] This method is implemented on macOS.
</description>
</method>
<method name="has_clipboard" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if there is content on the clipboard.
</description>
</method>
<method name="has_environment" qualifiers="const">
<return type="bool" />
<argument index="0" name="variable" type="String" />