[][src]Module tetra::window

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

Functions

get_current_monitor

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

get_current_monitor_height

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

get_current_monitor_name

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

get_current_monitor_size

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

get_current_monitor_width

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

get_height

Gets the height of the window.

get_monitor_count

Get the number of monitors connected to the device.

get_monitor_height

Get the height of a monitor connected to the device.

get_monitor_name

Get the name of a monitor connected to the device.

get_monitor_size

Get the size of a monitor connected to the device.

get_monitor_width

Get the width of a monitor connected to the device.

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_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_vsync_enabled

Returns whethere or not vsync is enabled.

quit

Quits the game, if it is currently running.

set_fullscreen

Sets whether the window should be in fullscreen mode.

set_height

Sets the height 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_relative_mouse_mode

Sets whether or not relative mouse mode is enabled.

set_size

Sets the size of the window.

set_title

Sets the title of the window.

set_vsync

Sets whether the window should be vsynced.

set_width

Sets the width of the window.