ui_access

module pkg::alloy::ui::scrollingsource

Scrolling: a scroll moving its one child under a clip, and the virtualized list, which makes only the rows in view and around them, keeping its place on a row as it scrolls.

const BAR_REACHsource

exp const BAR_REACH: f32 = 12.0;

type Thumbsource

exp type Thumb = struct

The part of a bar the thumb covers.

Fields

exp start: f32
exp length: f32

fn thumbsource

exp fn thumb(offset: f32, content: f32, length: f32) -> Thumb

The thumb along a bar of the length, for the view offset into content.

fn offset_atsource

exp fn offset_at(along: f32, t: &Thumb, content: f32, length: f32) -> f32

The offset that puts the thumb's start at along on the bar.

fn paint_barsource

exp fn paint_bar(look: &Look, paint: &var Paint, offset: f32, content: f32, axis: Axis)

The bar, over the content, along the end edge (the right, or the left right to left) or the bottom, a horizontal one's thumb from the start.

fn paintsource

exp fn paint(self s: &Scroll, look: &Look, paint: &var Paint)

fn renewsource

exp fn renew(self s: &var Scroll, next: Scroll) -> Change

fn revealsource

exp fn reveal(self ui: &var Ui, index: u32)

Scrolls the scrolls holding the node so it shows, as when the keyboard focuses it.

fn scroll_offsetsource

exp fn scroll_offset(self ui: &Ui, index: u32) -> f32

A scroll's offset.

fn paintsource

exp fn paint(self l: &ListView, look: &Look, paint: &var Paint)

fn renewsource

exp fn renew(self l: &var ListView, next: ListView) -> Change