From e12a68a74d9527d4becde122da4ff1ad6550564e Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 5 Jan 2024 17:15:47 +1100 Subject: split lua stubs into one set for ldoc, and one set for lua-ls --- ldoc-stubs/backstack.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ldoc-stubs/backstack.lua (limited to 'ldoc-stubs/backstack.lua') diff --git a/ldoc-stubs/backstack.lua b/ldoc-stubs/backstack.lua new file mode 100644 index 00000000..d4807d37 --- /dev/null +++ b/ldoc-stubs/backstack.lua @@ -0,0 +1,13 @@ +--- Module for adding and removing screens from the system's backstack. +-- @module backstack + +local backstack = {} + +--- Pushes a new screen onto the backstack. +-- @tparam function constructor Called to create the UI for the new screen. A new default root object and group will be set before calling this function. The function provided should return a table holding any bindings used by this screen; the returned value is retained so long as this screen is present in the backstack. +function backstack.push(constructor) end + +--- Removes the currently active screen, and instead shows the screen underneath it on the backstack. Does nothing if this is the only existing screen. +function backstack.pop() end + +return backstack -- cgit v1.2.3