s_rectEpsilon
global · ui
- Address
0x80c5c8· 4 bytes, up to0x80c5cb- Type
const float- Meaning
- Holds 1e-5, the edge change below which a resolved rectangle counts as unchanged
- 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.