WindowModuleInterface
Inherits ModuleInterface and SystemModuleInterface.
Functions
Name |
Description |
---|---|
Opens a new window. |
|
Checks if the window is opened. |
|
Closes the window. Closing the main window closes the application. |
|
Returns the unique identifier of the main window. |
|
Returns the number of opened windows. |
|
Sets the size of the window. |
|
Returns the width of the window. |
|
Returns the height of the window. |
|
Sets the position of the window on the screen. |
|
Returns the horizontal position of the window on the screen. |
|
Returns the vertical position of the window on the screen. |
|
Puts the window in fullscreen or windowed. |
|
Checks if the window is in fullscreen. |
|
Removes or adds the window decorations. |
|
Checks if the window decorations are shown. |
|
Enables or disables manual window resizing. |
|
Checks if the window can be manually resized. |
|
Sets the window’s opacity. |
|
Returns the window’s opacity. |
|
Returns the path to the files dropped on the window. |
|
Polls the window system events. |
|
Sets the window’s title. |
|
Returns the window’s title. |
|
Sets the window’s icon. |
|
Returns the state of a keyboard key. |
|
Returns the state of a mouse button. |
|
Sets the mouse cursor position. |
|
Returns the horizontal position of the window on the screen. |
|
Returns the vertical position of the window on the screen. |
|
Returns the horizontal mouse scroll offset between the last and current frame. |
|
Returns the vertical mouse scroll offset between the last and current frame. |
|
Sets the mouse cursor’s visibility. |
|
Checks if the cursor is visible. |
|
Returns the list of connected gamepads. |
|
Returns the state of a gamepad button. |
|
Returns the value of the stick’s horizontal axis, with -1.0 being left, 0.0 neutral and 1.0 right. |
|
Returns the value of the stick’s vertical axis, with -1.0 being up, 0.0 neutral and 1.0 down. |
|
Returns the value of the stick’s left trigger, with 0.0 being neutral and 1.0 being fully pressed. |
|
Returns the value of the stick’s right trigger, with 0.0 being neutral and 1.0 being fully pressed. |
|
Returns the name of the gamepad. |
|
Returns the width of the main monitor. |
|
Returns the height of the main monitor. |
|
Returns the display scaling of the main monitor. |
|
Returns the native handle of the window. |
|
Returns a native additional information for the window. |