Crate virtualizer_adapter

Crate virtualizer_adapter 

Source
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::Virtualizer and provides common adapter workflows (anchoring, tween-driven scrolling).
ScrollAnchor
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§

VirtualizerKey

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).