FlowLayout: Difference between revisions
From Crumbled World Wiki
(Created page with "{{:FlowLayoutExampleCode}} ==Inheritance== Layout ==Constructor== {| class="wikitable" !|function !|description |- |FlowLayout(Alignment align) | |- |FlowLayout(PanelSize panelSpacing) | |- |FlowLayout(Alignment align, PanelSize panelSpacing) | |- |FlowLayout(FallLayout fallLayout) | |- |FlowLayout() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Alignment |getAlignment()...") |
(No difference)
|
Latest revision as of 13:41, 5 July 2025
Example
local panel = form:add(Panel(PanelSize(Vec2(-1))))
--Set a FlowLayout to the panel. Note that doing this i meaningless because FlowLayout is the default layout.
panel:setLayout(FlowLayout())
Inheritance
Constructor
| function | description |
|---|---|
| FlowLayout(Alignment align) | |
| FlowLayout(PanelSize panelSpacing) | |
| FlowLayout(Alignment align, PanelSize panelSpacing) | |
| FlowLayout(FallLayout fallLayout) | |
| FlowLayout() |
Functions
| return | function | description |
|---|---|---|
| Alignment | getAlignment() | Get Alignment. |
| setAlignment(Alignment align) | set Alignment. |