papyrus.DSL.builders.TextBuilder
See theTextBuilder companion class
object TextBuilder
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TextBuilder.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
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
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
Sets the text content
Sets the text content
Attributes
In this article