cell

open fun <T : Actor> T.cell(grow: Boolean = false, growX: Boolean = false, growY: Boolean = false, expand: Boolean? = null, expandX: Boolean? = null, expandY: Boolean? = null, fill: Boolean? = null, fillX: Boolean? = null, fillY: Boolean? = null, uniform: Boolean? = null, uniformX: Boolean? = null, uniformY: Boolean? = null, align: Int? = null, colspan: Int? = null, width: Float? = null, minWidth: Float? = null, preferredWidth: Float? = null, maxWidth: Float? = null, height: Float? = null, minHeight: Float? = null, preferredHeight: Float? = null, maxHeight: Float? = null, pad: Float? = null, padTop: Float? = null, padLeft: Float? = null, padRight: Float? = null, padBottom: Float? = null, space: Float? = null, spaceTop: Float? = null, spaceLeft: Float? = null, spaceRight: Float? = null, spaceBottom: Float? = null, row: Boolean = false): T

Allows to customize properties of the Cell storing this actor.

Return

this actor.

Parameters

grow

if true, expands and fills the cell vertically and horizontally. Defaults to false.

growX

if true, expands and fills the cell horizontally. Defaults to false. Overrides grow.

growY

if true, expands and fills the cell vertically. Defaults to false. Overrides grow.

expand

if true, expands the cell vertically and horizontally. Overrides growX, growY.

expandX

if true, expands the cell horizontally. Overrides expand.

expandY

if true, expands the cell vertically. Overrides expand.

fill

if true, the actor will fill the whole cell area vertically and horizontally. Overrides growX, growY.

fillX

if true, the actor will fill the whole cell area horizontally. Overrides fill.

fillY

if true, the actor will fill the whole cell area vertically. Overrides fill.

uniform

see Cell.uniform.

uniformX

see Cell.uniformX. Overrides uniform.

uniformY

see Cell.uniformY. Overrides uniform.

align

actor alignment in the cell. See com.badlogic.gdx.utils.Align.

colspan

amount of columns taken by the cell.

width

sets maximum, preferred and minimum width of the cell in viewport units.

minWidth

sets minimum width of the cell. Overrides width.

preferredWidth

sets preferred width of the cell. Overrides width.

maxWidth

sets maximum width of the cell. Overrides width.

height

sets maximum, preferred and minimum height of the cell in viewport units.

minHeight

sets minimum height of the cell. Overrides height.

preferredHeight

sets preferred height of the cell. Overrides height.

maxHeight

sets maximum height of the cell. Overrides height.

pad

top, left, right and bottom padding value in viewport units. Contrary to space, paddings are summed.

padTop

top padding value. Overrides pad.

padLeft

left padding value. Overrides pad.

padRight

right padding value. Overrides pad.

padBottom

bottom padding value. Overrides pad.

space

top, left, right and bottom spacing value in viewport units. Contrary to pad, spacings are not summed.

spaceTop

top spacing value. Overrides space.

spaceLeft

left spacing value. Overrides space.

spaceRight

right spacing value. Overrides space.

spaceBottom

bottom spacing value. Overrides space.

row

if true, another row of actors will be started after this cell. Defaults to false.

See also