| Constructor and Description |
|---|
AutoSizeRule() |
| Modifier and Type | Method and Description |
|---|---|
float |
getSize(LayoutState layoutState)
Determines the preferred size of a
UiElement |
boolean |
isAutoSize()
Returns if the size rule is an 'auto' rule
|
public float getSize(LayoutState layoutState)
SizeRuleUiElementgetSize in interface SizeRulelayoutState - The current LayoutStateUiElement preferred sizepublic boolean isAutoSize()
SizeRuleisAutoSize in interface SizeRule