visImage

inline fun <S> KWidget<S>.visImage(drawable: Drawable, scaling: Scaling = Scaling.stretch, align: Int = Align.center, init: VisImage.(S) -> Unit = {}): VisImage

Return

a VisImage instance added to this group.

Parameters

drawable

will be rendered by this 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>.visImage(drawableName: String, init: VisImage.(S) -> Unit = {}): VisImage

Return

a VisImage instance added to this group.

Parameters

drawableName

name of a drawable stored in the VisUI skin.

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>.visImage(texture: Texture, init: VisImage.(S) -> Unit = {}): VisImage

Return

a VisImage instance added to this group.

Parameters

texture

will be rendered by this 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>.visImage(ninePatch: NinePatch, init: VisImage.(S) -> Unit = {}): VisImage

Return

a VisImage instance added to this group.

Parameters

ninePatch

will be rendered by this 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>.visImage(textureRegion: TextureRegion, init: VisImage.(S) -> Unit = {}): VisImage

Return

a VisImage instance added to this group.

Parameters

textureRegion

will be rendered by this 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.