TextBuilder

papyrus.DSL.builders.TextBuilder
See theTextBuilder companion class
object TextBuilder

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(value: String, color: ColorString, fontWeight: FontWeight, fontStyle: FontStyle, textDecoration: TextDecoration): TextBuilder

Creates a TextBuilder

Creates a TextBuilder

Attributes

Extensions

Extensions

extension (tb: TextBuilder)

Sets the text color (e.g. "#fff", "rgb(...)", or "red", "blue", ...)

Sets the text color (e.g. "#fff", "rgb(...)", or "red", "blue", ...)

Attributes

Sets the font style ("normal" or "italic")

Sets the font style ("normal" or "italic")

Attributes

Sets the font weight ("normal" or "bold")

Sets the font weight ("normal" or "bold")

Attributes

def newLine(v: String): TextBuilder

Appends a newline to another text

Appends a newline to another text

Attributes

Sets the text decoration ("none", "underline" or "overline")

Sets the text decoration ("none", "underline" or "overline")

Attributes

def value(v: String): TextBuilder

Sets the text content

Sets the text content

Attributes