diff options
| author | Daniel J. Ramirez | 2016-05-05 12:42:42 -0500 |
|---|---|---|
| committer | Rémi Verschelde | 2016-05-06 11:14:59 +0200 |
| commit | b224407770afc07039d19358c1c03b2de2dac7d7 (patch) | |
| tree | fc845b89b3c3169b5d394a413ad1aa99cc856813 | |
| parent | 7556391d200da81232e72882e489b34aafab8f7d (diff) | |
| download | godot-b224407770afc07039d19358c1c03b2de2dac7d7.tar.gz godot-b224407770afc07039d19358c1c03b2de2dac7d7.tar.zst godot-b224407770afc07039d19358c1c03b2de2dac7d7.zip | |
Partial documentation for OS methods
(cherry picked from commit ed7c0a6caf35838efbf8799bdae7b591f5332ec9)
| -rw-r--r-- | doc/base/classes.xml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index e17fe3f0c..cf9a324e5 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -19815,12 +19815,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <return type="int"> </return> <description> + Returns the number of displays attached to the host machine </description> </method> <method name="get_current_screen" qualifiers="const"> <return type="int"> </return> <description> + Returns the current screen index (0 padded). </description> </method> <method name="set_current_screen"> @@ -19843,54 +19845,63 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="0" name="screen" type="int" default="0"> </argument> <description> + Returns the dimensions in pixels of the specified screen. </description> </method> <method name="get_window_position" qualifiers="const"> <return type="Vector2"> </return> <description> + Returns the window position relative to the screen, the origin is the top left corner, +Y axis goes to the bottom and +X axis goes to the right. </description> </method> <method name="set_window_position"> <argument index="0" name="position" type="Vector2"> </argument> <description> + Sets the position of the window to the specified position (this function could be restricted by the window manager, meaning that there could be some unreachable areas of the screen). </description> </method> <method name="get_window_size" qualifiers="const"> <return type="Vector2"> </return> <description> + Returns the size of the window (without counting window manager decorations). </description> </method> <method name="set_window_size"> <argument index="0" name="size" type="Vector2"> </argument> <description> + Sets the window size to the specified size. </description> </method> <method name="set_window_fullscreen"> <argument index="0" name="enabled" type="bool"> </argument> <description> + Sets window fullscreen mode to the [i]enabled[/i] argument, [i]enabled[/i] is a toggle for the fullscreen mode, calling the function with [i]enabled[/i] true when the screen is not on fullscreen mode will cause the screen to go to fullscreen mode, calling the function with [i]enabled[/i] false when the screen is in fullscreen mode will cause the window to exit the fullscreen mode. </description> </method> <method name="is_window_fullscreen" qualifiers="const"> <return type="bool"> </return> <description> + Returns whether the window is in fullscreen mode or not. </description> </method> <method name="set_window_resizable"> <argument index="0" name="enabled" type="bool"> </argument> <description> + Set the window resizable state, if the window is not resizable it will preserve the dimensions specified in the project settings. </description> </method> <method name="is_window_resizable" qualifiers="const"> <return type="bool"> </return> <description> + Returns whether the window is resizable or not. </description> </method> <method name="set_window_minimized"> @@ -19921,12 +19932,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="0" name="orientation" type="int"> </argument> <description> + Sets the current screen orientation, the argument value must be one of the SCREEN_ORIENTATION constants in this class. </description> </method> <method name="get_screen_orientation" qualifiers="const"> <return type="int"> </return> <description> + Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class. </description> </method> <method name="set_keep_screen_on"> @@ -19940,6 +19953,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <return type="bool"> </return> <description> + Returns whether the screen is being kept on or not. </description> </method> <method name="set_iterations_per_second"> @@ -19991,6 +20005,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="0" name="title" type="String"> </argument> <description> + Sets the window title to the specified string. </description> </method> <method name="set_low_processor_usage_mode"> @@ -20011,6 +20026,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <return type="int"> </return> <description> + Returns the number of cores available in the host machine. </description> </method> <method name="get_executable_path" qualifiers="const"> @@ -20041,7 +20057,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <argument index="0" name="pid" type="int"> </argument> <description> - Kill a process ID. + Kill a process ID (this method can be used to kill processes that were not spawned by the game). </description> </method> <method name="shell_open"> @@ -20056,6 +20072,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <return type="int"> </return> <description> + Returns the game process ID </description> </method> <method name="get_environment" qualifiers="const"> @@ -20290,6 +20307,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) <return type="float"> </return> <description> + Returns the frames per second of the running game. </description> </method> <method name="print_all_textures_by_size"> |
