-
Notifications
You must be signed in to change notification settings - Fork 4
gdl.scene2d
Michael edited this page Dec 28, 2023
·
4 revisions
https://libgdx.com/wiki/graphics/2d/scene2d/scene2d.
[Actor](https://javadoc.io/doc/com.badlogicgames.gdx/gdx/latest/com/badlogic/gdx/scenes/scene2d/Actor.html) opts
:id
:name
:visible?
:touchable?
Widget
* `:fill-parent?`[`:align`](https://javadoc.io/static/com.badlogicgames.gdx/gdx/1.12.1/com/badlogic/gdx/utils/Align.html)
bottom
bottom-left
bottom-right
center
left
right
top
top-left
top-right
[`:scale`](https://javadoc.io/static/com.badlogicgames.gdx/gdx/1.12.1/com/badlogic/gdx/utils/Scaling.html)
Various scaling types for fitting one rectangle into another.-
:contain
Scales the source to fit the target while keeping the same aspect ratio, but the source is not scaled at all if smaller in both directions. -
:fill
Scales the source to fill the target while keeping the same aspect ratio. -
:fill-x
Scales the source to fill the target in the x direction while keeping the same aspect ratio. -
:fill-y
Scales the source to fill the target in the y direction while keeping the same aspect ratio. -
:fit
Scales the source to fit the target while keeping the same aspect ratio. -
:none
The source is not scaled. -
:stretch
Scales the source to fill the target. -
:stretch-x
Scales the source to fill the target in the x direction, without changing the y direction. -
:stretch-y
Scales the source to fill the target in the y direction, without changing the x direction.