SimpleModelGeometryGetWidth
function · ui · primitive
- Address
0x76d080· 78 bytes, up to0x76d0cd- Signature
float __thiscall (void *this)- Meaning
- Returns the authored width, or the model's bounding box width when the authored width is 0.0
- Confidence
- verified, proof one
- Finding
- ui/modelview#implicit-size
- Test
ui::glue_76d080_field_diff
Finding: Implicit size in ui: Model frames, camera and paint
A Model frame with a width or height of exactly 0.0 takes that size from its model's bounding box:
max − min of the box in model units, handed to the layout as layout units with no conversion. With
no model or a model whose data is not resident the size stays 0.0, and the size getter never forces a
load. A negative or nonzero authored size is returned as is. The geometry then fills G48 · (5/3) · modelScale of the rectangle it implies, anchored at the bottom-left: 0.99999991655 of it at 4:3 with a model scale of 1.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- CM2Model::IsLoaded models
- CLayoutFrame::GetWidth ui
Calls and jumps by a bare address, from tables/calls.tsv.