Expand description
CompositeTooltipWidget — third-tier tooltip that hosts an arbitrary
widget tree as its body.
Where TooltipWidget is a single line of text and RichTooltipWidget
renders a structured TooltipContent (body + shortcut chip + “more”
disclosure with inline markup), CompositeTooltipWidget accepts any
impl Widget + 'static and paints it inside the same chrome with a
larger surface budget — the Crusader Kings 3 style: tabbed sections,
charts, progress bars, conditional rows, dynamic numeric values.
“Primary-only” by construction: the widget has no inline-markup body
and no registry key, so it cannot be the target of a [label](:key)
cascade from a rich tooltip. Child widgets inside the body keep
their own .tooltip(...) / .rich_tooltip(...) setters and cascade
normally as ordinary widget composition.
Reuses the RichTooltipWidget dwell-to-sticky machinery: at 2 s
dwell the role flips Tooltip → Dialog, dismiss swaps to
EscapeOrClickOutside, and the surface becomes Tab-reachable so
rare-but-allowed interactive descendants (a “Pin” button, an
internal TabWidget’s tab strip) work cleanly.
Structs§
- Composite
Tooltip Widget - Composite tooltip surface — hosts an arbitrary widget body with the same dwell-to-sticky promotion as the rich tooltip.