Paragraph

io.worxbend.tui.widgets.Paragraph
See theParagraph companion object
final case class Paragraph(text: Text, alignment: Alignment, wrap: Boolean, style: Style) extends Widget

Multi-line styled text with alignment and optional wrapping.

Wrapping breaks at grapheme-cluster boundaries (not word boundaries — good enough for v1 and never splits a wide character or emoji); without wrapping, long lines are clipped at the area edge.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Widget
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def render(area: Rect, buffer: Buffer): Unit

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product