From 66714a3d296204eba3484be218125405e99f2217 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 10 Apr 2018 17:05:28 +0200 Subject: [PATCH] [DOCS] OS --- doc/classes/OS.xml | 71 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 61 insertions(+), 10 deletions(-) diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 20e141b4ecb..1a3cdc34d78 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -40,6 +40,7 @@ + Centers the window on the screen if in windowed mode. @@ -48,7 +49,7 @@ - Delay executing of the current thread by given milliseconds. + Delay execution of the current thread by given milliseconds. @@ -57,7 +58,7 @@ - Delay executing of the current thread by given microseconds. + Delay execution of the current thread by given microseconds. @@ -67,7 +68,7 @@ Dumps the memory allocation ringlist to a file (only works in debug). - Entry format per line: "Address - Size - Description" + Entry format per line: "Address - Size - Description". @@ -77,7 +78,7 @@ Dumps all used resources to file (only works in debug). - Entry format per line: "Resource Type : Resource Location" + Entry format per line: "Resource Type : Resource Location". At the end of the file is a statistic of all used Resource Types. @@ -120,6 +121,7 @@ + Returns the total number of available audio drivers. @@ -128,6 +130,7 @@ + Returns the audio driver name for the given index. @@ -256,6 +259,7 @@ + Returns the window size including decorations like window borders. @@ -380,7 +384,7 @@ - Return the current unix timestamp. + Returns the current unix epoch timestamp. @@ -423,6 +427,7 @@ + Returns the on-screen keyboard's height in pixels. Returns 0 if there is no keyboard or it is currently hidden. @@ -440,6 +445,7 @@ + Returns [code]true[/code] if the feature for the given feature tag is supported in the currently running instance, depending on platform, build etc. Can be used to check whether you're currently running a debug build, on a certain platform or arch, etc. See feature tags documentation. @@ -506,6 +512,7 @@ + Returns [code]true[/code] if the window should always be on top of other windows. @@ -642,6 +649,7 @@ + Sets whether the window should always be on top. @@ -682,27 +690,31 @@ The current screen index (starting from 0). + The exit code passed to the OS when the main loop exits. + If [code]true[/code] the engine tries to keep the screen on while the game is running. Useful on mobile. + If [code]true[/code] the engine optimizes for low processor usage by only refreshing the screen if needed. Can improve battery consumption on mobile. - + The current screen orientation. + If [code]true[/code] vertical synchronization (Vsync) is enabled. - If [code]true[/code], removes the window frame. + If [code]true[/code] removes the window frame. - If [code]true[/code], the window is fullscreen. + If [code]true[/code] the window is fullscreen. - If [code]true[/code], the window is maximized. + If [code]true[/code] the window is maximized. - If [code]true[/code], the window is minimized. + If [code]true[/code] the window is minimized. 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. @@ -716,82 +728,121 @@ + Sunday. + Monday. + Tuesday. + Wednesday. + Thursday. + Friday. + Saturday. + January. + February. + March. + April. + May. + June. + July. + August. + September. + October. + November. + December. + Landscape screen orientation. + Portrait screen orientation. + Reverse landscape screen orientation. + Reverse portrait screen orientation. + Uses landscape or reverse landscape based on the hardware sensor. + Uses portrait or reverse portrait based on the hardware sensor. + Uses most suitable orientation based on the hardware sensor. + Desktop directory path. + DCIM (Digital Camera Images) directory path. + Documents directory path. + Downloads directory path. + Movies directory path. + Music directory path. + Pictures directory path. + Ringtones directory path. + Unknown powerstate. + Unplugged, running on battery. + Plugged in, no battery available. + Plugged in, battery charging. + Plugged in, battery fully charged.