ResidentTextRecord class

One text op, as the resident backend keeps it between rebuilds.

Allocated at rebuild, read on the frame (Ruling E1). The frame walks the list and reads fields; nothing here is built per frame.

a..f are the residual the painter pushed for this op -- chain ∘ textLocal (draft_painter.dart:960-966), glyph space (y up, origin on the baseline) to collection space. Stored flat rather than as a Transform2 so a frame never composes one per op (invariant 1).

boxMinX..boxMaxY is the label's glyph box in collection space: the four corners of TextLayout.layOutBox's box under the residual, re-bounded (a rotated label's axis-aligned bound), padded by kTextBoxPadDevicePixels at the band's floor (Ruling E9).

instanceIndex is the number of instances the collector had written when this op arrived. Instances at or past it were emitted after the label; that index is the whole basis of classifyTextPatches.

Constructors

ResidentTextRecord({required String text, required Handle style, required int argb, required double a, required double b, required double c, required double d, required double e, required double f, required double boxMinX, required double boxMinY, required double boxMaxX, required double boxMaxY, required int instanceIndex})
const

Properties

a → double
final
argb → int
final
b → double
final
boxMaxX → double
final
boxMaxY → double
final
boxMinX → double
final
boxMinY → double
final
c → double
final
d → double
final
e → double
final
f → double
final
hashCode → int
The hash code for this object.
no setterinherited
instanceIndex → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → Handle
final
text → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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