benilla-re systems structs docs

CSimpleFontString::GetCachedWidth

function · ui · primitive

Address
0x772890 · 149 bytes, up to 0x772924
Meaning
Returns the unwrapped text width in layout units, measuring and caching it when none is cached
Confidence
verified, proof one
Finding
ui/tooltipcontent#sizing-the-tooltip

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 4

Callees 6

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