RitoHitEntry class final

Constructors

RitoHitEntry({required int pageIndex, required RitoRect bounds, required RitoHitKind kind, required String text, String? href, RitoSourcePoint? sourcePoint, RitoLocator? targetLocator, String? destinationLabel, String? imageSrc, String? imageAlt, String? footnoteKey})
const

Properties

bounds → RitoRect
Display-list space: the same coordinates RitoArtifact.displayList paints in, spread page offset and page margins included. Hit-test taps on the painted surface directly against this — no host-side margin correction.
final
destinationLabel → String?
The TOC label of the place a link leads to, when the TOC names it.
final
footnoteKey → String?
Canonical footnote key when this hit is a semantic noteref — the engine's own href#fragment form. Pass it to RitoReaderSession.readFootnote verbatim; a host must not normalize the link href itself. Null means an ordinary link.
final
footnotePending → bool
True while this key's definition has not been indexed yet. The key is already valid; reading it fails until background indexing reaches the definition, so a host can show the popup with a loading state and retry.
no setter
hashCode → int
The hash code for this object.
no setterinherited
href → String?
The href as the publication wrote it.
final
imageAlt → String?
final
imageSrc → String?
final
kind → RitoHitKind
What this hit is. The engine is the only classifier: a host reads this and never infers a class from href or imageSrc.
final
pageIndex → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourcePoint → RitoSourcePoint?
final
targetLocator → RitoLocator?
Where an internal link leads, canonical: its chapter and anchor. Null for an external href and for a hit that has none.
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