CLayoutFrame::OnFrameResize
function · ui · primitive
- Address
0x768d20· 252 bytes, up to0x768e1b- Meaning
- Resolves the rectangle, stores it and calls slot 0 when it moved by 1e-5 or more
- Confidence
- verified, proof two
- Finding
- ui/anchors#resolving-and-the-changed-callback
- Test
ui::layout_recompute
Finding: Resolving and the changed callback in ui: anchors and layout
Resolving a frame calculates its rectangle. On failure it clears flag 1 (valid), sets flag 8
(failed) and answers 0. On success it clears flags 4 and 8; when the rectangle was valid and every
edge moved by less than 10⁻⁵ it answers 1 and stops. Otherwise it stores the new rectangle at
+0x40, sets flag 1, calls slot 0 with the old rectangle and answers flag 1, which slot 0 may
clear. CLayoutFrame's own slot 0 lays out every dependent.
The derivation is in the doc.
Callers 2
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.