StyledString class final
StyledString is a string that can be decomposed into a series of styled lines and cells.
Upstream: third_party/ultraviolet/styled.go (StyledString).
Constructors
- StyledString(String text, {bool wrap = false, String tail = ''})
Properties
Methods
-
bounds(
) → Rectangle - Returns the bounds required to render text using grapheme widths.
-
draw(
Screen screen, Rectangle area) → void -
Draws this styled string into
screeninsidearea, clearing first. -
height(
) → int - The number of lines in the original text.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the original text content.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited