diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-25 16:42:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-25 16:42:28 +0800 |
commit | 916bec18c8384f14404b2b79d762855d1610411a (patch) | |
tree | aba18bd0608c1a04a0f949514b5df1ef3c5206fe /meta/3rd/love2d/library/love.window.lua | |
parent | f1b65e183ac8d7d7b07e0ae8c2450091989ce10f (diff) | |
download | lua-language-server-916bec18c8384f14404b2b79d762855d1610411a.zip |
fix #756
Diffstat (limited to 'meta/3rd/love2d/library/love.window.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.window.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua index beff6623..798fc3d5 100644 --- a/meta/3rd/love2d/library/love.window.lua +++ b/meta/3rd/love2d/library/love.window.lua @@ -98,12 +98,18 @@ function love.window.getMode() end --- ---The window position is in the coordinate space of the display it is currently in. --- +---@return number x # The x-coordinate of the window's position. +---@return number y # The y-coordinate of the window's position. ---@return number displayindex # The index of the display that the window is in. function love.window.getPosition() end --- ---Gets area inside the window which is known to be unobstructed by a system title bar, the iPhone X notch, etc. Useful for making sure UI elements can be seen by the user. --- +---@return number x # Starting position of safe area (x-axis). +---@return number y # Starting position of safe area (y-axis). +---@return number w # Width of safe area. +---@return number h # Height of safe area. function love.window.getSafeArea() end --- @@ -232,8 +238,10 @@ function love.window.setMode(width, height, flags) end --- ---The window position is in the coordinate space of the specified display. --- +---@param x number # The x-coordinate of the window's position. +---@param y number # The y-coordinate of the window's position. ---@param displayindex number # The index of the display that the new window position is relative to. -function love.window.setPosition(displayindex) end +function love.window.setPosition(x, y, displayindex) end --- ---Sets the window title. |