Constructor and Description |
---|
AbsoluteSizeRule(float width)
Constructor
|
Modifier and Type | Method and Description |
---|---|
float |
getWidth(LayoutState layoutState)
Determines the preferred width of a
UiElement |
public AbsoluteSizeRule(float width)
width
- The width in pixelspublic float getWidth(LayoutState layoutState)
SizeRule
UiElement
getWidth
in interface SizeRule
layoutState
- The current LayoutState
UiElement
preferred width