benilla-re systems structs docs

s_layoutQueueTail

global · ui

Address
0xcf0bf4 · 4 bytes, up to 0xcf0bf7
Type
void *
Meaning
Points to the layout queue terminator's previous link, the tail, where the drain starts; tagged by bit 0 when empty
Confidence
verified, proof two
Finding
ui/anchors#invalidation-and-the-layout-queue

Finding: Invalidation and the layout queue in ui: anchors and layout

Laying a frame out (0x7680e0) with the force flag resolves at once unless flag 8 is set; success removes it from the queue. Otherwise, if it is already pending (flag 4) and deferred (flag 2) or queued, the retry count +0x38 is reset to 6. Else it sets flag 4 and either, when deferred, lays out each dependent, or joins the queue: just before the first queued frame with a point relative to it, else at the head, with the retry count 6. A frame already queued is not moved.

The derivation is in the doc.