mirror of
https://codeberg.org/1414codeforge/yui.git
synced 2025-01-31 11:24:48 +01:00
22 lines
435 B
Lua
22 lines
435 B
Lua
local BASE = (...):gsub('columns', '')
|
|
|
|
local Layout = require(BASE..'layout')
|
|
|
|
|
|
-- Advance position to next column,
|
|
-- given current position, widget dimensions and padding.
|
|
local function columnadvance(x,y, ww,wh, padding)
|
|
return x + ww + padding, y
|
|
end
|
|
|
|
function Columns(args)
|
|
local self = Layout.new(args)
|
|
|
|
self.advance = columnadvance
|
|
self.prev = 'left'
|
|
self.next = 'right'
|
|
return self
|
|
end
|
|
|
|
return Columns
|