Region::GetRight
function · ui · primitive
- Address
0x7a1aa0· 282 bytes, up to0x7a1bb9- Signature
int __fastcall (lua_State *L)- Meaning
- Answers the right edge over the layout scale in script units, or nil for an invalid rectangle
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/methods#the-other-getters
- Test
ui::luabind_7a1_getters,ui::region_edge_getters_whole
Finding: The other getters in ui: the Frame and Region methods
The other size and position getters take the same steps:
| method | answers |
|---|---|
GetHeight | as GetWidth, with slot 0x20 (+0x54) and top − bottom |
GetWidth, GetHeight of a texture | slot 0x1c or 0x20 is 0x770720 or 0x770790: +0x50 or +0x54, or when that is 0 and an image is set, the image's width or height in texels as S stores it, at 53 bits; a texture without an image, or with a zero-sized one, falls back to the span |
GetWidth, GetHeight of a font string | slot 0x1c or 0x20 is 0x772930 or 0x772a60: +0x50 or +0x54, or when that is 0 the text's width or height, raised to S(1) when not above it; never 0, so never the span |
GetRight, GetTop, GetBottom | as GetLeft, with the right, top or bottom edge |
GetCenter | E((right − left)·0.5 + left), then E((top − bottom)·0.5 + bottom), the midpoints at 53 bits; two nils for an invalid rectangle |
GetPoint | G of the point's x and y offsets |
GetHitRectInsets | G of the four insets, in the order SetHitRectInsets takes them |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 12
- GetScaledScreenAspect screencoord
- DivideByScreenScaleX screencoord
- lua_settop lua
- lua_type lua
- lua_touserdata lua
- lua_pushnil 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.