CLayoutFrame::CalculateRect
function · ui · primitive
- Address
0x767a20· 303 bytes, up to0x767b4e- Meaning
- Resolves left, bottom, right and top and moves the rectangle onto the screen when clamped
- Confidence
- verified, proof two
- Finding
- ui/anchors#rectangle-calculation-and-screen-clamp
- Test
ui::layout_assemble_rect,ui::layout_composed_resolve
Finding: Rectangle calculation and screen clamp in ui: anchors and layout
The rectangle {bottom, left, top, right} is resolved in the order left, bottom, right, top; the
first +∞ fails the whole calculation. With flag 0x10 (clamped to screen) the rectangle is moved,
not resized: a left below 0 shifts both x edges right, a bottom below 0 shifts both y edges up,
then a right above the screen width (0x41ae60(1.0)) shifts both x edges left and a top above the
screen height (0x41ae70(1.0)) shifts both y edges down.
The derivation is in the doc.
Callers 1
Callees 6
- MultiplyByScreenScaleX screencoord
- MultiplyByScreenScaleY screencoord
- CLayoutFrame::GetLeft ui
- CLayoutFrame::GetTop ui
- CLayoutFrame::GetRight ui
- CLayoutFrame::GetBottom ui
Calls and jumps by a bare address, from tables/calls.tsv.