Add boundingBox function
This function returns x, y, width and height of the last layout element
This commit is contained in:
parent
1767782603
commit
ba0bb325fe
1 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,10 @@ function Layout:cols(t)
|
|||
function() return self._heights[#self._heights] end) -- fill height
|
||||
end
|
||||
|
||||
function Layout:boundingBox()
|
||||
return self._x, self._y, self._w, self._h
|
||||
end
|
||||
|
||||
--[[ "Tests"
|
||||
do
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue