Table when actors need to be inserted into or removed from the middle of the group. getChildren() can be
sorted to change the order of the actors (eg Actor#setZIndex(int)). invalidate() must be called after changing
the children order.
The preferred width is the sum of the children's preferred widths plus spacing. The preferred height is the largest preferred
height of any child. 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 width, so widgets which return 0 as their preferred width
will be given a width of 0 (eg, a label with word wrap enabled).
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private float | |
| private boolean | |
| private boolean | |
| private int | |
| private FloatArray | |
| private boolean | |
| private float | |
| private boolean | |
| private boolean | |
| private float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HorizontalGroup | |
| public HorizontalGroup | bottom()
Sets |
| public HorizontalGroup | |
| private void | |
| protected void | drawDebugBounds(ShapeRenderer shapes)
Overrides com. Draws a rectangle for the bounds of this actor if |
| public HorizontalGroup | |
| public HorizontalGroup | expand(boolean expand)
When true and wrap is false, the rows will take up the entire horizontal group height. |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public int | |
| public boolean | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public boolean | |
| public int | |
| public float | |
| public boolean | |
| public boolean | |
| public float | |
| public HorizontalGroup | |
| 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 HorizontalGroup | left()
Adds |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | right()
Adds |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | rowLeft()
Adds |
| public HorizontalGroup | rowRight()
Adds |
| public HorizontalGroup | |
| public void | |
| public HorizontalGroup | |
| public HorizontalGroup | top()
Sets |
| public HorizontalGroup | wrap()
If false, the widgets are arranged in a single row and the preferred width is the widget widths plus spacing. |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup | |
| public HorizontalGroup |
| align | back to summary |
|---|---|
| private int align | |
| expand | back to summary |
|---|---|
| private boolean expand | |
| fill | back to summary |
|---|---|
| private float fill | |
| lastPrefHeight | back to summary |
|---|---|
| private float lastPrefHeight | |
| 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 | |
| rowAlign | back to summary |
|---|---|
| private int rowAlign | |
| rowSizes | back to summary |
|---|---|
| private FloatArray rowSizes | |
| sizeInvalid | back to summary |
|---|---|
| private boolean sizeInvalid | |
| space | back to summary |
|---|---|
| private float space | |
| wrap | back to summary |
|---|---|
| private boolean wrap | |
| wrapReverse | back to summary |
|---|---|
| private boolean wrapReverse | |
| wrapSpace | back to summary |
|---|---|
| private float wrapSpace | |
| HorizontalGroup | back to summary |
|---|---|
| public HorizontalGroup() | |
| align | back to summary |
|---|---|
| public HorizontalGroup align(int align) Sets the alignment of all widgets within the horizontal group. Set to | |
| bottom | back to summary |
|---|---|
| public HorizontalGroup bottom() Sets | |
| center | back to summary |
|---|---|
| public HorizontalGroup center() Sets the alignment of all widgets within the horizontal group to | |
| 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 HorizontalGroup expand() | |
| expand | back to summary |
|---|---|
| public HorizontalGroup expand(boolean expand) When true and wrap is false, the rows will take up the entire horizontal group height. | |
| fill | back to summary |
|---|---|
| public HorizontalGroup fill() | |
| fill | back to summary |
|---|---|
public HorizontalGroup fill(float fill)
| |
| getAlign | back to summary |
|---|---|
| public int getAlign() | |
| 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() | |
| getRows | back to summary |
|---|---|
| public int getRows() When wrapping is enabled, the number of rows may be > 1. | |
| getSpace | back to summary |
|---|---|
| public float getSpace() | |
| getWrap | back to summary |
|---|---|
| public boolean getWrap() | |
| getWrapReverse | back to summary |
|---|---|
| public boolean getWrapReverse() | |
| getWrapSpace | back to summary |
|---|---|
| public float getWrapSpace() | |
| grow | back to summary |
|---|---|
| public HorizontalGroup 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 HorizontalGroup left() Adds | |
| pad | back to summary |
|---|---|
| public HorizontalGroup pad(float pad) Sets the padTop, padLeft, padBottom, and padRight to the specified value. | |
| pad | back to summary |
|---|---|
| public HorizontalGroup pad(float top, float left, float bottom, float right) | |
| padBottom | back to summary |
|---|---|
| public HorizontalGroup padBottom(float padBottom) | |
| padLeft | back to summary |
|---|---|
| public HorizontalGroup padLeft(float padLeft) | |
| padRight | back to summary |
|---|---|
| public HorizontalGroup padRight(float padRight) | |
| padTop | back to summary |
|---|---|
| public HorizontalGroup padTop(float padTop) | |
| reverse | back to summary |
|---|---|
| public HorizontalGroup reverse() The children will be displayed last to first. | |
| reverse | back to summary |
|---|---|
| public HorizontalGroup reverse(boolean reverse) If true, the children will be displayed last to first. | |
| right | back to summary |
|---|---|
| public HorizontalGroup right() Adds | |
| rowAlign | back to summary |
|---|---|
| public HorizontalGroup rowAlign(int rowAlign) Sets the horizontal alignment of each row of widgets when | |
| rowBottom | back to summary |
|---|---|
| public HorizontalGroup rowBottom() Sets | |
| rowCenter | back to summary |
|---|---|
| public HorizontalGroup rowCenter() Sets the alignment of widgets within each row to | |
| rowLeft | back to summary |
|---|---|
| public HorizontalGroup rowLeft() Adds | |
| rowRight | back to summary |
|---|---|
| public HorizontalGroup rowRight() Adds | |
| rowTop | back to summary |
|---|---|
| public HorizontalGroup rowTop() Sets | |
| 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 HorizontalGroup space(float space) Sets the horizontal space between children. | |
| top | back to summary |
|---|---|
| public HorizontalGroup top() Sets | |
| wrap | back to summary |
|---|---|
| public HorizontalGroup wrap() If false, the widgets are arranged in a single row and the preferred width is the widget widths plus spacing. If true, the widgets will wrap using the width of the horizontal group. The preferred width of the group will be 0 as it is expected that something external will set the width of the group. Widgets are sized to their preferred width unless it is larger than the group's width, in which case they are sized to the group's width but not less than their minimum width. Default is false. When wrap is enabled, the group's preferred height depends on the width of the group. In some cases the parent of the group will need to layout twice: once to set the width of the group and a second time to adjust to the group's new preferred height. | |
| wrap | back to summary |
|---|---|
| public HorizontalGroup wrap(boolean wrap) | |
| wrapReverse | back to summary |
|---|---|
| public HorizontalGroup wrapReverse() Rows will wrap above the previous rows. | |
| wrapReverse | back to summary |
|---|---|
| public HorizontalGroup wrapReverse(boolean wrapReverse) If true, rows will wrap above the previous rows. | |
| wrapSpace | back to summary |
|---|---|
| public HorizontalGroup wrapSpace(float wrapSpace) Sets the vertical space between rows when wrap is enabled. | |