GlyphInfo class final
The measurements of a character (or a sequence of visually connected characters) within a paragraph.
See also:
- Paragraph.getGlyphInfoAt, which finds the GlyphInfo associated with a code unit in the text.
- Paragraph.getClosestGlyphInfoForOffset, which finds the GlyphInfo of the glyph(s) onscreen that's closest to the given Offset.
Constructors
- GlyphInfo(Rect graphemeClusterLayoutBounds, TextRange graphemeClusterCodeUnitRange, TextDirection writingDirection)
- Creates a GlyphInfo with the specified values.
Properties
- graphemeClusterCodeUnitRange → TextRange
-
The UTF-16 range of the associated character in the text.
final
- graphemeClusterLayoutBounds → Rect
-
The layout bounding rect of the associated character, in the paragraph's
coordinates.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- writingDirection → TextDirection
-
The writing direction within the GlyphInfo.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override