updated type hints for remaining graphics_element generic types

This commit is contained in:
Mikayla
2024-09-26 21:23:50 +00:00
parent ec1fc13ae7
commit 17e53fdba2
38 changed files with 54 additions and 52 deletions

View File

@@ -160,7 +160,7 @@ local function self_check()
end
-- exit self check back home
---@param main_pane graphics_element
---@param main_pane MultiPane
local function exit_self_check(main_pane)
tcd.abort(handle_timeout)
self.net_listen = false
@@ -172,9 +172,9 @@ end
local check = {}
-- create the self-check view
---@param main_pane graphics_element
---@param main_pane MultiPane
---@param settings_cfg plc_config
---@param check_sys graphics_element
---@param check_sys Div
---@param style { [string]: cpair }
function check.create(main_pane, settings_cfg, check_sys, style)
local bw_fg_bg = style.bw_fg_bg

View File

@@ -61,7 +61,7 @@ local system = {}
-- create the system configuration view
---@param tool_ctl _plc_cfg_tool_ctl
---@param main_pane graphics_element
---@param main_pane MultiPane
---@param cfg_sys [ plc_config, plc_config, plc_config, table, function ]
---@param divs Div[]
---@param style { [string]: cpair }

View File

@@ -125,7 +125,7 @@ local function load_settings(target, raw)
end
-- create the config view
---@param display graphics_element
---@param display DisplayBox
local function config_view(display)
local bw_fg_bg = style.bw_fg_bg
local g_lg_fg_bg = style.g_lg_fg_bg

View File

@@ -34,7 +34,7 @@ local ind_grn = style.ind_grn
local ind_red = style.ind_red
-- create new front panel view
---@param panel graphics_element main displaybox
---@param panel DisplayBox main displaybox
local function init(panel)
local s_hi_box = style.theme.highlight_box