section and within annotations for ldoc
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

This commit is contained in:
2026-02-25 23:24:53 +01:00
parent 297ee8b622
commit 777c27aa54
27 changed files with 175 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
--- @section Screen
local _screens = {}
--- Registers a screen definition.
--- @within Screen
-- @param screen_data table The screen data table.
function Screen.register(screen_data)
if _screens[screen_data.id] then
@@ -19,6 +21,7 @@ function Screen.register(screen_data)
end
--- Gets a screen by ID.
--- @within Screen
-- @param screen_id string The ID of the screen.
-- @return table The screen table or nil.
function Screen.get_by_id(screen_id)
@@ -26,6 +29,7 @@ function Screen.get_by_id(screen_id)
end
--- Gets all registered screens.
--- @within Screen
-- @return table A table containing all registered screen data, indexed by their IDs.
function Screen.get_all()
return _screens