class

Godot::OS

Inherits Godot::Object < Reference < Object

Godot OS singleton (OS).

Constructors

instance
Source
new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Class methods

singleton_ptr
Source

Instance methods

add_logger(logger : Logger) : Void
Source
alert(text : String, title : String) : Void
Source
close_midi_inputs
Source
crash(message : String) : Void
Source
create_instance(arguments : Pointer(Void)) : Int64
Source
create_process(path : String, arguments : Pointer(Void), open_console : Bool) : Int64
Source
delay_msec(msec : Int64) : Void
Source
delay_usec(usec : Int64) : Void
Source
delta_smoothing

Property delta_smoothing getter

Source
delta_smoothing=(val)

Property delta_smoothing setter

Source
delta_smoothing?
Source
execute(path : String, arguments : Pointer(Void), output : Godot::Array, read_stderr : Bool, open_console : Bool) : Int64
Source
execute_with_pipe(path : String, arguments : Pointer(Void), blocking : Bool) : Pointer(Void)
Source
find_keycode_from_string(string : String) : Int64
Source
get_cache_dir
Source
get_cmdline_args
Source
get_cmdline_user_args
Source
get_config_dir
Source
get_connected_midi_inputs
Source
get_data_dir
Source
get_distribution_name
Source
get_entropy(size : Int64) : Pointer(Void)
Source
get_environment(variable : String) : String
Source
get_executable_path
Source
get_granted_permissions
Source
get_keycode_string(code : Int64) : String
Source
get_locale
Source
get_locale_language
Source
get_low_processor_usage_mode_sleep_usec
Source
get_main_thread_id
Source
get_memory_info
Source
get_model_name
Source
get_name
Source
get_preferred_locales
Source
get_process_exit_code(pid : Int64) : Int64
Source
get_process_id
Source
get_processor_count
Source
get_processor_name
Source
get_restart_on_exit_arguments
Source
get_static_memory_peak_usage
Source
get_static_memory_usage
Source
get_stderr_type
Source
get_stdin_type
Source
get_stdout_type
Source
get_system_ca_certificates
Source
get_system_dir(dir : Int64, shared_storage : Bool) : String
Source
get_system_font_path(font_name : String, weight : Int64, stretch : Int64, italic : Bool) : String
Source
get_system_font_path_for_text(font_name : String, text : String, locale : String, script : String, weight : Int64, stretch : Int64, italic : Bool) : Pointer(Void)
Source
get_system_fonts
Source
get_temp_dir
Source
get_thread_caller_id
Source
get_unique_id
Source
get_user_data_dir
Source
get_version
Source
get_version_alias
Source
get_video_adapter_driver_info
Source
has_environment(variable : String) : Bool
Source
has_feature(tag_name : String) : Bool
Source
is_debug_build
Source
is_delta_smoothing_enabled
Source
is_in_low_processor_usage_mode
Source
is_keycode_unicode(code : Int64) : Bool
Source
is_process_running(pid : Int64) : Bool
Source
is_restart_on_exit_set
Source
is_sandboxed
Source
is_stdout_verbose
Source
is_userfs_persistent
Source
kill(pid : Int64) : Int64
Source
low_processor_usage_mode

Property low_processor_usage_mode getter

Source
low_processor_usage_mode=(val)

Property low_processor_usage_mode setter

Source
low_processor_usage_mode?
Source
low_processor_usage_mode_sleep_usec

Property low_processor_usage_mode_sleep_usec getter

Source
low_processor_usage_mode_sleep_usec=(val : Int)

Property low_processor_usage_mode_sleep_usec setter

Source
move_to_trash(path : String) : Int64
Source
open_midi_inputs
Source
open_with_program(program_path : String, paths : Pointer(Void)) : Int64
Source
read_buffer_from_stdin(buffer_size : Int64) : Pointer(Void)
Source
read_string_from_stdin(buffer_size : Int64) : String
Source
remove_logger(logger : Logger) : Void
Source
request_permission(name : String) : Bool
Source
request_permissions
Source
revoke_granted_permissions
Source
set_delta_smoothing(delta_smoothing_enabled : Bool) : Void
Source
set_environment(variable : String, value : String) : Void
Source
set_low_processor_usage_mode(enable : Bool) : Void
Source
set_low_processor_usage_mode_sleep_usec(usec : Int64) : Void
Source
set_restart_on_exit(restart : Bool, arguments : Pointer(Void)) : Void
Source
set_thread_name(name : String) : Int64
Source
set_use_file_access_save_and_swap(enabled : Bool) : Void
Source
shell_open(uri : String) : Int64
Source
shell_show_in_file_manager(file_or_dir_path : String, open_folder : Bool) : Int64
Source
unset_environment(variable : String) : Void
Source

Nested types