From e9cbe896ccc0ae0a4cc149b41827bb923e805b9f Mon Sep 17 00:00:00 2001 From: Nick Huelin <62965063+SirQuartz@users.noreply.github.com> Date: Mon, 5 Jul 2021 09:43:51 -0400 Subject: [PATCH] Add many descriptions to the `Window` class This pull request adds many missing descriptions to `Window` in the class docs. --- doc/classes/Window.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml index 73a95967bd94..32fce9c8f117 100644 --- a/doc/classes/Window.xml +++ b/doc/classes/Window.xml @@ -1,8 +1,10 @@ + Base class for all windows. + A node that creates a window. @@ -11,6 +13,7 @@ + Returns whether the window is being drawn to the screen. @@ -32,6 +35,7 @@ + Returns [code]true[/code] if the flag is set. @@ -45,6 +49,7 @@ + Returns the window's size including its border. @@ -113,12 +118,14 @@ + Causes the window to grab focus, allowing it to receive user input. + Returns [code]true[/code] if the window is focused. @@ -195,6 +202,7 @@ + Returns [code]true[/code] if the window is currently embedded in another window. @@ -278,6 +286,7 @@ + Sets a specified window flag. @@ -322,8 +331,10 @@ + If [code]true[/code], the window will be on top of all other windows. + If [code]true[/code], the window will have no borders. @@ -332,6 +343,7 @@ + The screen the window is currently on. @@ -340,16 +352,21 @@ + Set's the window's current mode. + [b]Note:[/b] Fullscreen mode is not exclusive fullscreen on Windows and Linux. + The window's position in pixels. + The window's size in pixels. + The window's title. @@ -358,8 +375,10 @@ + If [code]true[/code], the window can't be resized. + If [code]true[/code], the window is visible. @@ -414,20 +433,26 @@ + Windowed mode. + Minimized window mode. + Maximized window mode. Fullscreen window mode. Note that this is not [i]exclusive[/i] fullscreen. On Windows and Linux, a borderless window is used to emulate fullscreen. On macOS, a new desktop is used to display the running project. Regardless of the platform, enabling fullscreen will change the window size to match the monitor's size. Therefore, make sure your project supports [url=https://docs.godotengine.org/en/latest/tutorials/rendering/multiple_resolutions.html]multiple resolutions[/url] when enabling fullscreen mode. + The window's ability to be resized. + Borderless window. + Flag for making the window always on top of all other windows.