summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.window.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/love2d/library/love.window.lua')
-rw-r--r--meta/3rd/love2d/library/love.window.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua
index 798fc3d5..359ffdbe 100644
--- a/meta/3rd/love2d/library/love.window.lua
+++ b/meta/3rd/love2d/library/love.window.lua
@@ -40,7 +40,7 @@ function love.window.getDPIScale() end
---
---Gets the width and height of the desktop.
---
----@param displayindex number # The index of the display, if multiple monitors are available.
+---@param displayindex? number # The index of the display, if multiple monitors are available.
---@return string width # The width of the desktop.
---@return string height # The height of the desktop.
function love.window.getDesktopDimensions(displayindex) end
@@ -54,14 +54,14 @@ function love.window.getDisplayCount() end
---
---Gets the name of a display.
---
----@param displayindex number # The index of the display to get the name of.
+---@param displayindex? number # The index of the display to get the name of.
---@return string name # The name of the specified display.
function love.window.getDisplayName(displayindex) end
---
---Gets current device display orientation.
---
----@param displayindex number # Display index to get its display orientation, or nil for default display index.
+---@param displayindex? number # Display index to get its display orientation, or nil for default display index.
---@return love.DisplayOrientation orientation # Current device display orientation.
function love.window.getDisplayOrientation(displayindex) end
@@ -75,7 +75,7 @@ function love.window.getFullscreen() end
---
---Gets a list of supported fullscreen modes.
---
----@param displayindex number # The index of the display, if multiple monitors are available.
+---@param displayindex? number # The index of the display, if multiple monitors are available.
---@return table modes # A table of width/height pairs. (Note that this may not be in order.)
function love.window.getFullscreenModes(displayindex) end
@@ -189,7 +189,7 @@ function love.window.minimize() end
---
---In Windows the taskbar icon will flash, and in OS X the dock icon will bounce.
---
----@param continuous boolean # Whether to continuously request attention until the window becomes active, or to do it only once.
+---@param continuous? boolean # Whether to continuously request attention until the window becomes active, or to do it only once.
function love.window.requestAttention(continuous) end
---
@@ -240,7 +240,7 @@ function love.window.setMode(width, height, flags) end
---
---@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.
+---@param displayindex? number # The index of the display that the new window position is relative to.
function love.window.setPosition(x, y, displayindex) end
---
@@ -261,8 +261,8 @@ function love.window.setVSync(vsync) end
---@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.
----@param attachtowindow boolean # Whether the message box should be attached to the love window or free-floating.
+---@param type? love.MessageBoxType # The type of the message box.
+---@param attachtowindow? boolean # Whether the message box should be attached to the love window or free-floating.
---@return boolean success # Whether the message box was successfully displayed.
function love.window.showMessageBox(title, message, type, attachtowindow) end