commonMain.tech.skot.core.view.SKSpan.kt Maven / Gradle / Ivy
package tech.skot.core.view
data class SKSpan(
val text:String,
val format:Format,
val startIcon: Icon? = null
) {
data class Icon(
val icon: tech.skot.core.view.Icon,
val scale: Float = 1f
)
data class Format(
val typeface: TypeFace? = null,
val color: Color? = null,
val scale: Float? = null,
val underline:Boolean = false,
val striked:Boolean = false,
val onTap: (()->Unit)? = null,
) {
fun span(text:String):SKSpan = SKSpan(text = text, format = this)
}
abstract class TypeFace
object Bold: TypeFace()
data class WithFont(val font:Font): TypeFace()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy