PanelSize: Difference between revisions
From Crumbled World Wiki
(Created page with "{{:PanelSizeExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |PanelSize(Vec2 size) | |- |PanelSize(Vec2 size, PanelSizeType type) | |- |PanelSize(Vec2 size, Vec2 scale) | |- |PanelSize(Vec2 size, Vec2 scale, PanelSizeType type) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |PanelSize |getMinSize() |Returns the minimum panel size. |- |PanelSize |...") |
(No difference)
|
Latest revision as of 14:19, 5 July 2025
Constructor
| function | description |
|---|---|
| PanelSize(Vec2 size) | |
| PanelSize(Vec2 size, PanelSizeType type) | |
| PanelSize(Vec2 size, Vec2 scale) | |
| PanelSize(Vec2 size, Vec2 scale, PanelSizeType type) |
Functions
| return | function | description |
|---|---|---|
| PanelSize | getMinSize() | Returns the minimum panel size. |
| PanelSize | getMaxSize() | Returns the maximum panel size. |
| Vec2 | getSize() | Returns the panel size. |
| Vec2 | getScale() | Returns the panel scale. |
| PanelSizeType | getSizeType() | Returns the panel size type. |
| bool | getFitChildren() | Returns if the panel has any auto size that uses a children width or height. |
| setSizeType(PanelSizeType type) | Set size type | |
| setScale(Vec2 scale) | Set panel scale. | |
| setSize(Vec2 size) | Set panel size. | |
| setMinSize(PanelSize panelSize) | Set panel min panelSize. | |
| setMaxSize(PanelSize panelSize) | Set panel max panelSize. | |
| setFitChildren(bool fitWidth, bool fitHeight) | Set panel to auto fit children on width and height. |