tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Sutichaykuna

⎇ main widgets/tooltip/README.md Markdown · 21 siq'ikuna · 849 B Ñawpa willay ch'uya

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1# llimphi-widget-tooltip
2
3Floating tooltip with anchor and clamping.
4
5Pure render: the widget receives the anchor (typically the bottom-centre of the
6element that triggers it), the viewport and the text, and returns an absolutely
7positioned `View<Msg>` to hang from `view_overlay`. The app is responsible for:
8
91. Detecting hover over the element through `View::on_pointer_enter` plus a
10   `Tween`/delay, so tooltips don't flicker as the pointer passes.
112. Storing the `Option<TooltipSpec>` in its model.
123. Returning it from `view_overlay`.
134. Closing it with `View::on_pointer_leave` over the same element.
14
15No scrim is included — a tooltip is informative, not modal: clicks pass through
16to the main tree. (For interactive popovers use `llimphi-widget-modal` or the
17`context-menu`.)
18
19---
20
21Part of **llimphi** — see [llimphi](../../README.md).

README.md

llimphi-widget-tooltip

Floating tooltip with anchor and clamping.

Pure render: the widget receives the anchor (typically the bottom-centre of the element that triggers it), the viewport and the text, and returns an absolutely positioned View<Msg> to hang from view_overlay. The app is responsible for:

  1. Detecting hover over the element through View::on_pointer_enter plus a Tween/delay, so tooltips don't flicker as the pointer passes.
  2. Storing the Option<TooltipSpec> in its model.
  3. Returning it from view_overlay.
  4. Closing it with View::on_pointer_leave over the same element.

No scrim is included — a tooltip is informative, not modal: clicks pass through to the main tree. (For interactive popovers use llimphi-widget-modal or the context-menu.)


Part of llimphi — see llimphi.