CSimpleTexture::AnchorToParent
function · ui · primitive
- Address
0x7701c0· 54 bytes, up to0x7701f5- Signature
void __thiscall (CSimpleTexture *this, void *node, void *status)- Meaning
- Pins a parented texture with no anchor point to its parent with SetAllPoints
- 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 2
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.