public static class CellWidget.CellWidgetBuilder<Widget extends com.badlogic.gdx.scenes.scene2d.Actor>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CellWidget.CellWidgetBuilder<Widget> |
align(Alignment alignment) |
CellWidget.CellWidgetBuilder<Widget> |
expandX()
Widget will expand on X axis.
|
CellWidget.CellWidgetBuilder<Widget> |
expandY()
Widget will expand on Y axis.
|
CellWidget.CellWidgetBuilder<Widget> |
fillX()
Widget will fill X axis.
|
CellWidget.CellWidgetBuilder<Widget> |
fillY()
Widget will fill Y axis.
|
CellWidget.CellWidgetBuilder<Widget> |
height(int height) |
CellWidget.CellWidgetBuilder<Widget> |
minHeight(int minHeight) |
CellWidget.CellWidgetBuilder<Widget> |
minWidth(int minWidth) |
CellWidget.CellWidgetBuilder<Widget> |
padding(Padding padding) |
CellWidget.CellWidgetBuilder<Widget> |
useSpacing()
Forces the given padding object to work as spacing data.
|
CellWidget.CellWidgetBuilder<Widget> |
widget(Widget widget) |
CellWidget.CellWidgetBuilder<Widget> |
width(int width) |
CellWidget<Widget> |
wrap() |
public CellWidget<Widget> wrap()
public CellWidget.CellWidgetBuilder<Widget> widget(Widget widget)
widget
- will replace the original widget wrapped by the builder.public CellWidget.CellWidgetBuilder<Widget> padding(Padding padding)
padding
- can be also applied as spacing after calling useSpacing().public CellWidget.CellWidgetBuilder<Widget> useSpacing()
public CellWidget.CellWidgetBuilder<Widget> expandX()
public CellWidget.CellWidgetBuilder<Widget> expandY()
public CellWidget.CellWidgetBuilder<Widget> fillX()
public CellWidget.CellWidgetBuilder<Widget> fillY()
public CellWidget.CellWidgetBuilder<Widget> align(Alignment alignment)
alignment
- will be used to align the widget in the cell area it has. May need expansion to
take any effect.public CellWidget.CellWidgetBuilder<Widget> width(int width)
width
- set as min, preffered and max width. Has to be higher than 0 or it will be ignored.public CellWidget.CellWidgetBuilder<Widget> height(int height)
height
- set as min, preffered and max height. Has to be higher than 0 or it will be ignored.public CellWidget.CellWidgetBuilder<Widget> minWidth(int minWidth)
minWidth
- forces the minimum width of the widget. Note that it overrides width() setting for
the min width. Has to be higher than 0 or it will be ignored.public CellWidget.CellWidgetBuilder<Widget> minHeight(int minHeight)
minHeight
- forces the minimum height of the widget. Note that it overrides height() setting
for the min height. Has to be higher than 0 or it will be ignored.