CSimpleFontString::OnFrameSizeChanged
function · ui · primitive
- Address
0x772d40· 191 bytes, up to0x772dfe- Signature
void __thiscall (CSimpleFontString *this, float *rect)- Meaning
- Rebuilds the text when the rectangle's size changed, else moves it and notifies the layer on an off-screen change
- Confidence
- verified, proof one
- Finding
- ui/fonttext#font-string-rectangle-callback
- Test
ui::textglue_rect_axis2_settled,ui::textglue_rect_axis_settled,ui::textglue_rect_pos_transform,ui::textglue_settled_poseps
Finding: Font string rectangle callback in ui: font string internals
The font string's rectangle-changed callback, slot 0 of its layout vtable (0x772d40), runs the base callback 0x768cf0 and then
rebuilds the text (0x7724a0) when there is no built string or the new rectangle's width or height differs from the stored one by
1e-5 or more. Otherwise it moves the built string to (+0x110 · scale + left, +0x114 · scale + bottom) of the stored rectangle,
and notifies the layer (0x77fdf0) when the old and the new rectangle differ in RectWhollyOffScreen.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- 0x44d600 unassigned
- CLayoutFrame::OnFrameSizeChanged ui
- CSimpleFontString::RebuildString ui
- RectWhollyOffScreen ui
- CScriptRegion::NotifyLayerChanged ui
Calls and jumps by a bare address, from tables/calls.tsv.