benilla-re systems structs docs

CSimpleFrame::OnSizeChanged

function · ui · orchestration

Address
0x76b660 · 54 bytes, up to 0x76b695
Signature
void __thiscall (CSimpleFrame *this, float width, float height)
Meaning
Runs the OnSizeChanged script with the width and height as arg1 and arg2 when it is set
Confidence
verified, proof two
Finding
ui/frames#the-onsizechanged-script

Finding: The OnSizeChanged script in ui: the frame object model

When a frame's resolved rectangle changes size, its OnSizeChanged script runs with arg1 the new width and arg2 the new height: right − left and top − bottom of the layout rectangle, each rounded to a float, in layout units, with no division by the frame's scale. A change of less than 2^−22 in both runs nothing; a NaN width or height runs it. The slot +0x120 is the second of the sixteen; without a handler nothing runs. An edit box lays its label out after the script, and a scroll frame then marks its scroll range for an update.

The derivation is in the doc.

Callers 2

Callees 1

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