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.fromPixels | Converts a number from pixels to density-independent units. |
![]() |
|
love.window.getDesktopDimensions | Gets the width and height of the desktop. |
![]() |
|
love.window.getDimensions | Gets the width and height of the window. |
![]() |
|
love.window.getDisplayCount | Gets the number of connected monitors. |
![]() |
|
love.window.getDisplayName | Gets the name of a display. |
![]() |
|
love.window.getFullscreen | Gets whether the window is fullscreen. |
![]() |
|
love.window.getFullscreenModes | Gets a list of supported fullscreen modes. |
![]() |
|
love.window.getHeight | Gets the height of the window. |
![]() |
|
love.window.getIcon | Gets the window icon. |
![]() |
|
love.window.getMode | Gets the display mode and properties of the window. |
![]() |
|
love.window.getPixelScale | Gets the DPI scale factor associated with the window. |
![]() |
|
love.window.getPosition | Gets the position of the window on the screen. |
![]() |
|
love.window.getTitle | Gets the window title. |
![]() |
|
love.window.getWidth | Gets the width of the window. |
![]() |
|
love.window.hasFocus | Checks if the game window has keyboard focus. |
![]() |
|
love.window.hasMouseFocus | Checks if the game window has mouse focus. |
![]() |
|
love.window.isCreated | Checks if the window has been created. |
![]() |
|
love.window.isVisible | Checks if the game window is visible. |
![]() |
|
love.window.minimize | Minimizes the window to the system's task bar / dock. |
![]() |
|
love.window.setFullscreen | Enters or exits fullscreen. |
![]() |
|
love.window.setIcon | Sets the window icon. |
![]() |
|
love.window.setMode | Sets the display mode and properties of the window. |
![]() |
|
love.window.setPosition | Sets the position of the window on the screen. |
![]() |
|
love.window.setTitle | Sets the window title. |
![]() |
|
love.window.showMessageBox | Displays a message box above the love window. |
![]() |
|
love.window.toPixels | Converts a number from density-independent units to pixels. |
![]() |
Enums
FullscreenType | Types of fullscreen modes. |
![]() |
|
MessageBoxType | Types of message box dialogs. |
![]() |
See Also
Category: