benilla-re systems structs docs

CSimpleFontString::AnchorToParent

function · ui · orchestration

Address
0x771480 · 110 bytes, up to 0x7714ed
Signature
void __thiscall (CSimpleFontString *this, void *node, void *status)
Meaning
Pins a parented font string with no anchor point to its parent by its horizontal justification
Confidence
verified, proof two
Finding
ui/regions#the-implicit-anchor

Finding: The implicit anchor in ui: regions in the layout

When a layer region is created from XML with a parent and no anchor point in any of its nine slots, a texture is pinned to its parent with SetAllPoints and a font string gets one point on its parent chosen by its horizontal justification: LEFT to LEFT, RIGHT to RIGHT, otherwise CENTER to CENTER, with zero offsets. The test is on the slots, so an <Anchor>, a template's anchors or setAllPoints suppress it alike. A texture so pinned ignores its authored size while both corners stand. The frame loader applies none; a frame without anchors stays rectless, and a setAllPoints pin there needs the attribute true and no Anchors child.

The derivation is in the doc.

Callers 3

Callees 1

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