CSimpleFontString::WrapText
function · ui · primitive
- Address
0x772b60· 87 bytes, up to0x772bb6- Meaning
- Splits the text into wrapped pieces for a width and a piece count
- Confidence
- verified, proof one
- Finding
- ui/tooltipcontent#sizing-the-tooltip
- Test
ui::textglue_scale_mul
Finding: Sizing the tooltip in ui: Tooltip lines, colours and sizing
The plate is as wide as its widest line plus twice 10.24 units and the padding, and as tall as the sum of its left lines' heights plus a gap of 2.0 units between shown lines and twice 10.24 units. A single line's width is its left text, its right text and, when both exist, a gap of 38.4 units; a wrapped line is limited to 230.4 units and the plate widens to the longest of its pieces. The minimum width is a floor. The right texts are then anchored at the widest line's width. All lengths are FrameXML units converted to layout units.
The derivation is in the doc.
Callers 2
Callees 2
- 0x44db50 unassigned
- CSimpleFontString::GetTextHeight ui
Calls and jumps by a bare address, from tables/calls.tsv.