WithAppearance

interface WithAppearance

Implemented by anything that can provide an Appearance.

Pose and Graphic return themselves. NinePatch returns a NinePatchAppearance.

Inheritors

Functions

Link copied to clipboard
abstract fun appearance(): Appearance

Pose and Graphic return themselves. NinePatch returns a NinePatchAppearance.

Link copied to clipboard
abstract fun appearanceForActor(actor: Actor): Appearance

Creates an Appearance with the same tint. Also, if the new appearances is StretchableAppearance then it will have the same bounds as the previous appearance.

Link copied to clipboard
open fun applyToActor(actor: Actor)

Set the actor's appearance.