benilla-re systems structs docs

Region::SetWidth

function · ui · primitive

Address
0x7a1f20 · 264 bytes, up to 0x7a2027
Signature
int __fastcall (lua_State *L)
Meaning
Converts a script number to layout units and sets the width through layout slot 0x14
Confidence
verified, proof two
Name from
the community database (idb)
Finding
ui/methods#script-numbers-the-setters-store
Test
ui::luabind_7a1_setters, ui::region_size_setters_whole

Finding: Script numbers the setters store in ui: the Frame and Region methods

SetWidth(v) passes S(v) = RN24(K1 · RN24(RN24(v) / (1024·A))) to the layout part's slot 0x14, with no layout scale; the layout part multiplies by the layout scale only when it resolves. A non-number raises Usage: %s:SetWidth(width).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

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