Kinemium Docs

UIGridLayout

A grid layout for organizing GUI components.

Properties

PropertyTypeDefault
Namestring"UIGridLayout"
Enabledbooleantrue
CellPaddingXUDimUDim.new(0, 5)
CellPaddingYUDimUDim.new(0, 5)
SortOrderEnumItemEnum.SortOrder.LayoutOrder
HorizontalAlignmentEnumItemEnum.HorizontalAlignment.Left
VerticalAlignmentEnumItemEnum.VerticalAlignment.Top
FillDirectionEnumItemEnum.FillDirection.Horizontal
totalPaddingXanytotalPaddingX + px.X
totalPaddingYanytotalPaddingY + px.Y
currentRowtable{ child }
currentRowWidthanysize.X
currentRowWidthanyneededWidth
rowHanymath.max(rowH, size.Y)
totalContentHeightanytotalContentHeight + rowH
totalContentHeightanytotalContentHeight + padY
startYanytotalPaddingY + math.max(0, (effectiveHeight - totalContentHeight) * 0.5)
startYanytotalPaddingY + math.max(0, effectiveHeight - totalContentHeight)
rowWidthanyrowWidth + size.X
rowWidthanyrowWidth + padX
startXanytotalPaddingX + math.max(0, (effectiveWidth - rowWidth) * 0.5)
startXanytotalPaddingX + math.max(0, effectiveWidth - rowWidth)
cellYanycurY + (rowH - size.Y) * 0.5
cellYanycurY + (rowH - size.Y)
curXanycurX + size.X + padX
curYanycurY + rowH + padY
currentColtable{ child }
currentColHeightanysize.Y
currentColHeightanyneededHeight
colWanymath.max(colW, size.X)
totalContentWidthanytotalContentWidth + colW
totalContentWidthanytotalContentWidth + padX
startXanytotalPaddingX + math.max(0, (effectiveWidth - totalContentWidth) * 0.5)
startXanytotalPaddingX + math.max(0, effectiveWidth - totalContentWidth)
colHeightanycolHeight + size.Y
colHeightanycolHeight + padY
startYanytotalPaddingY + math.max(0, (effectiveHeight - colHeight) * 0.5)
startYanytotalPaddingY + math.max(0, effectiveHeight - colHeight)
cellXanycurX + (colW - size.X) * 0.5
cellXanycurX + (colW - size.X)
curYanycurY + size.Y + padY
curXanycurX + colW + padX

Functions


GetAbsoluteSize

Arguments

obj

Returns

This function returns nothing.

API

instance:GetAbsoluteSize(obj)

On this page