CSimpleFontString::SetWidth
function · ui · orchestration
- Address
0x772830· 34 bytes, up to0x772851- Signature
void __thiscall (CSimpleFontString *this, float width)- Meaning
- Sets the layout width and zeroes the layout part's measures
- Confidence
- verified, proof one
- Finding
- ui/fonttext#layout-slots-of-a-font-string
Finding: Layout slots of a font string in ui: font string internals
The font string's layout vtable replaces slots 4 to 6. 0x772ca0(scale, force) is slot 4: it sets the layout scale with
CLayoutFrame::SetLayoutScale and returns 0 when that refuses it; otherwise, with a font built, it copies the font path to a
1,024-byte stack buffer and calls 0x7714f0 with the same path, flags and the stored height, and returns 1. 0x772830(w) and
0x772860(h) are slots 5 and 6: they set the width or height and zero the measures +0xd8 and +0xdc of the layout part.
Main slot 9, 0x772d20, zeroes the text measures +0xfc, +0x100 and calls Resize(0).
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.