CharacterTileStringBuilder

data class CharacterTileStringBuilder(text: String, textWrap: TextWrap, size: Size, modifiers: MutableSet<Modifier>, foregroundColor: TileColor, backgroundColor: TileColor) : Builder<CharacterTileString>

Creates CharacterTileStrings. Defaults:

  • text is mandatory

Constructors

CharacterTileStringBuilder
Link copied to clipboard
common
fun CharacterTileStringBuilder(text: String = NO_VALUE, textWrap: TextWrap = WRAP, size: Size = Size.unknown(), modifiers: MutableSet<Modifier> = mutableSetOf(), foregroundColor: TileColor = TileColor.defaultForegroundColor(), backgroundColor: TileColor = TileColor.defaultBackgroundColor())

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
open override fun build(): CharacterTileString
Builds an object of type T.
copy
Link copied to clipboard
common
fun copy(text: String = NO_VALUE, textWrap: TextWrap = WRAP, size: Size = Size.unknown(), modifiers: MutableSet<Modifier> = mutableSetOf(), foregroundColor: TileColor = TileColor.defaultForegroundColor(), backgroundColor: TileColor = TileColor.defaultBackgroundColor()): CharacterTileStringBuilder
createCopy
Link copied to clipboard
common
open override fun createCopy(): CharacterTileStringBuilder
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String
withBackgroundColor
Link copied to clipboard
common
fun withBackgroundColor(backgroundColor: TileColor): CharacterTileStringBuilder
withForegroundColor
Link copied to clipboard
common
fun withForegroundColor(foregroundColor: TileColor): CharacterTileStringBuilder
withModifiers
Link copied to clipboard
common
fun withModifiers(vararg modifier: Modifier): CharacterTileStringBuilder
withSize
Link copied to clipboard
common
fun withSize(size: Size): CharacterTileStringBuilder
fun withSize(width: Int, height: Int): CharacterTileStringBuilder
withStyleSet
Link copied to clipboard
common
fun withStyleSet(styleSet: StyleSet): CharacterTileStringBuilder
withText
Link copied to clipboard
common
fun withText(text: String): CharacterTileStringBuilder
withTextWrap
Link copied to clipboard
common
fun withTextWrap(textWrap: TextWrap): CharacterTileStringBuilder

Sources

(source)
Link copied to clipboard