Region::GetWidth
function · ui · primitive
- Address
0x7a1e00· 286 bytes, up to0x7a1f1d- Signature
int __fastcall (lua_State *L)- Meaning
- Answers the size slot 0x1c gives, or for a size of 0 the rectangle span, in script units
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- ui/methods#coordinates-the-methods-convert
- Test
ui::luabind_7a1_get_width_height,ui::region_size_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 11
- GetScaledScreenAspect screencoord
- DivideByScreenScaleX screencoord
- lua_settop lua
- lua_type lua
- lua_touserdata lua
- lua_pushnumber lua
- lua_rawgeti lua
- luaL_error lua
- CLayoutFrame::Resize ui
- CLayoutFrame::IsResizePending ui
- CLayoutFrame::GetRect ui
Calls and jumps by a bare address, from tables/calls.tsv.