pub fn indicator_geometry(
content: f32,
viewport: f32,
scrolled: f32,
) -> Option<IndicatorGeometry>Expand description
Works out the thumb for a list, or None when everything fits on screen and
Wear shows nothing at all.
content and viewport are lengths in any one unit; scrolled is how far
the content has travelled, in the same unit.
This is the generic, flat-list model: the thumb is the share of the content
on screen and it moves with the pixels. A ScalingLazyColumn does not
work this way — see scaling_list_geometry, which is the rule Wear’s own
indicator uses for one. Reach for this one when a caller genuinely scrolls
pixels, and for that one when it is a Wear list.