SpanStyle

@Immutable
class SpanStyle(val color: Color = Color.Unspecified, val background: Color = Color.Unspecified, val textStyle: TextStyle = TextStyle.Unspecified, val underlineStyle: UnderlineStyle = UnderlineStyle.Unspecified, val underlineColor: Color = Color.Unspecified, val link: String? = null)

Constructors

Link copied to clipboard
constructor(color: Color = Color.Unspecified, background: Color = Color.Unspecified, textStyle: TextStyle = TextStyle.Unspecified, underlineStyle: UnderlineStyle = UnderlineStyle.Unspecified, underlineColor: Color = Color.Unspecified, link: String? = null)

Properties

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

A URL the text links to, which terminals supporting OSC 8 hyperlinks let users open. Other terminals show the text as usual.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(color: Color = this.color, background: Color = this.background, textStyle: TextStyle = this.textStyle, underlineStyle: UnderlineStyle = this.underlineStyle, underlineColor: Color = this.underlineColor, link: String? = this.link): SpanStyle
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
@Stable
fun merge(other: SpanStyle? = null): SpanStyle

Returns a new span style that is a combination of this style and the given other style.

Link copied to clipboard
@Stable
operator fun plus(other: SpanStyle): SpanStyle

Plus operator overload that applies a merge.

Link copied to clipboard
open override fun toString(): String