Public Types | |
enum | Weekday { DAY_SUNDAY, DAY_MONDAY, DAY_TUESDAY, DAY_WEDNESDAY, DAY_THURSDAY, DAY_FRIDAY, DAY_SATURDAY } |
enum | Month { MONTH_JANUARY, MONTH_FEBRUARY, MONTH_MARCH, MONTH_APRIL, MONTH_MAY, MONTH_JUNE, MONTH_JULY, MONTH_AUGUST, MONTH_SEPTEMBER, MONTH_OCTOBER, MONTH_NOVEMBER, MONTH_DECEMBER } |
enum | SystemDir { SYSTEM_DIR_DESKTOP, SYSTEM_DIR_DCIM, SYSTEM_DIR_DOCUMENTS, SYSTEM_DIR_DOWNLOADS, SYSTEM_DIR_MOVIES, SYSTEM_DIR_MUSIC, SYSTEM_DIR_PICTURES, SYSTEM_DIR_RINGTONES } |
enum | ScreenOrientation { SCREEN_ORIENTATION_LANDSCAPE, SCREEN_ORIENTATION_PORTRAIT, SCREEN_ORIENTATION_REVERSE_LANDSCAPE, SCREEN_ORIENTATION_REVERSE_PORTRAIT, SCREEN_ORIENTATION_SENSOR_LANDSCAPE, SCREEN_ORIENTATION_SENSOR_PORTRAIT, SCREEN_ORIENTATION_SENSOR } |
Public Types inherited from Object | |
enum | ConnectFlags { CONNECT_DEFERRED =1, CONNECT_PERSIST =2, CONNECT_ONESHOT =4 } |
enum | { NOTIFICATION_POSTINITIALIZE =0, NOTIFICATION_PREDELETE =1 } |
Public Member Functions | |
Point2 | get_mouse_pos () const |
void | set_window_title (const String &p_title) |
int | get_mouse_button_state () const |
void | set_clipboard (const String &p_text) |
String | get_clipboard () const |
void | set_video_mode (const Size2 &p_size, bool p_fullscreen, bool p_resizeable, int p_screen=0) |
Size2 | get_video_mode (int p_screen=0) const |
bool | is_video_mode_fullscreen (int p_screen=0) const |
bool | is_video_mode_resizable (int p_screen=0) const |
Array | get_fullscreen_mode_list (int p_screen=0) const |
virtual int | get_screen_count () const |
virtual int | get_current_screen () const |
virtual void | set_current_screen (int p_screen) |
virtual Point2 | get_screen_position (int p_screen=0) const |
virtual Size2 | get_screen_size (int p_screen=0) const |
virtual Point2 | get_window_position () const |
virtual void | set_window_position (const Point2 &p_position) |
virtual Size2 | get_window_size () const |
virtual void | set_window_size (const Size2 &p_size) |
virtual void | set_window_fullscreen (bool p_enabled) |
virtual bool | is_window_fullscreen () const |
virtual void | set_window_resizable (bool p_enabled) |
virtual bool | is_window_resizable () const |
virtual void | set_window_minimized (bool p_enabled) |
virtual bool | is_window_minimized () const |
virtual void | set_window_maximized (bool p_enabled) |
virtual bool | is_window_maximized () const |
Error | native_video_play (String p_path, float p_volume, String p_audio_track, String p_subtitle_track) |
bool | native_video_is_playing () |
void | native_video_pause () |
void | native_video_unpause () |
void | native_video_stop () |
void | set_iterations_per_second (int p_ips) |
int | get_iterations_per_second () const |
void | set_target_fps (int p_fps) |
float | get_target_fps () const |
void | set_low_processor_usage_mode (bool p_enabled) |
bool | is_in_low_processor_usage_mode () const |
String | get_executable_path () const |
int | execute (const String &p_path, const Vector< String > &p_arguments, bool p_blocking, Array p_output=Array()) |
Error | kill (int p_pid) |
Error | shell_open (String p_uri) |
int | get_process_ID () const |
bool | has_environment (const String &p_var) const |
String | get_environment (const String &p_var) const |
String | get_name () const |
Vector< String > | get_cmdline_args () |
String | get_locale () const |
String | get_model_name () const |
MainLoop * | get_main_loop () const |
String | get_custom_level () const |
float | get_frames_per_second () const |
void | dump_memory_to_file (const String &p_file) |
void | dump_resources_to_file (const String &p_file) |
void | print_resources_in_use (bool p_short=false) |
void | print_all_resources (const String &p_to_file) |
void | print_all_textures_by_size () |
void | print_resources_by_type (const Vector< String > &p_types) |
bool | has_touchscreen_ui_hint () const |
bool | is_debug_build () const |
String | get_unique_ID () const |
String | get_scancode_string (uint32_t p_code) const |
bool | is_scancode_unicode (uint32_t p_unicode) const |
int | find_scancode_from_string (const String &p_code) const |
void | set_use_file_access_save_and_swap (bool p_enable) |
void | set_icon (const Image &p_icon) |
Dictionary | get_date (bool utc) const |
Dictionary | get_time (bool utc) const |
Dictionary | get_time_zone_info () const |
uint64_t | get_unix_time () const |
uint64_t | get_system_time_secs () const |
int | get_static_memory_usage () const |
int | get_static_memory_peak_usage () const |
int | get_dynamic_memory_usage () const |
void | delay_usec (uint32_t p_usec) const |
void | delay_msec (uint32_t p_msec) const |
uint32_t | get_ticks_msec () const |
uint32_t | get_splash_tick_msec () const |
bool | can_use_threads () const |
bool | can_draw () const |
int | get_frames_drawn () |
bool | is_stdout_verbose () const |
int | get_processor_count () const |
String | get_system_dir (SystemDir p_dir) const |
String | get_data_dir () const |
void | alert (const String &p_alert, const String &p_title="ALERT!") |
void | set_screen_orientation (ScreenOrientation p_orientation) |
ScreenOrientation | get_screen_orientation () const |
void | set_keep_screen_on (bool p_enabled) |
bool | is_keep_screen_on () const |
void | set_time_scale (float p_scale) |
float | get_time_scale () |
bool | is_ok_left_and_cancel_right () const |
Error | set_thread_name (const String &p_name) |
Public Member Functions inherited from Object | |
_FORCE_INLINE_ void | _change_notify (const char *p_what="") |
bool | _is_gpl_reversed () const |
_FORCE_INLINE_ ObjectID | get_instance_ID () const |
void | add_change_receptor (Object *p_receptor) |
void | remove_change_receptor (Object *p_receptor) |
template<class T > | |
T * | cast_to () |
template<class T > | |
const T * | cast_to () const |
virtual String | get_type () const |
virtual String | get_save_type () const |
virtual bool | is_type (const String &p_type) const |
virtual bool | is_type_ptr (void *p_ptr) const |
_FORCE_INLINE_ const StringName & | get_type_name () const |
void | set (const StringName &p_name, const Variant &p_value, bool *r_valid=NULL) |
Variant | get (const StringName &p_name, bool *r_valid=NULL) const |
void | get_property_list (List< PropertyInfo > *p_list, bool p_reversed=false) const |
bool | has_method (const StringName &p_method) const |
void | get_method_list (List< MethodInfo > *p_list) const |
Variant | callv (const StringName &p_method, const Array &p_args) |
virtual Variant | call (const StringName &p_method, const Variant **p_args, int p_argcount, Variant::CallError &r_error) |
virtual void | call_multilevel (const StringName &p_method, const Variant **p_args, int p_argcount) |
virtual void | call_multilevel_reversed (const StringName &p_method, const Variant **p_args, int p_argcount) |
Variant | call (const StringName &p_name, VARIANT_ARG_LIST) |
void | call_multilevel (const StringName &p_name, VARIANT_ARG_LIST) |
void | notification (int p_notification, bool p_reversed=false) |
virtual Variant | getvar (const Variant &p_key, bool *r_valid=NULL) const |
virtual void | setvar (const Variant &p_key, const Variant &p_value, bool *r_valid=NULL) |
void | set_script (const RefPtr &p_script) |
RefPtr | get_script () const |
bool | has_meta (const String &p_name) const |
void | set_meta (const String &p_name, const Variant &p_value) |
Variant | get_meta (const String &p_name) const |
void | get_meta_list (List< String > *p_list) const |
void | set_script_instance (ScriptInstance *p_instance) |
_FORCE_INLINE_ ScriptInstance * | get_script_instance () const |
void | add_user_signal (const MethodInfo &p_signal) |
void | emit_signal (const StringName &p_name, VARIANT_ARG_LIST) |
void | emit_signal (const StringName &p_name, const Variant **p_args, int p_argcount) |
void | get_signal_list (List< MethodInfo > *p_signals) const |
void | get_signal_connection_list (const StringName &p_signal, List< Connection > *p_connections) const |
void | get_all_signal_connections (List< Connection > *p_connections) const |
Error | connect (const StringName &p_signal, Object *p_to_object, const StringName &p_to_method, const Vector< Variant > &p_binds=Vector< Variant >(), uint32_t p_flags=0) |
void | disconnect (const StringName &p_signal, Object *p_to_object, const StringName &p_to_method) |
bool | is_connected (const StringName &p_signal, Object *p_to_object, const StringName &p_to_method) const |
void | call_deferred (const StringName &p_method, VARIANT_ARG_LIST) |
void | set_block_signals (bool p_block) |
bool | is_blocking_signals () const |
Variant::Type | get_static_property_type (const StringName &p_property, bool *r_valid=NULL) const |
virtual void | get_translatable_strings (List< String > *p_strings) const |
virtual void | get_argument_options (const StringName &p_function, int p_idx, List< String > *r_options) const |
StringName | XL_MESSAGE (const StringName &p_message) const |
StringName | tr (const StringName &p_message) const |
bool | is_queued_for_deletion () const |
_FORCE_INLINE_ void | set_message_translation (bool p_enable) |
_FORCE_INLINE_ bool | can_translate_messages () const |
void | clear_internal_resource_paths () |
Static Public Member Functions | |
static _OS * | get_singleton () |
Static Public Member Functions inherited from Object | |
static void | initialize_type () |
static _FORCE_INLINE_ void | register_custom_data_to_otdb () |
static void * | get_type_ptr_static () |
static void | get_inheritance_list_static (List< String > *p_inheritance_list) |
static String | get_type_static () |
static String | get_parent_type_static () |
static String | get_category_static () |
Static Protected Member Functions | |
static void | _bind_methods () |
Static Protected Member Functions inherited from Object | |
static String | _get_category () |
static void | _bind_methods () |
static void | get_valid_parents_static (List< String > *p_parents) |
static void | _get_valid_parents_static (List< String > *p_parents) |
Static Protected Attributes | |
static _OS * | singleton =NULL |
Static Protected Attributes inherited from Object | |
static _FORCE_INLINE_ void(*)() | _get_bind_methods () |
Additional Inherited Members | |
Public Attributes inherited from Object | |
bool | _is_queued_for_deletion |
Protected Member Functions inherited from Object | |
virtual bool | _use_builtin_script () const |
virtual void | _initialize_typev () |
virtual bool | _setv (const StringName &p_name, const Variant &p_property) |
virtual bool | _getv (const StringName &p_name, Variant &r_property) const |
virtual void | _get_property_listv (List< PropertyInfo > *p_list, bool p_reversed) const |
virtual void | _notificationv (int p_notification, bool p_reversed) |
bool | _set (const StringName &p_name, const Variant &p_property) |
bool | _get (const StringName &p_name, Variant &r_property) const |
void | _get_property_list (List< PropertyInfo > *p_list) const |
void | _notification (int p_notification) |
void | cancel_delete () |
virtual void | _changed_callback (Object *p_changed, const char *p_prop) |
Variant | _call_bind (const Variant **p_args, int p_argcount, Variant::CallError &r_error) |
Variant | _call_deferred_bind (const Variant **p_args, int p_argcount, Variant::CallError &r_error) |
virtual const StringName * | _get_type_namev () const |
DVector< String > | _get_meta_list_bind () const |
Array | _get_property_list_bind () const |
Array | _get_method_list_bind () const |
void | _clear_internal_resource_paths (const Variant &p_var) |
Protected Attributes inherited from Object | |
_FORCE_INLINE_ bool(Object::*)(const StringName &p_name, Variant &r_ret) | _get_get () const) |
_FORCE_INLINE_ bool(Object::*)(const StringName &p_name, const Variant &p_property) | _get_set () const) |
_FORCE_INLINE_ void(Object::*)(List< PropertyInfo > *p_list) | _get_get_property_list () const) |
_FORCE_INLINE_ void(Object::*)(int) | _get_notification () const) |