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)
SizeRule
UiElement
getSize
in interface SizeRule
layoutState
- The current LayoutState
UiElement
preferred sizepublic boolean isAutoSize()
SizeRule
isAutoSize
in interface SizeRule