docs(system): make all parameters for set_window_hit_test optional

This commit is contained in:
takase1121 2023-05-13 18:29:20 +08:00
parent bd36b3f615
commit 4c320a10c0
No known key found for this signature in database
GPG Key ID: 60EEFFC68EB3031B
1 changed files with 5 additions and 3 deletions

View File

@ -107,10 +107,12 @@ function system.set_window_bordered(bordered) end
---When then window is run borderless (without system decorations), this ---When then window is run borderless (without system decorations), this
---function allows to set the size of the different regions that allow ---function allows to set the size of the different regions that allow
---for custom window management. ---for custom window management.
---To disable custom window management, call this function without any
---arguments
--- ---
---@param title_height number ---@param title_height? number Height of the window decoration
---@param controls_width number Width of window controls (maximize,minimize and close buttons, etc). ---@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 resize_border? number The amount of pixels reserved for resizing
function system.set_window_hit_test(title_height, controls_width, resize_border) end function system.set_window_hit_test(title_height, controls_width, resize_border) end
--- ---