summaryrefslogtreecommitdiff
path: root/core/bind/core_bind.cpp
diff options
context:
space:
mode:
authorMaxim Sheronov <maxim.sheronov@gmail.com>2017-09-12 22:09:06 +0300
committerMaxim Sheronov <maxim.sheronov@gmail.com>2017-09-13 20:57:07 +0300
commit0fffa45158bebeb4aaba1df1d271c000fffbe7f7 (patch)
tree369918b0d7c9f367a7396c3584ac84ab550bd103 /core/bind/core_bind.cpp
parent69017974beb16dcfa971f9b6f33a4f005be57bef (diff)
Fix enums bindings
Add missed bindings for enums Move some enums to class to have correct output of api.json
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r--core/bind/core_bind.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index 0f217c8235..d0acd04497 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -440,7 +440,7 @@ bool _OS::is_vsync_enabled() const {
return OS::get_singleton()->is_vsync_enabled();
}
-PowerState _OS::get_power_state() {
+OS::PowerState _OS::get_power_state() {
return OS::get_singleton()->get_power_state();
}
@@ -1142,11 +1142,11 @@ void _OS::_bind_methods() {
BIND_ENUM_CONSTANT(SYSTEM_DIR_PICTURES);
BIND_ENUM_CONSTANT(SYSTEM_DIR_RINGTONES);
- BIND_ENUM_CONSTANT(POWERSTATE_UNKNOWN);
- BIND_ENUM_CONSTANT(POWERSTATE_ON_BATTERY);
- BIND_ENUM_CONSTANT(POWERSTATE_NO_BATTERY);
- BIND_ENUM_CONSTANT(POWERSTATE_CHARGING);
- BIND_ENUM_CONSTANT(POWERSTATE_CHARGED);
+ BIND_ENUM_CONSTANT(OS::POWERSTATE_UNKNOWN);
+ BIND_ENUM_CONSTANT(OS::POWERSTATE_ON_BATTERY);
+ BIND_ENUM_CONSTANT(OS::POWERSTATE_NO_BATTERY);
+ BIND_ENUM_CONSTANT(OS::POWERSTATE_CHARGING);
+ BIND_ENUM_CONSTANT(OS::POWERSTATE_CHARGED);
}
_OS::_OS() {