summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.window.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-20 19:36:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-20 19:36:35 +0800
commit7801b00a804bcd68aacda265afdf4d774486b4e9 (patch)
treedc73791db11a7c49f2eb25f9141d1497b6e1e7e3 /meta/3rd/love2d/library/love.window.lua
parentda6942640931afd8f39db0fc84e8e0394f95d9b1 (diff)
downloadlua-language-server-7801b00a804bcd68aacda265afdf4d774486b4e9.zip
update
Diffstat (limited to 'meta/3rd/love2d/library/love.window.lua')
-rw-r--r--meta/3rd/love2d/library/love.window.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua
index dd219d79..dc45f1d7 100644
--- a/meta/3rd/love2d/library/love.window.lua
+++ b/meta/3rd/love2d/library/love.window.lua
@@ -20,6 +20,7 @@ function love.window.close() end
---
---Most LÖVE functions return values and expect arguments in terms of pixels rather than density-independent units.
---
+---@overload fun(px: number, py: number):number, number
---@param pixelvalue number # A number in pixels to convert to density-independent units.
---@return number value # The converted number, in density-independent units.
function love.window.fromPixels(pixelvalue) end
@@ -201,6 +202,7 @@ function love.window.setDisplaySleepEnabled(enable) end
---
---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.
---
+---@overload fun(fullscreen: boolean, fstype: love.FullscreenType):boolean
---@param fullscreen boolean # Whether to enter or exit fullscreen mode.
---@return boolean success # True if an attempt to enter fullscreen was successful, false otherwise.
function love.window.setFullscreen(fullscreen) end
@@ -248,6 +250,7 @@ function love.window.setVSync(vsync) end
---
---Displays a message box dialog above the love window. The message box contains a title, optional text, and buttons.
---
+---@overload fun(title: string, message: string, buttonlist: table, type: love.MessageBoxType, attachtowindow: boolean):number
---@param title string # The title of the message box.
---@param message string # The text inside the message box.
---@param type love.MessageBoxType # The type of the message box.
@@ -264,6 +267,7 @@ function love.window.showMessageBox(title, message, type, attachtowindow) end
---
---Most LÖVE functions return values and expect arguments in terms of pixels rather than density-independent units.
---
+---@overload fun(x: number, y: number):number, number
---@param value number # A number in density-independent units to convert to pixels.
---@return number pixelvalue # The converted number, in pixels.
function love.window.toPixels(value) end