Finished(?) annotation parsing
Small fixes for the parser
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user