benilla-re systems structs docs

CSimpleScrollFrame::OnFrameUpdate

function · ui · orchestration

Address
0x787140 · 118 bytes, up to 0x7871b5
Meaning
Measures the scroll range on an update when it is marked
Confidence
verified, proof one
Finding
ui/scrollframe#the-scroll-range
Test
ui::glue_787140_rect_delta

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 0

None by a direct call or jump.

Callees 3

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