BackgroundEntity

data class BackgroundEntity(val namespace: String? = null, val basename: String? = null, val left: String? = null, val center: String? = null, val right: String? = null, val padding: BackgroundPadding = BackgroundPadding())(source)

Measured three-slice text background: left cap, generated center widths, and right cap.

Constructors

Link copied to clipboard
constructor(namespace: String? = null, basename: String? = null, left: String? = null, center: String? = null, right: String? = null, padding: BackgroundPadding = BackgroundPadding())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val left: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun buildString(plainText: String, textWidth: Int, y: Int, anchor: GuiAnchor? = null, x: Int = 0, override: BackgroundPaddingOverride? = null): String

Builds a zero-advance background around the measured text width without moving the text.

Link copied to clipboard

Installs prepared center slices during configuration loading.

fun installCenter(namespace: String, basename: String, segments: Map<Int, String>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun validate(id: String)