From 696161ed0faa595e24b1e5a2d3cfa47d9ecadbe3 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Sat, 13 May 2023 18:29:20 +0800 Subject: [PATCH] docs(system): make all parameters for set_window_hit_test optional --- docs/api/system.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/api/system.lua b/docs/api/system.lua index 17c379fa..ffbc6f42 100644 --- a/docs/api/system.lua +++ b/docs/api/system.lua @@ -107,10 +107,12 @@ function system.set_window_bordered(bordered) end ---When then window is run borderless (without system decorations), this ---function allows to set the size of the different regions that allow ---for custom window management. +---To disable custom window management, call this function without any +---arguments --- ----@param title_height number ----@param controls_width number Width of window controls (maximize,minimize and close buttons, etc). ----@param resize_border number The amount of pixels reserved for resizing +---@param title_height? number Height of the window decoration +---@param controls_width? number Width of window controls (maximize,minimize and close buttons, etc). +---@param resize_border? number The amount of pixels reserved for resizing function system.set_window_hit_test(title_height, controls_width, resize_border) end ---