benilla-re systems structs docs

CSimpleScrollFrame::OnSizeChanged

function · ui · orchestration

Address
0x7871f0 · 36 bytes, up to 0x787213
Meaning
Marks the scroll range after the frame's size change
Confidence
verified, proof one
Finding
ui/scrollframe#the-scroll-range

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 1

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