Module scroll

Source
Expand description

Pure scroll state, metrics, and wheel normalization.

§Examples

use ailloli_ui_core::scroll::{ScrollAxes, ScrollState};
assert_eq!(ScrollState::new().offset, ailloli_ui_core::Offset::default());
assert!(ScrollAxes::BOTH.vertical);

Pure logical scroll metrics, clamping, reveal, and wheel normalization.

Structs§

ScrollAxes
Scrollable axes for a viewport.
ScrollBehavior
Wheel normalization and per-widget scroll tuning.
ScrollMetrics
Viewport/content sizes used to clamp a scroll state.
ScrollOutcome
Result of applying scroll logic.
ScrollState
Persistent logical scroll offset. Positive values move the viewport into content.
ScrollbarDrag
Pointer-relative state retained while dragging one scrollbar thumb.
ScrollbarGeometry
Resolved proportional scrollbar geometry in one coordinate space.
ScrollbarGeometrySpec
Inputs used to resolve one proportional scrollbar.

Enums§

ScrollbarAxis
Main axis of one scrollbar.
ScrollbarPart
Interactive part under a pointer within one scrollbar hit region.