Skip to content

SimpleThemeState

@Serializable



data class SimpleThemeState(
    val texture: SResourceLocation, 
    val textureSize: Size, 
    val u: Int = 0, 
    val v: Int = 0, 
    val width: Int, 
    val height: Int, 
    val uWidth: Int, 
    val vHeight: Int
) : ThemeState

A fixed-size sprite slice within a sprite atlas or source image.

Constructors

SimpleThemeState

constructor(
    texture: SResourceLocation, 
    textureSize: Size, 
    u: Int = 0, 
    v: Int = 0, 
    width: Int, 
    height: Int, 
    uWidth: Int, 
    vHeight: Int
)

Properties

height

val height: Int

texture

open override val texture: SResourceLocation

Resource location of the sprite atlas or source image.

textureSize

@SerialName



(value = "texture_size")open override val textureSize: Size

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

u

open override val u: Int

Horizontal UV offset within the atlas.

uWidth

@SerialName



(value = "u_width")val uWidth: Int

v

open override val v: Int

Vertical UV offset within the atlas.

vHeight

@SerialName



(value = "v_height")val vHeight: Int

width

val width: Int