Panel
Extends BentoElement.
The panel can contain other elements.
Builders:
builder: The default builder.ofMenu: UsesMENU_BACKGROUND_RENDER.
Builder methods:
spacing: The spacing between children.- getter / setter
displayAxis: The axis to place children along.- getter / setter
Class methods:
addChild: Adds the element as a child.removeChild: Removes the element as a child.reflowNow: Reflows the panel layout now rather than waiting until the next frame.
Example:
Window window = client.getWindow();int width = window.getScaledWidth();int height = window.getScaledHeight();
Panel panel = Panel.builder() .dimensions(width, height) .alignCenter() .padding(10) .spacing(10) .build();
panel.addChild(anElement);