Window manipulation functions. More...
Public Member Functions | |
| void | SetSize (number width, number height) |
| Sets the size of the active window. | |
| void | SetFullscreen (boolean isFullscreen) |
| Sets the fullscreen state of the active window. | |
| void | SetScale (integer scale) |
| Sets the scale of the active window. | |
| void | SetBorderless (boolean isBorderless) |
| Sets the bordered state of the active window. | |
| void | SetVSync (boolean enableVsync) |
| Enables or disables V-Sync for the active window. | |
| void | SetPosition (number x, number y) |
| Sets the position of the active window. | |
| void | SetPositionCentered () |
| Sets the position of the active window to the center of the display. | |
| void | SetTitle (string title) |
| Sets the title of the active window. | |
| void | SetPostProcessingShader (Shader shader) |
| Sets a post-processing shader for the active window. | |
| integer | GetWidth () |
| Gets the width of the active window. | |
| integer | GetHeight () |
| Gets the height of the active window. | |
| boolean | GetFullscreen () |
| Gets whether the active window is currently fullscreen. | |
| integer | GetScale () |
| Gets the scale of the active window. | |
| boolean | IsResizeable () |
| Gets whether the active window is resizeable. | |
Window manipulation functions.
| boolean Window.GetFullscreen | ( | ) |
Gets whether the active window is currently fullscreen.
| integer Window.GetHeight | ( | ) |
Gets the height of the active window.
| integer Window.GetScale | ( | ) |
Gets the scale of the active window.
| integer Window.GetWidth | ( | ) |
Gets the width of the active window.
| boolean Window.IsResizeable | ( | ) |
Gets whether the active window is resizeable.
| void Window.SetBorderless | ( | boolean | isBorderless | ) |
Sets the bordered state of the active window.
| isBorderless | Whether the window should be borderless. |
| void Window.SetFullscreen | ( | boolean | isFullscreen | ) |
Sets the fullscreen state of the active window.
| isFullscreen | Whether the window should be fullscreen. |
| void Window.SetPosition | ( | number | x, |
| number | y ) |
Sets the position of the active window.
| x | Window x |
| y | Window y |
| void Window.SetPostProcessingShader | ( | Shader | shader | ) |
Sets a post-processing shader for the active window.
| shader | The shader, or null to unset the shader. |
| void Window.SetScale | ( | integer | scale | ) |
Sets the scale of the active window.
| scale | Window scale. |
| void Window.SetSize | ( | number | width, |
| number | height ) |
Sets the size of the active window.
| width | Window width |
| height | Window height |
| void Window.SetTitle | ( | string | title | ) |
Sets the title of the active window.
| title | Window title |
| void Window.SetVSync | ( | boolean | enableVsync | ) |
Enables or disables V-Sync for the active window.
| enableVsync | Whether the window should use V-Sync. |