Difference between revisions of "love.window"

m (Temporarily made the function list show newin 0.9.0 functions)
m (Added deprecation support)
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::love.window]]
+
{{#ask: [[Category:Functions]] [[parent::love.window]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| format=template
 
| format=template
Line 13: Line 13:
 
| ?PrettySince
 
| ?PrettySince
 
| ?PrettyRemoved
 
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 +
}}
 +
== Enums ==
 +
{{#ask: [[Category:Enums]] [[parent::love.window]] [[Concept:Current]]
 +
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 +
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
 
 
[[Category:Modules]]
 
[[Category:Modules]]
 
{{#set:Description=Provides an interface for the program's window.}}
 
{{#set:Description=Provides an interface for the program's window.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]
 +
* [[love.resize]]
 +
* [[love.focus]]
 +
* [[love.mousefocus]]
 +
* [[love.visible]]
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.window}}
 
{{i18n|love.window}}

Latest revision as of 13:39, 28 December 2018

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

Enums

DisplayOrientation Types of device display orientation. Added since 11.3
FullscreenType Types of fullscreen modes. Added since 0.9.0
MessageBoxType Types of message box dialogs. Added since 0.9.2

See Also

Other Languages