Positioned
What it does
- This UI component positions a child component at a specified location.
Parameters
position
- A
Vector2i
object that specifies the position of the child component.
- A
child
- The child UI component that will be positioned.
Size Behaviour
- Minimum
Example
public class TestPositioned implements UIComponent {
@Override
public UIComponent build(Layout layout) {
return new Positioned(
new Vector2i(100, 20),
new Text.Builder("Positioned")
);
}
}