diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-05-27 12:09:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-27 12:09:42 +0200 |
commit | e8fbb28e207de4b3e6a50b4f683bbff0673360ab (patch) | |
tree | 3592784a29fee57e4e9f774ae68278f4288debf5 /core/bind/core_bind.cpp | |
parent | d4e26fd588e2d136b19b4616a743d67f600c6192 (diff) | |
parent | 2b9ed68d6a261bdabf4a6a3e205e42471c38d443 (diff) | |
download | redot-engine-e8fbb28e207de4b3e6a50b4f683bbff0673360ab.tar.gz |
Merge pull request #29119 from bruvzg/native_icon_support
Add native window/taskbar icon support for Windows and macOS.
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r-- | core/bind/core_bind.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index ddb60e1345..27b33d942b 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -611,6 +611,11 @@ uint64_t _OS::get_dynamic_memory_usage() const { return OS::get_singleton()->get_dynamic_memory_usage(); } +void _OS::set_native_icon(const String &p_filename) { + + OS::get_singleton()->set_native_icon(p_filename); +} + void _OS::set_icon(const Ref<Image> &p_icon) { OS::get_singleton()->set_icon(p_icon); @@ -1199,6 +1204,7 @@ void _OS::_bind_methods() { ClassDB::bind_method(D_METHOD("get_system_time_secs"), &_OS::get_system_time_secs); ClassDB::bind_method(D_METHOD("get_system_time_msecs"), &_OS::get_system_time_msecs); + ClassDB::bind_method(D_METHOD("set_native_icon", "filename"), &_OS::set_native_icon); ClassDB::bind_method(D_METHOD("set_icon", "icon"), &_OS::set_icon); ClassDB::bind_method(D_METHOD("get_exit_code"), &_OS::get_exit_code); |