love.window.toPixels

love.window.toPixels Available since LÖVE 0.9.2 This function is not supported in earlier versions. Converts a number from density-independent units to pixels. The pixel density inside the window might be greater (or smaller) than the "size" of the window. For example on a retina screen in Mac OS X with the highdpi window flag enabled, the window may take up the same physical size as an 800x600 window, but the area inside the window uses 1600x1200 pixels. love.window.toPixels(800) would re

love.window.showMessageBox

love.window.showMessageBox Available since LÖVE 0.9.2 This function is not supported in earlier versions. Displays a message box dialog above the love window. The message box contains a title, optional text, and buttons. This function will pause all execution of the main thread until the user has clicked a button to exit the message box. Calling the function from a different thread may cause love to crash. Function Displays a simple message box with a single 'OK' button. Synopsis success

love.window.toggleFullscreen

love.window.toggleFullscreen Available since LÖVE 0.9.0 This function is not supported in earlier versions. Enters or exits fullscreen. The display to use when entering fullscreen is chosen based on which display the window is currently in, if multiple monitors are connected. Function Synopsis success = love.window.setFullscreen( fullscreen ) Arguments boolean fullscreen Whether to enter or exit fullscreen mode. Returns boolean success True if successful, false otherwise. Function Sy

love.window.setTitle

love.window.setTitle Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the window title. Constantly updating the window title can lead to issues on some systems and therefore is discouraged. Function Synopsis love.window.setTitle( title ) Arguments string title The new window title. Returns Nothing. See Also love.window love.window.getTitle

love.window.setPosition

love.window.setPosition Available since LÖVE 0.9.2 This function is not supported in earlier versions. Sets the position of the window on the screen. The window position is in the coordinate space of the specified display. Function Synopsis love.window.setPosition( x, y, display ) Arguments number x The x-coordinate of the window's position. number y The y-coordinate of the window's position. number display (1) The index of the display that the new window position is relative to. Ret

love.window.setMode

love.window.setMode Available since LÖVE 0.9.0 Moved from love.graphics.setMode. Sets the display mode and properties of the window. If width or height is 0, setMode will use the width and height of the desktop. Changing the display mode may have side effects: for example, canvases will be cleared and values sent to shaders with Shader:send will be erased. Make sure to save the contents of canvases beforehand or re-draw to them afterward if you need to. Function Synopsis success = love.

love.window.setIcon

love.window.setIcon Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the window icon until the game is quit. Not all operating systems support very large icon images. Function Synopsis success = love.window.setIcon( imagedata ) Arguments ImageData imagedata The window icon image. Returns boolean success Whether the icon has been set successfully. See Also love.window love.window.getIcon

love.window.setFullscreen

love.window.setFullscreen Available since LÖVE 0.9.0 This function is not supported in earlier versions. Enters or exits fullscreen. The display to use when entering fullscreen is chosen based on which display the window is currently in, if multiple monitors are connected. Function Synopsis success = love.window.setFullscreen( fullscreen ) Arguments boolean fullscreen Whether to enter or exit fullscreen mode. Returns boolean success True if successful, false otherwise. Function Synop

love.window.setDisplaySleepEnabled

love.window.setDisplaySleepEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Sets whether the display is allowed to sleep while the program is running. Display sleep is disabled by default. Some types of input (e.g. joystick button presses) might not prevent the display from sleeping, if display sleep is allowed. Function Synopsis love.window.setDisplaySleepEnabled( enable ) Arguments boolean enable True to enable system display sleep, false to disab

love.window.requestAttention

love.window.requestAttention Available since LÖVE 0.10.0 This function is not supported in earlier versions. Causes the window to request the attention of the user if it is not in the foreground. In Windows the taskbar icon will flash, and in OS X the dock icon will bounce. Function Synopsis love.window.requestAttention( continuous ) Arguments boolean continuous (false) Whether to continuously request attention until the window becomes active, or to do it only once. Returns Nothing. S