CSimpleScrollFrame::AnchorScrollChild
function · ui · orchestration
- Address
0x787100· 61 bytes, up to0x78713c- Meaning
- Anchors the scroll child's TOPLEFT to the frame's at the offsets
- Confidence
- verified, proof one
- Finding
- ui/scrollframe#offsets
Finding: Offsets in ui: ScrollFrame
Setting an offset stores it as given, with no clamp, when it differs from the current one by
2^−22 or more; it then anchors the child's TOPLEFT to the frame's TOPLEFT at the horizontal
offset across and the vertical offset up, and runs OnHorizontalScroll or OnVerticalScroll with
the offset in script units. A nearly equal offset does nothing, script included. The Lua setters
and getters convert between script units and the layout units the fields hold, v·K1 / (1024·A)
on the way in and its inverse on the way out (glue/script, Cursor and screen size).
The derivation is in the doc.
Callers 3
- CSimpleScrollFrame::SetScrollChild ui
- CSimpleScrollFrame::SetHorizontalScroll ui
- CSimpleScrollFrame::SetVerticalScroll ui
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.