[][src]Module tetra::window

Functions and types relating to the game window.

Functions

disable_fullscreen

Disables fullscreen.

enable_fullscreen

Enables fullscreen.

get_height

Gets the height 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.

hide_mouse

Hides the mouse cursor.

is_fullscreen

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

is_mouse_visible

Returns whether or not the mouse cursor is currently visible.

quit

Quits the game, if it is currently running.

set_height

Sets the height of the window.

set_size

Sets the size of the window.

set_title

Sets the title of the window.

set_width

Sets the width of the window.

show_mouse

Makes the mouse cursor visible.

toggle_fullscreen

Enables fullscreen if it is currently disabled, or vice-versa.