WindowModuleInterface

Inherits ModuleInterface and SystemModuleInterface.

Functions

Name

Description

openWindow

Opens a new window.

isWindowOpen

Checks if the window is opened.

closeWindow

Closes the window. Closing the main window closes the application.

getMainWindowID

Returns the unique identifier of the main window.

windowCount

Returns the number of opened windows.

setWindowSize

Sets the size of the window.

getWindowWidth

Returns the width of the window.

getWindowHeight

Returns the height of the window.

setWindowPosition

Sets the position of the window on the screen.

getWindowPositionX

Returns the horizontal position of the window on the screen.

getWindowPositionY

Returns the vertical position of the window on the screen.

setWindowFullscreen

Puts the window in fullscreen or windowed.

isWindowFullscreen

Checks if the window is in fullscreen.

setWindowBorderless

Removes or adds the window decorations.

isWindowBorderless

Checks if the window decorations are shown.

setWindowResizable

Enables or disables manual window resizing.

isWindowResizable

Checks if the window can be manually resized.

setWindowOpacity

Sets the window’s opacity.

getWindowOpacity

Returns the window’s opacity.

getWindowDroppedFiles

Returns the path to the files dropped on the window.

pollEvents

Polls the window system events.

setWindowTitle

Sets the window’s title.

getWindowTitle

Returns the window’s title.

setWindowIcon

Sets the window’s icon.

getKeyState

Returns the state of a keyboard key.

getMouseButtonState

Returns the state of a mouse button.

setCursorPosition

Sets the mouse cursor position.

getCursorPositionX

Returns the horizontal position of the window on the screen.

getCursorPositionY

Returns the vertical position of the window on the screen.

getMouseScrollOffsetX

Returns the horizontal mouse scroll offset between the last and current frame.

getMouseScrollOffsetY

Returns the vertical mouse scroll offset between the last and current frame.

setCursorVisibility

Sets the mouse cursor’s visibility.

isCursorVisible

Checks if the cursor is visible.

getConnectedGamepads

Returns the list of connected gamepads.

getGamepadButtonState

Returns the state of a gamepad button.

getGamepadStickAxisX

Returns the value of the stick’s horizontal axis, with -1.0 being left, 0.0 neutral and 1.0 right.

getGamepadStickAxisY

Returns the value of the stick’s vertical axis, with -1.0 being up, 0.0 neutral and 1.0 down.

getGamepadLeftTrigger

Returns the value of the stick’s left trigger, with 0.0 being neutral and 1.0 being fully pressed.

getGamepadRightTrigger

Returns the value of the stick’s right trigger, with 0.0 being neutral and 1.0 being fully pressed.

getGamepadName

Returns the name of the gamepad.

getMonitorWidth

Returns the width of the main monitor.

getMonitorHeight

Returns the height of the main monitor.

getMonitorDisplayScaling

Returns the display scaling of the main monitor.

getWindowNativeHandle

Returns the native handle of the window.

getWindowNativeAdditionalInformation

Returns a native additional information for the window.