The preferred size of a window is the preferred size of the title text and the children as laid out by the table. After adding
children to the window, it can be convenient to call pack() to size the window to the size of the children.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Window.
The style for a window, see |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| pack-priv boolean | |
| protected int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| private static final int | |
| pack-priv int | |
| private Window. | |
| pack-priv Label | |
| pack-priv Table | |
| private static final Vector2 | |
| private static final Vector2 |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | draw(Batch batch, float parentAlpha)
Overrides com. If this method is overridden, the super method or |
| protected void | drawBackground(Batch batch, float parentAlpha, float x, float y)
Overrides com. Called to draw the background, before clipping is applied (if enabled). |
| protected void | |
| public float | |
| public Window. | getStyle()
Implements com. Returns the window's style. |
| public Label | |
| public Table | |
| public Actor | hit(float x, float y, boolean touchable)
Overrides com. If this method is overridden, the super method or |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| protected Label | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setStyle(Window.
Implements com. Set the current style of the actor |
| dragging | back to summary |
|---|---|
| protected boolean dragging | |
| drawTitleTable | back to summary |
|---|---|
| pack-priv boolean drawTitleTable | |
| edge | back to summary |
|---|---|
| protected int edge | |
| isModal | back to summary |
|---|---|
| pack-priv boolean isModal | |
| isMovable | back to summary |
|---|---|
| pack-priv boolean isMovable | |
| isResizable | back to summary |
|---|---|
| pack-priv boolean isResizable | |
| keepWithinStage | back to summary |
|---|---|
| pack-priv boolean keepWithinStage | |
| MOVE | back to summary |
|---|---|
| private static final int MOVE | |
| resizeBorder | back to summary |
|---|---|
| pack-priv int resizeBorder | |
| style | back to summary |
|---|---|
| private Window. | |
| titleLabel | back to summary |
|---|---|
| pack-priv Label titleLabel | |
| titleTable | back to summary |
|---|---|
| pack-priv Table titleTable | |
| tmpPosition | back to summary |
|---|---|
| private static final Vector2 tmpPosition | |
| tmpSize | back to summary |
|---|---|
| private static final Vector2 tmpSize | |
| Window | back to summary |
|---|---|
| public Window(String title, Skin skin) | |
| Window | back to summary |
|---|---|
| public Window(String title, Skin skin, String styleName) | |
| Window | back to summary |
|---|---|
| public Window(String title, Window. | |
| draw | back to summary |
|---|---|
| public void draw(Batch batch, float parentAlpha) Overrides com. Doc from com. If this method is overridden, the super method or | |
| drawBackground | back to summary |
|---|---|
| protected void drawBackground(Batch batch, float parentAlpha, float x, float y) Overrides com. Doc from com. Called to draw the background, before clipping is applied (if enabled). Default implementation draws the background drawable. | |
| drawStageBackground | back to summary |
|---|---|
| protected void drawStageBackground(Batch batch, float parentAlpha, float x, float y, float width, float height) | |
| getPrefWidth | back to summary |
|---|---|
| public float getPrefWidth() Overrides com. Implements com. | |
| getStyle | back to summary |
|---|---|
| public Window. Implements com. Returns the window's style. Modifying the returned style may not have an effect until | |
| getTitleLabel | back to summary |
|---|---|
| public Label getTitleLabel() | |
| getTitleTable | back to summary |
|---|---|
| public Table getTitleTable() | |
| hit | back to summary |
|---|---|
| public Actor hit(float x, float y, boolean touchable) Overrides com. Doc from com. If this method is overridden, the super method or
| |
| isDragging | back to summary |
|---|---|
| public boolean isDragging() | |
| isModal | back to summary |
|---|---|
| public boolean isModal() | |
| isMovable | back to summary |
|---|---|
| public boolean isMovable() | |
| isResizable | back to summary |
|---|---|
| public boolean isResizable() | |
| keepWithinStage | back to summary |
|---|---|
| public void keepWithinStage() | |
| newLabel | back to summary |
|---|---|
| protected Label newLabel(String text, Label. | |
| setKeepWithinStage | back to summary |
|---|---|
| public void setKeepWithinStage(boolean keepWithinStage) | |
| setModal | back to summary |
|---|---|
| public void setModal(boolean isModal) | |
| setMovable | back to summary |
|---|---|
| public void setMovable(boolean isMovable) | |
| setResizable | back to summary |
|---|---|
| public void setResizable(boolean isResizable) | |
| setResizeBorder | back to summary |
|---|---|
| public void setResizeBorder(int resizeBorder) | |
| setStyle | back to summary |
|---|---|
| public void setStyle(Window. Implements com. Doc from com. Set the current style of the actor | |
Window.
| Modifier and Type | Field and Description |
|---|---|
| public Drawable | |
| public Drawable | |
| public BitmapFont | |
| public Color |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| background | back to summary |
|---|---|
| public Drawable background
| |
| stageBackground | back to summary |
|---|---|
| public Drawable stageBackground
| |
| titleFont | back to summary |
|---|---|
| public BitmapFont titleFont | |
| titleFontColor | back to summary |
|---|---|
| public Color titleFontColor
| |
| WindowStyle | back to summary |
|---|---|
| public WindowStyle() | |
| WindowStyle | back to summary |
|---|---|
| public WindowStyle(BitmapFont titleFont, Color titleFontColor, Drawable background) | |
| WindowStyle | back to summary |
|---|---|
| public WindowStyle(Window. | |