benilla-re systems structs docs

CLayoutFrame::vftable

global · ui

Address
0x81c400 · 44 bytes, up to 0x81c42b
Type
void *[11]
Meaning
Holds the vtable of CLayoutFrame
Confidence
verified, proof two
Finding
ui/anchors#resolving-and-the-changed-callback

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.