benilla-re systems structs docs

RelativePointGetX

function · ui · primitive

Address
0x7a2f90 · 194 bytes, up to 0x7a3051
Meaning
Returns the x of a relative point: the relative frame's edge or centre plus the scaled offset
Confidence
verified, proof two
Finding
ui/anchors#relative-point-coordinates
Test
ui::anchor_resolve_x

Finding: Relative point coordinates in ui: anchors and layout

For the anchoring frame's scale s, a relative point's x is s·x plus the relative frame's left edge for points 0, 3 and 6, its centre (right + left)·0.5 for 1, 4 and 7 and its right edge for 2, 5 and 8; y is s·y plus the top for 0 to 2, the centre for 3 to 5 and the bottom for 6 to 8. A deferred relative frame first has its deferral ended for good and is laid out if pending; with no valid rectangle the result is +∞. When its slot 0x24 answers nonzero, its rectangle is first moved so that its left (for x) or bottom (for y) is 0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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