| Package | Description |
|---|---|
| com.badlogic.gdx.scenes.scene2d.ui | |
| com.badlogic.gdx.utils | |
| com.badlogic.gdx.utils.viewport |
| Modifier and Type | Method and Description |
|---|---|
void |
Image.setScaling(Scaling scaling) |
| Constructor and Description |
|---|
Image(Drawable drawable,
Scaling scaling)
Creates an image aligned center.
|
Image(Drawable drawable,
Scaling scaling,
int align) |
| Modifier and Type | Field and Description |
|---|---|
static Scaling |
Scaling.fill
Scales the source to fill the target while keeping the same aspect ratio.
|
static Scaling |
Scaling.fillX
Scales the source to fill the target in the x direction while keeping the same aspect ratio.
|
static Scaling |
Scaling.fillY
Scales the source to fill the target in the y direction while keeping the same aspect ratio.
|
static Scaling |
Scaling.fit
Scales the source to fit the target while keeping the same aspect ratio.
|
static Scaling |
Scaling.none
The source is not scaled.
|
static Scaling |
Scaling.stretch
Scales the source to fill the target.
|
static Scaling |
Scaling.stretchX
Scales the source to fill the target in the x direction, without changing the y direction.
|
static Scaling |
Scaling.stretchY
Scales the source to fill the target in the y direction, without changing the x direction.
|
| Modifier and Type | Method and Description |
|---|---|
Scaling |
ScalingViewport.getScaling() |
| Modifier and Type | Method and Description |
|---|---|
void |
ScalingViewport.setScaling(Scaling scaling) |
| Constructor and Description |
|---|
ScalingViewport(Scaling scaling,
float worldWidth,
float worldHeight)
Creates a new viewport using a new
OrthographicCamera. |
ScalingViewport(Scaling scaling,
float worldWidth,
float worldHeight,
Camera camera) |
Copyright © 2021. All rights reserved.