Expand description
Adapter utilities for the virtualizer crate.
The virtualizer crate is UI-agnostic and focuses on the core math and state. This crate
provides small, framework-neutral helpers commonly needed by adapters:
- Scroll anchoring (e.g. prepend in chat/timelines without visual jumps)
- Tween-based smooth scrolling helpers (optional; adapter-driven)
This crate is intentionally framework-agnostic (no ratatui/egui bindings).
Structs§
- Controller
- A framework-neutral controller that wraps a
virtualizer::Virtualizerand provides common adapter workflows (anchoring, tween-driven scrolling). - Scroll
Anchor - A scroll anchor that can be used to preserve visual position across data changes.
- Tween
- A small tween helper for adapter-driven smooth scrolling.
Enums§
- Easing
- Built-in easing curves.
Traits§
Functions§
- apply_
anchor - Applies a previously captured anchor by adjusting the scroll offset.
- capture_
first_ visible_ anchor - Captures an anchor for the first visible item (by key).