getChildren() can be sorted to
change the order of the actors (eg Actor#setZIndex(int)). This can be easier than using Table when actors need
to be inserted into or removed from the middle of the group. invalidate() must be called after changing the children
order.
The preferred width is the largest preferred width of any child. The preferred height is the sum of the children's preferred
heights plus spacing. The preferred size is slightly different when wrap is enabled. The min size is the
preferred size and the max size is 0.
Widgets are sized using their preferred height, so widgets which return 0 as their preferred
height will be given a height of 0.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private FloatArray | |
| private boolean | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private boolean | |
| private boolean | |
| private boolean | |
| private float | |
| private boolean | |
| private float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public VerticalGroup | |
| public VerticalGroup | bottom()
Sets |
| public VerticalGroup | |
| public VerticalGroup | columnAlign(int columnAlign)
Sets the vertical alignment of each column of widgets when |
| public VerticalGroup | columnBottom()
Adds |
| public VerticalGroup | |
| public VerticalGroup | |
| public VerticalGroup | columnRight()
Adds |
| public VerticalGroup | columnTop()
Adds |
| private void | |
| protected void | drawDebugBounds(ShapeRenderer shapes)
Overrides com. Draws a rectangle for the bounds of this actor if |
| public VerticalGroup | |
| public VerticalGroup | expand(boolean expand)
When true and wrap is false, the columns will take up the entire vertical group width. |
| public VerticalGroup | |
| public VerticalGroup | |
| public int | |
| public int | |
| public boolean | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public boolean | |
| public float | |
| public boolean | |
| public float | |
| public VerticalGroup | |
| public void | invalidate()
Overrides com. Implements com. Invalidates this actor's layout, causing |
| public void | layout()
Overrides com. Implements com. Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child,
calls |
| private void | |
| public VerticalGroup | left()
Adds |
| public VerticalGroup | |
| public VerticalGroup | |
| public VerticalGroup | |
| public VerticalGroup | |
| public VerticalGroup | |
| public VerticalGroup | |
| public VerticalGroup | |
| public VerticalGroup | |
| public VerticalGroup | right()
Adds |
| public void | |
| public VerticalGroup | |
| public VerticalGroup | top()
Sets |
| public VerticalGroup | wrap()
If false, the widgets are arranged in a single column and the preferred height is the widget heights plus spacing. |
| public VerticalGroup | |
| public VerticalGroup |
| align | back to summary |
|---|---|
| private int align | |
| columnAlign | back to summary |
|---|---|
| private int columnAlign | |
| columnSizes | back to summary |
|---|---|
| private FloatArray columnSizes | |
| expand | back to summary |
|---|---|
| private boolean expand | |
| fill | back to summary |
|---|---|
| private float fill | |
| lastPrefWidth | back to summary |
|---|---|
| private float lastPrefWidth | |
| padBottom | back to summary |
|---|---|
| private float padBottom | |
| padLeft | back to summary |
|---|---|
| private float padLeft | |
| padRight | back to summary |
|---|---|
| private float padRight | |
| padTop | back to summary |
|---|---|
| private float padTop | |
| prefHeight | back to summary |
|---|---|
| private float prefHeight | |
| prefWidth | back to summary |
|---|---|
| private float prefWidth | |
| reverse | back to summary |
|---|---|
| private boolean reverse | |
| round | back to summary |
|---|---|
| private boolean round | |
| sizeInvalid | back to summary |
|---|---|
| private boolean sizeInvalid | |
| space | back to summary |
|---|---|
| private float space | |
| wrap | back to summary |
|---|---|
| private boolean wrap | |
| wrapSpace | back to summary |
|---|---|
| private float wrapSpace | |
| VerticalGroup | back to summary |
|---|---|
| public VerticalGroup() | |
| align | back to summary |
|---|---|
| public VerticalGroup align(int align) Sets the alignment of all widgets within the vertical group. Set to | |
| bottom | back to summary |
|---|---|
| public VerticalGroup bottom() Sets | |
| center | back to summary |
|---|---|
| public VerticalGroup center() Sets the alignment of all widgets within the vertical group to | |
| columnAlign | back to summary |
|---|---|
| public VerticalGroup columnAlign(int columnAlign) Sets the vertical alignment of each column of widgets when | |
| columnBottom | back to summary |
|---|---|
| public VerticalGroup columnBottom() Adds | |
| columnCenter | back to summary |
|---|---|
| public VerticalGroup columnCenter() Sets the alignment of widgets within each column to | |
| columnLeft | back to summary |
|---|---|
| public VerticalGroup columnLeft() Adds | |
| columnRight | back to summary |
|---|---|
| public VerticalGroup columnRight() Adds | |
| columnTop | back to summary |
|---|---|
| public VerticalGroup columnTop() Adds | |
| computeSize | back to summary |
|---|---|
| private void computeSize() | |
| drawDebugBounds | back to summary |
|---|---|
| protected void drawDebugBounds(ShapeRenderer shapes) Overrides com. Doc from com. Draws a rectangle for the bounds of this actor if | |
| expand | back to summary |
|---|---|
| public VerticalGroup expand() | |
| expand | back to summary |
|---|---|
| public VerticalGroup expand(boolean expand) When true and wrap is false, the columns will take up the entire vertical group width. | |
| fill | back to summary |
|---|---|
| public VerticalGroup fill() | |
| fill | back to summary |
|---|---|
public VerticalGroup fill(float fill)
| |
| getAlign | back to summary |
|---|---|
| public int getAlign() | |
| getColumns | back to summary |
|---|---|
| public int getColumns() When wrapping is enabled, the number of columns may be > 1. | |
| getExpand | back to summary |
|---|---|
| public boolean getExpand() | |
| getFill | back to summary |
|---|---|
| public float getFill() | |
| getPadBottom | back to summary |
|---|---|
| public float getPadBottom() | |
| getPadLeft | back to summary |
|---|---|
| public float getPadLeft() | |
| getPadRight | back to summary |
|---|---|
| public float getPadRight() | |
| getPadTop | back to summary |
|---|---|
| public float getPadTop() | |
| getPrefHeight | back to summary |
|---|---|
| public float getPrefHeight() Overrides com. Implements com. | |
| getPrefWidth | back to summary |
|---|---|
| public float getPrefWidth() Overrides com. Implements com. | |
| getReverse | back to summary |
|---|---|
| public boolean getReverse() | |
| getSpace | back to summary |
|---|---|
| public float getSpace() | |
| getWrap | back to summary |
|---|---|
| public boolean getWrap() | |
| getWrapSpace | back to summary |
|---|---|
| public float getWrapSpace() | |
| grow | back to summary |
|---|---|
| public VerticalGroup grow() Sets fill to 1 and expand to true. | |
| invalidate | back to summary |
|---|---|
| public void invalidate() Overrides com. Implements com. Doc from com. Invalidates this actor's layout, causing | |
| layout | back to summary |
|---|---|
| public void layout() Overrides com. Implements com. Doc from com. Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child,
calls | |
| layoutWrapped | back to summary |
|---|---|
| private void layoutWrapped() | |
| left | back to summary |
|---|---|
| public VerticalGroup left() Adds | |
| pad | back to summary |
|---|---|
| public VerticalGroup pad(float pad) Sets the padTop, padLeft, padBottom, and padRight to the specified value. | |
| pad | back to summary |
|---|---|
| public VerticalGroup pad(float top, float left, float bottom, float right) | |
| padBottom | back to summary |
|---|---|
| public VerticalGroup padBottom(float padBottom) | |
| padLeft | back to summary |
|---|---|
| public VerticalGroup padLeft(float padLeft) | |
| padRight | back to summary |
|---|---|
| public VerticalGroup padRight(float padRight) | |
| padTop | back to summary |
|---|---|
| public VerticalGroup padTop(float padTop) | |
| reverse | back to summary |
|---|---|
| public VerticalGroup reverse() The children will be displayed last to first. | |
| reverse | back to summary |
|---|---|
| public VerticalGroup reverse(boolean reverse) If true, the children will be displayed last to first. | |
| right | back to summary |
|---|---|
| public VerticalGroup right() Adds | |
| setRound | back to summary |
|---|---|
| public void setRound(boolean round) If true (the default), positions and sizes are rounded to integers. | |
| space | back to summary |
|---|---|
| public VerticalGroup space(float space) Sets the vertical space between children. | |
| top | back to summary |
|---|---|
| public VerticalGroup top() Sets | |
| wrap | back to summary |
|---|---|
| public VerticalGroup wrap() If false, the widgets are arranged in a single column and the preferred height is the widget heights plus spacing. If true, the widgets will wrap using the height of the vertical group. The preferred height of the group will be 0 as it is expected that something external will set the height of the group. Widgets are sized to their preferred height unless it is larger than the group's height, in which case they are sized to the group's height but not less than their minimum height. Default is false. When wrap is enabled, the group's preferred width depends on the height of the group. In some cases the parent of the group will need to layout twice: once to set the height of the group and a second time to adjust to the group's new preferred width. | |
| wrap | back to summary |
|---|---|
| public VerticalGroup wrap(boolean wrap) | |
| wrapSpace | back to summary |
|---|---|
| public VerticalGroup wrapSpace(float wrapSpace) Sets the horizontal space between columns when wrap is enabled. | |