PdfTextQuad class
Four page-space corners of a text span's highlight box, in perimeter order: lower-left, lower-right, upper-right, upper-left of the run's own baseline frame.
For horizontal text the quad is axis-aligned and matches bounds; for rotated text the corners follow the glyph baseline, so a highlight painted as a quad rotates with the text instead of ballooning out to an axis-aligned bounding box.
Constructors
-
PdfTextQuad(List<
(double, double)> corners, {bool isRightToLeft = false}) -
const
Properties
- bounds → PdfRect
-
The axis-aligned page-space bounding box of the four corners.
no setter
-
corners
→ List<
(double, double)> -
The four
(x, y)page-space points in perimeter order (ll, lr, ur, ul). Always length 4.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isRightToLeft → bool
-
Whether logical text advances from the quad's right edge toward its
left edge. Selection chrome uses this to anchor its logical endpoints.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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