Add boundingBox function

This function returns x, y, width and height of the last layout element
This commit is contained in:
Qermon 2019-06-19 19:41:36 +02:00 committed by GitHub
parent 1767782603
commit ba0bb325fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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