Class HorizontalLayout
Lays out components horizontally.
Usage:
-- Create a horizontal layout manager with padding of 2.
local layout = HorizontalLayout(2)
Fields
-
HorizontalLayout.hAlignment
-
Horizontal alignment of contained components.
Default left.
-
HorizontalLayout.padding
-
Padding between contained components.
-
HorizontalLayout.vAlignment
-
Vertical alignment of contained components.
Default center.
Constructor
-
HorizontalLayout:_init ([padding=0[, hAlign=Align.LEFT[, vAlign=Align.CENTER]]])
-
Constructs a HorizontalLayout.
Parameters:
- padding
The padding between components within this layout.
(default 0)
- hAlign
The horizontal alignment of the components.
(default Align.LEFT)
- vAlign
The vertical alignment of the components.
(default Align.CENTER)