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.getDesktopDimensionsGets the width and height of the desktop.Added since 0.9.0
love.window.getDimensionsGets the width and height of the window.Added since 0.9.0
love.window.getDisplayCountGets the number of connected monitors.Added since 0.9.0
love.window.getFullscreenGets whether the window is fullscreen.Added since 0.9.0
love.window.getFullscreenModesGets a list of supported fullscreen modes.Added since 0.9.0
love.window.getHeightGets the height of the window.Added since 0.9.0
love.window.getIconGets the window icon.Added since 0.9.0
love.window.getModeGets the display mode and properties of the window.Added since 0.9.0
love.window.getPixelScaleGets the scale factor associated with the window.Added since 0.9.1
love.window.getTitleGets the window title.Added since 0.9.0
love.window.getWidthGets the width of the window.Added since 0.9.0
love.window.hasFocusChecks if the game window has keyboard focus.Added since 0.9.0
love.window.hasMouseFocusChecks if the game window has mouse focus.Added since 0.9.0
love.window.isCreatedChecks if the window has been created.Added since 0.9.0
love.window.isVisibleChecks if the game window is visible.Added since 0.9.0
love.window.setFullscreenEnters or exits fullscreen.Added since 0.9.0
love.window.setIconSets the window icon.Added since 0.9.0
love.window.setModeSets the display mode and properties of the window.Added since 0.9.0
love.window.setTitleSets the window title.Added since 0.9.0

Enums

FullscreenTypeTypes of fullscreen modes.Added since 0.9.0

See Also

Other Languages

Personal tools