benilla-re systems structs docs

CSimpleScrollFrame::MeasureScrollRange

function · ui · primitive

Address
0x786e30 · 322 bytes, up to 0x786f71
Meaning
Measures the scroll child's extent past the frame and runs OnScrollRangeChanged for a change
Confidence
verified, proof one
Finding
ui/scrollframe#the-scroll-range
Test
ui::glue_786e30_product, ui::glue_786e30_scale, ui::glue_786e30_settled

Finding: The scroll range in ui: ScrollFrame

The range is measured on the frame's update after something marks it: a new scroll child, a change of the frame's size, or UpdateScrollChildRect. A change inside the child does not mark it. The child's rectangle, shown or not, is joined with those of its shown regions and then, in turn, with each shown child frame's, which joins its own the same way: every descendant reached through shown frames counts, and nothing under a hidden one. Only resolved rectangles count, and the box's right and top start at 0. Each range is that box's width or height less the frame's, at least 0, divided by the frame's scale. When either range changed, OnScrollRangeChanged runs with both.

The derivation is in the doc.

Callers 1

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.