Module tetra::window[][src]

Expand description

Functions and types relating to the game window, and the environment it is running in.

Enums

Represents the position of a window on the screen.

Functions

Brings the window to the front and gives it input focus.

Gets the index of the monitor that the window is currently on.

Gets the height of the monitor that the window is currently on.

Gets the name of the monitor that the window is currently on.

Gets the size of the monitor that the window is currently on.

Gets the width of the monitor that the window is currently on.

Returns the ratio of the logical resolution to the physical resolution of the current display on which the window is being displayed.

Gets the height of the window.

Gets the maximum size of the window.

Gets the minimum size of the window.

Gets the number of monitors connected to the device.

Gets the height of a monitor connected to the device.

Gets the name of a monitor connected to the device.

Gets the size of a monitor connected to the device.

Gets the width of a monitor connected to the device.

Returns the height of the window in physical pixels.

Returns the size of the window in physical pixels.

Returns the width of the window in physical pixels.

Gets the position of the window.

Gets the size of the window.

Gets the current title of the window.

Gets the width of the window.

Returns whether or not the window is currently in fullscreen mode.

Returns whether or not key repeat is enabled.

Returns whether or not the mouse is currently grabbed by the window.

Returns whether or not the mouse cursor is currently visible.

Returns whether or not relative mouse mode is currently enabled.

Returns whether or not the user’s screen saver can be displayed while the game is running.

Returns whether the window is currently visible, or whether it has been hidden.

Returns whether or not vsync is enabled.

Maximizes the window.

Minimizes the window.

Quits the game, if it is currently running.

Restores the size and position of a minimized or maximized window.

Sets whether or not the window should have decorations, such as a border and a close button.

Sets whether the window should be in fullscreen mode.

Sets the height of the window.

Sets the icon for the window.

Sets whether or not key repeat should be enabled.

Sets the maximum size of the window.

Sets the minimum size of the window.

Sets whether or not the mouse is grabbed by the window.

Sets whether or not the mouse cursor should be visible.

Sets the position of the window.

Sets whether or not relative mouse mode is enabled.

Sets whether or not the user’s screen saver can be displayed while the game is running.

Sets the size of the window.

Sets the title of the window.

Sets whether or not the window should be visible to the user.

Sets whether the window should be vsynced.

Sets the width of the window.