benilla-re systems structs docs

Region::GetLeft

function · ui · primitive

Address
0x7a1980 · 282 bytes, up to 0x7a1a99
Signature
int __fastcall (lua_State *L)
Meaning
Answers the left edge over the layout scale in script units, or nil for an invalid rectangle
Confidence
verified, proof two
Name from
the community database (idb)
Finding
ui/methods#coordinates-the-methods-convert
Test
ui::luabind_7a1_getters, ui::region_edge_getters_whole

Finding: Coordinates the methods convert in ui: the Frame and Region methods

GetWidth answers G(w) = RN24(1024·A·w) / K1 (screencoord#script-units-and-layout-units), w the answer of the layout part's slot 0x1c rounded to a float: a frame's is +0x50 (0x768420); textures and font strings override it (next entry). A w equal to 0 becomes RN24(right − left) when the rectangle is valid, after a pending region is laid out. GetLeft lays out a pending region and answers E(left) = RN24(1024·A·(left/s)) / K1, s the region's layout scale +0x7c, or nil for an invalid rectangle. Each quotient is at 53 bits and pushed as a double. The span GetWidth reads is not divided by s: a frame sized only by its anchors answers its width times its effective scale.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 12

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