benilla-re systems structs docs

HtmlLayoutRectChanged

function · ui · primitive

Address
0x78a320 · 89 bytes, up to 0x78a378
Signature
void __thiscall (CLayoutFrame *this, float *oldRect)
Meaning
Runs the frame's rectangle callback and asks for a link rebuild when the width or height changed
Confidence
verified, proof one
Finding
ui/simplehtml#rebuilding-the-link-buttons
Test
ui::glue_788_78a320_rect_changed

Finding: Rebuilding the link buttons in ui: SimpleHTML

The frame's update rebuilds its hyperlink buttons when +0x370 is set and then clears it, whether or not the rebuild ran. SetText sets it; so does a change of the frame's width or height by 10⁻⁵ or more, and a push from an element font whose changed bits include the font or the spacing group (0x11). A rebuild does nothing while the frame's rectangle is not valid, so that request is lost. Otherwise it releases every live button and, for each text block whose text contains |H, asks the block's string for its hyperlink spans and configures one button from the pool per span over that font string. A colour, justify or shadow change, and a move, rebuild nothing.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.