2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00
koreader/frontend/ui/widget/rectspan.lua

16 lines
266 B
Lua
Raw Normal View History

2013-10-18 20:38:07 +00:00
local Widget = require("ui/widget/widget")
--[[
Dummy Widget that reserves vertical and horizontal space
]]
local RectSpan = Widget:new{
2014-03-13 13:52:43 +00:00
width = 0,
hright = 0,
2013-10-18 20:38:07 +00:00
}
function RectSpan:getSize()
2014-03-13 13:52:43 +00:00
return {w = self.width, h = self.height}
2013-10-18 20:38:07 +00:00
end
return RectSpan