Constructor and Description |
---|
AbsoluteSizeRule(float width)
Constructor
|
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 AbsoluteSizeRule(float width)
width
- The width in pixelspublic float getSize(LayoutState layoutState)
SizeRule
UiElement
getSize
in interface SizeRule
layoutState
- The current LayoutState
UiElement
preferred sizepublic boolean isAutoSize()
SizeRule
isAutoSize
in interface SizeRule