TextEntityLayout class

One TextEntity's string laid out in entity-local coordinates, spanning size with the glyphs inset by padding on the left.

Constructors

TextEntityLayout(TextEntity entity, Size reference)
Lays out entity against the source image reference.
factory

Properties

fontSize → double
TextEntity.displayFontSize against the source image.
final
frameColor → Color?
Colour of the frame behind the lines; absent when the style has none.
final
hashCode → int
The hash code for this object.
no setterinherited
lines → List<TextEntityLine>
The non-empty lines, top to bottom.
final
padding → double
Horizontal inset of the glyphs from each edge.
final
pillPath → Path
The frame: the lines' pills joined into one outline.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
The glyphs' extent widened by padding on both sides.
no setter
strokeWidth → double
Width of the outline a stroke style draws.
final

Methods

dispose() → void
Releases the text painters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas) → void
Paints the frame, the outline and the glyphs at the origin.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited