public class AbsoluteOffsetRule extends java.lang.Object implements OffsetRule
OffsetRule
that returns a fixed offset in pixelsConstructor and Description |
---|
AbsoluteOffsetRule(float offset)
Constructor
|
Modifier and Type | Method and Description |
---|---|
float |
getOffset(LayoutState layoutState)
Determines the preferred offset of a
UiElement |
public AbsoluteOffsetRule(float offset)
offset
- The offset in pixelspublic float getOffset(LayoutState layoutState)
OffsetRule
UiElement
getOffset
in interface OffsetRule
layoutState
- The current LayoutState
UiElement
preferred offset