engine/overlay/tooltip_tail library

Classes

TooltipTail
The tail (arrow toward the target) rendered behind the default tooltip.
TooltipTailPainter
Paints the tail as part of the tooltip surface.

Enums

TailSide
Which edge of the tooltip the tail points from, toward the target.

Functions

tailPath({required TailSide side, required Size tooltipSize, required Rect hole, required Rect tooltip, double length = _kTailLength, double width = _kTailWidth}) Path
Triangle of the tail in tooltip-local coordinates.
tailSideFor(Rect tooltip, Rect hole) TailSide?
The tooltip's edge facing the hole, derived purely from geometry.