GlyphLine class abstract
Constructors
Properties
- baseline → double
-
no setter
- bottom → double
-
no setter
- endIndex → int
-
no setter
- endRun → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startIndex → int
-
no setter
- startRun → int
-
no setter
- startX → double
-
no setter
- top → double
-
no setter
Methods
-
alignedStartX(
Paragraph paragraph, TextAlign alignment, Iterable< LineRunGlyph> glyphs) → double -
Where this line starts when drawn with
glyphs, given thealignmentit was broken with. Matches startX unlessglyphs(like those from glyphsWithEllipsis) change the line's width. The line breaker aligned the full line, which overflows the box when it doesn't wrap, so shift by however much the width changed to keep right and center aligned lines inside the box. -
glyphs(
Paragraph paragraph) → Iterable< LineRunGlyph> - Returns an iterator that traverses the glyphs in a line in visual order taking into account both the paragraph's runs bidi order and the individual glyphs bidi order within a run.
-
glyphsWithEllipsis(
double width, {required Paragraph paragraph, required List< TextShapeResult> cleanupShapes, String ellipsis = '...', bool isLastLine = false}) → Iterable<LineRunGlyph> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
width(
Paragraph paragraph) → double
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited