image

inline fun <S> KWidget<S>.image(drawableName: String, skin: Skin = Scene2DSkin.defaultSkin, init: Image.(S) -> Unit = {}): Image

Return

a Image instance added to this group.

Parameters

drawableName

name of a drawable stored in the chosen skin.

skin

Skin instance that contains the widget style. Defaults to Scene2DSkin.defaultSkin.

init

will be invoked with the widget as "this". Consumes actor container (usually a Cell or Node) that contains the widget. Might consume the actor itself if this group does not keep actors in dedicated containers. Inlined.


inline fun <S> KWidget<S>.image(ninePatch: NinePatch, init: Image.(S) -> Unit = {}): Image

Return

a Image instance added to this group.

Parameters

ninePatch

will be drawn by the Image.

init

will be invoked with the widget as "this". Consumes actor container (usually a Cell or Node) that contains the widget. Might consume the actor itself if this group does not keep actors in dedicated containers. Inlined.


inline fun <S> KWidget<S>.image(textureRegion: TextureRegion, init: Image.(S) -> Unit = {}): Image

Return

a Image instance added to this group.

Parameters

textureRegion

will be drawn by the Image.

init

will be invoked with the widget as "this". Consumes actor container (usually a Cell or Node) that contains the widget. Might consume the actor itself if this group does not keep actors in dedicated containers. Inlined.


inline fun <S> KWidget<S>.image(texture: Texture, init: Image.(S) -> Unit = {}): Image

Return

a Image instance added to this group.

Parameters

texture

will be drawn by the Image.

init

will be invoked with the widget as "this". Consumes actor container (usually a Cell or Node) that contains the widget. Might consume the actor itself if this group does not keep actors in dedicated containers. Inlined.


inline fun <S> KWidget<S>.image(drawable: Drawable? = null, init: Image.(S) -> Unit = {}): Image

Return

a Image instance added to this group.

Parameters

drawable

will be drawn by the Image. Per default it is null.

init

will be invoked with the widget as "this". Consumes actor container (usually a Cell or Node) that contains the widget. Might consume the actor itself if this group does not keep actors in dedicated containers. Inlined.