Skip to content

ThemeState

@Serializable



sealed interface ThemeState

Sealed base for composable theme states rendered as sprites.

Inheritors

Properties

texture

abstract val texture: SResourceLocation

Resource location of the sprite atlas or source image.

textureSize

@SerialName



(value = "texture_size")abstract val textureSize: Size

Full pixel size of the source image when UV rendering is used.

u

abstract val u: Int

Horizontal UV offset within the atlas.

v

abstract val v: Int

Vertical UV offset within the atlas.