You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
704 B

--- Row layout for widgets
-- @classmod yui.Rows
-- @copyright 2022, The DoubleFourteen Code Forge
-- @author Lorenzo Cogotti, Andrea Pasquini
--- A widget container, lays down its child widgets into multiple rows.
local BASE = (...):gsub('rows$', '')
local Layout = require(BASE..'layout')
-- Advance position to next row,
-- given current position, widget dimensions and padding.
local function rowadvance(x,y, ww,wh, padding)
return x, y + wh + padding
local Rows = setmetatable({
advance = rowadvance,
__call = function(cls, args) return end
}, Layout)
Rows.__index = Rows
function return setmetatable(, Rows) end
return Rows