Expand description
Functions and types relating to the game window, and the environment it is running in.
Enums§
- Window
Position - Represents the position of a window on the screen.
Functions§
- focus
- Brings the window to the front and gives it input focus.
- get_
current_ monitor - Gets the index of the monitor that the window is currently on.
- get_
current_ monitor_ height - Gets the height of the monitor that the window is currently on.
- get_
current_ monitor_ name - Gets the name of the monitor that the window is currently on.
- get_
current_ monitor_ size - Gets the size of the monitor that the window is currently on.
- get_
current_ monitor_ width - Gets the width of the monitor that the window is currently on.
- get_
dpi_ scale - Returns the ratio of the logical resolution to the physical resolution of the current display on which the window is being displayed.
- get_
height - Gets the height of the window.
- get_
maximum_ size - Gets the maximum size of the window.
- get_
minimum_ size - Gets the minimum size of the window.
- get_
monitor_ count - Gets the number of monitors connected to the device.
- get_
monitor_ height - Gets the height of a monitor connected to the device.
- get_
monitor_ name - Gets the name of a monitor connected to the device.
- get_
monitor_ size - Gets the size of a monitor connected to the device.
- get_
monitor_ width - Gets the width of a monitor connected to the device.
- get_
physical_ height - Returns the height of the window in physical pixels.
- get_
physical_ size - Returns the size of the window in physical pixels.
- get_
physical_ width - Returns the width of the window in physical pixels.
- get_
position - Gets the position of the window.
- get_
size - Gets the size of the window.
- get_
title - Gets the current title of the window.
- get_
width - Gets the width of the window.
- is_
fullscreen - Returns whether or not the window is currently in fullscreen mode.
- is_
key_ repeat_ enabled - Returns whether or not key repeat is enabled.
- is_
mouse_ grabbed - Returns whether or not the mouse is currently grabbed by the window.
- is_
mouse_ visible - Returns whether or not the mouse cursor is currently visible.
- is_
relative_ mouse_ mode - Returns whether or not relative mouse mode is currently enabled.
- is_
screen_ saver_ enabled - Returns whether or not the user’s screen saver can be displayed while the game is running.
- is_
visible - Returns whether the window is currently visible, or whether it has been hidden.
- is_
vsync_ enabled - Returns whether or not vsync is enabled.
- maximize
- Maximizes the window.
- minimize
- Minimizes the window.
- quit
- Quits the game, if it is currently running.
- restore
- Restores the size and position of a minimized or maximized window.
- set_
decorated - Sets whether or not the window should have decorations, such as a border and a close button.
- set_
fullscreen - Sets whether the window should be in fullscreen mode.
- set_
height - Sets the height of the window.
- set_
icon - Sets the icon for the window.
- set_
key_ repeat_ enabled - Sets whether or not key repeat should be enabled.
- set_
maximum_ size - Sets the maximum size of the window.
- set_
minimum_ size - Sets the minimum size of the window.
- set_
mouse_ grabbed - Sets whether or not the mouse is grabbed by the window.
- set_
mouse_ visible - Sets whether or not the mouse cursor should be visible.
- set_
position - Sets the position of the window.
- set_
relative_ mouse_ mode - Sets whether or not relative mouse mode is enabled.
- set_
screen_ saver_ enabled - Sets whether or not the user’s screen saver can be displayed while the game is running.
- set_
size - Sets the size of the window.
- set_
title - Sets the title of the window.
- set_
visible - Sets whether or not the window should be visible to the user.
- set_
vsync - Sets whether the window should be vsynced.
- set_
width - Sets the width of the window.