love.window.getIcon

love.window.getIcon Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the window icon. Function Synopsis imagedata = love.window.getIcon( ) Arguments None. Returns ImageData imagedata The window icon imagedata, or nil if no icon has been set with love.window.setIcon. See Also love.window love.window.setIcon

love.window.getMode

love.window.getMode Available since LÖVE 0.9.0 Moved from love.graphics.getMode. Gets the display mode and properties of the window. Function Synopsis width, height, flags = love.window.getMode( ) Arguments None. Returns number width Window width. number height Window height. table flags Table with the window properties: boolean fullscreen Fullscreen (true), or windowed (false). FullscreenType fullscreentype The type of fullscreen mode used. boolean vsync True if the graphics framer

love.window.getPixelScale

love.window.getPixelScale Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the DPI scale factor associated with the window. 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.getPixelScale() would r

love.window.getPosition

love.window.getPosition Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the position of the window on the screen. The window position is in the coordinate space of the display it is currently in. Function Synopsis x, y, display = love.window.getPosition( ) Arguments None. Returns number x The x-coordinate of the window's position. number y The y-coordinate of the window's position. number display The index of the display that the window is in. See

love.window.getTitle

love.window.getTitle Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the window title. Function Synopsis title = love.window.getTitle( ) Arguments None. Returns string title The current window title. See Also love.window love.window.setTitle

love.window.getWidth

love.window.getWidth Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use love.graphics.getWidth or love.window.getMode instead. Gets the width of the window. Function Synopsis width = love.window.getWidth( ) Arguments None. Returns number width The width of the window. See Also love.window love.window.getHeight love.window.getDimensions love.window.setMode

love.window.hasFocus

love.window.hasFocus Available since LÖVE 0.9.0 This function is not supported in earlier versions. Checks if the game window has keyboard focus. Function Synopsis focus = love.window.hasFocus( ) Arguments None. Returns boolean focus True if the window has the focus or false if not. See Also love.window

love.window.hasMouseFocus

love.window.hasMouseFocus Available since LÖVE 0.9.0 This function is not supported in earlier versions. Checks if the game window has mouse focus. Function Synopsis focus = love.window.hasMouseFocus( ) Arguments None. Returns boolean focus True if the window has mouse focus or false if not. See Also love.window

love.window.isCreated

love.window.isCreated Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 This function has been renamed to love.window.isOpen. Checks if the window has been created. Function Synopsis created = love.window.isCreated( ) Arguments None. Returns boolean created True if the window has been created, false otherwise. See Also love.window

love.window.isDisplaySleepEnabled

love.window.isDisplaySleepEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets 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 enabled = love.window.isDisplaySleepEnabled( ) Arguments None. Returns boolean enabled True if system display sleep is en