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.close (简体中文) 关闭窗口。 Added since 0.10.0
love.window.fromPixels (简体中文) 把以像素为单位的数字转换为设备无关单位。 Added since 0.9.2
love.window.getDesktopDimensions (简体中文) 获取桌面(显示器)的宽和高) Added since 0.9.0
love.window.getDimensions (简体中文) 获取窗口的宽和高 Added since 0.9.0 Removed in 0.10.0
love.window.getDisplayCount (简体中文) 获取连接显示器的数量。 Added since 0.9.0
love.window.getDisplayName (简体中文) 获取显示器的名称。 Added since 0.9.2
love.window.getFullscreen (简体中文) 判断是否全屏。 Added since 0.9.0
love.window.getFullscreenModes (简体中文) 获取能支持的分辨率的列表。 Added since 0.9.0
love.window.getHeight (简体中文) 获取窗口的高。 Added since 0.9.0 Removed in 0.10.0
love.window.getIcon (简体中文) 获取窗口图标。 Added since 0.9.0
love.window.getMode (简体中文) (待翻译)Gets the display mode and properties of the window. Added since 0.9.0
love.window.getWidth (简体中文) 获取窗口的宽 Added since 0.9.0 Removed in 0.10.0

Enums

See Also

Other Languages