Finished(?) annotation parsing

Small fixes for the parser
This commit is contained in:
Robert Jelic
2025-03-14 03:46:54 +01:00
parent 414703d18a
commit f14e0ce204
8 changed files with 323 additions and 2612 deletions

View File

@@ -51,19 +51,22 @@ function Display:init(props, basalt)
end
self:observe("width", function(self, width)
local window = self.get("window")
local window = self._window
if window then
window.reposition(1, 1, width, self.get("height"))
end
end)
self:observe("height", function(self, height)
local window = self.get("window")
local window = self._window
if window then
window.reposition(1, 1, self.get("width"), height)
end
end)
end
--- Returns the current window object
--- @shortDescription Returns the current window object
--- @return table window The current window object
function Display:getWindow()
return self._window
end

View File

@@ -419,8 +419,7 @@ function VisualElement:setCursor(x, y, blink, color)
return self
end
--- This function is used to prioritize the element by moving it to the top of its parent's children.
--- It removes the element from its parent and adds it back, effectively changing its order.
--- This function is used to prioritize the element by moving it to the top of its parent's children. It removes the element from its parent and adds it back, effectively changing its order.
--- @shortDescription Prioritizes the element by moving it to the top of its parent's children
--- @return VisualElement self The VisualElement instance
function VisualElement:prioritize()