yui/spacer.lua

15 lines
273 B
Lua
Raw Normal View History

2022-08-15 23:41:17 +02:00
local BASE = (...):gsub('spacer', '')
local Widget = require BASE..'widget'
-- Spacers don't accept focus
local Spacer = setmetatable({ nofocus = true }, Widget)
Spacer.__index = Spacer
function Spacer.new(args)
return setmetatable(args, Spacer)
end
return Spacer