love.window

Available since LÖVE 0.9.0
This module is not supported in earlier versions.


Provides an interface for modifying and retrieving information about the program's window.

Functions

love.window.close Closes the window.
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.fromPixels Converts a number from pixels to density-independent units.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.2
love.window.getDPIScale Gets the DPI scale factor associated with the window.
Error creating thumbnail: Unable to save thumbnail to destination
11.0
love.window.getDesktopDimensions Gets the width and height of the desktop.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.getDimensions Gets the width and height of the window.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.getDisplayCount Gets the number of connected monitors.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.getDisplayName Gets the name of a display.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.2
love.window.getFullscreen Gets whether the window is fullscreen.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.getFullscreenModes Gets a list of supported fullscreen modes.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.getHeight Gets the height of the window.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.getIcon Gets the window icon.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.getMode Gets the display mode and properties of the window.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.getPixelScale Gets the DPI scale factor associated with the window.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.1
Error creating thumbnail: Unable to save thumbnail to destination
11.0
love.window.getPosition Gets the position of the window on the screen.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.2
love.window.getTitle Gets the window title.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.getWidth Gets the width of the window.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.hasFocus Checks if the game window has keyboard focus.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.hasMouseFocus Checks if the game window has mouse focus.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.isCreated Checks if the window has been created.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.isDisplaySleepEnabled Gets whether the display is allowed to sleep while the program is running.
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.isMaximized Gets whether the Window is currently maximized.
Error creating thumbnail: Unable to save thumbnail to destination
0.10.2
love.window.isMinimized Gets whether the Window is currently minimized.
Error creating thumbnail: Unable to save thumbnail to destination
11.0
love.window.isOpen Checks if the window is open.
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.isVisible Checks if the game window is visible.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.maximize Makes the window as large as possible.
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.minimize Minimizes the window to the system's task bar / dock.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.2
love.window.requestAttention Causes the window to request the attention of the user if it is not in the foreground.
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.restore Restores the size and position of the window if it was minimized or maximized.
Error creating thumbnail: Unable to save thumbnail to destination
11.0
love.window.setDisplaySleepEnabled Sets whether the display is allowed to sleep while the program is running.
Error creating thumbnail: Unable to save thumbnail to destination
0.10.0
love.window.setFullscreen Enters or exits fullscreen.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.setIcon Sets the window icon.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.setMode Sets the display mode and properties of the window.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.setPosition Sets the position of the window on the screen.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.2
love.window.setTitle Sets the window title.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
love.window.showMessageBox Displays a message box above the love window.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.2
love.window.toPixels Converts a number from density-independent units to pixels.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.2
love.window.updateMode Sets the display mode and properties of the window, without modifying unspecified properties.
Error creating thumbnail: Unable to save thumbnail to destination
11.0

Enums

FullscreenType Types of fullscreen modes.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.0
MessageBoxType Types of message box dialogs.
Error creating thumbnail: Unable to save thumbnail to destination
0.9.2

See Also

Other Languages