diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 19:19:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 19:19:39 +0800 |
commit | 8e3de6b5653ea7087a248b3eb2a4aea6067688b5 (patch) | |
tree | e99d12883c1fced1a3fb67f2039ac0475dacb79d /meta/3rd/love2d/library/love.window.lua | |
parent | 9de98dc808dc01fbef9e4abfe60d2d76f7691c13 (diff) | |
download | lua-language-server-8e3de6b5653ea7087a248b3eb2a4aea6067688b5.zip |
update
Diffstat (limited to 'meta/3rd/love2d/library/love.window.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.window.lua | 65 |
1 files changed, 54 insertions, 11 deletions
diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua index 8d3e9dbf..e0ce54c9 100644 --- a/meta/3rd/love2d/library/love.window.lua +++ b/meta/3rd/love2d/library/love.window.lua @@ -1,5 +1,6 @@ ---@meta +-- version: nil ---@class love.window love.window = {} @@ -278,19 +279,61 @@ function love.window.toPixels(value) end ---@return boolean success # True if successful, false otherwise. function love.window.updateMode(width, height, settings) end +--- +---Types of device display orientation. +--- ---@class love.DisplayOrientation ----@field unknown integer # Orientation cannot be determined. ----@field landscape integer # Landscape orientation. ----@field landscapeflipped integer # Landscape orientation (flipped). ----@field portrait integer # Portrait orientation. ----@field portraitflipped integer # Portrait orientation (flipped). +--- +---Orientation cannot be determined. +--- +---@field unknown integer +--- +---Landscape orientation. +--- +---@field landscape integer +--- +---Landscape orientation (flipped). +--- +---@field landscapeflipped integer +--- +---Portrait orientation. +--- +---@field portrait integer +--- +---Portrait orientation (flipped). +--- +---@field portraitflipped integer +--- +---Types of fullscreen modes. +--- ---@class love.FullscreenType ----@field desktop integer # Sometimes known as borderless fullscreen windowed mode. A borderless screen-sized window is created which sits on top of all desktop UI elements. The window is automatically resized to match the dimensions of the desktop, and its size cannot be changed. ----@field exclusive integer # Standard exclusive-fullscreen mode. Changes the display mode (actual resolution) of the monitor. ----@field normal integer # Standard exclusive-fullscreen mode. Changes the display mode (actual resolution) of the monitor. +--- +---Sometimes known as borderless fullscreen windowed mode. A borderless screen-sized window is created which sits on top of all desktop UI elements. The window is automatically resized to match the dimensions of the desktop, and its size cannot be changed. +--- +---@field desktop integer +--- +---Standard exclusive-fullscreen mode. Changes the display mode (actual resolution) of the monitor. +--- +---@field exclusive integer +--- +---Standard exclusive-fullscreen mode. Changes the display mode (actual resolution) of the monitor. +--- +---@field normal integer +--- +---Types of message box dialogs. Different types may have slightly different looks. +--- ---@class love.MessageBoxType ----@field info integer # Informational dialog. ----@field warning integer # Warning dialog. ----@field error integer # Error dialog. +--- +---Informational dialog. +--- +---@field info integer +--- +---Warning dialog. +--- +---@field warning integer +--- +---Error dialog. +--- +---@field error integer |