CSimpleFrame::OnFrameSizeChanged
function · ui · primitive
- Address
0x76b580· 212 bytes, up to0x76b653- Meaning
- Lays out dependents, computes the hit rectangle and runs the size callback on a size change
- Confidence
- verified, proof one
- Finding
- ui/input#hit-test
- Test
ui::apply_rect_screen
Finding: Hit test in ui: input, hit testing and focus
A frame contains a point when its rectangle is valid and left ≤ x ≤ right and bottom ≤ y ≤ top hold for its hit rectangle, the layout rectangle moved inward by the hit insets times the
layout scale; a NaN coordinate fails. A frame that draws itself (bit 0x2000) is tested against the
intersection of its own hit rectangle with that of its nearest ancestor that does not draw itself,
and contains nothing without such an ancestor.
The derivation is in the doc.
Callers 5
- CGWorldFrame::OnFrameSizeChanged ui
- CSimpleMessageFrame::OnFrameSizeChanged ui
- CSimpleMessageScrollFrame::OnFrameSizeChanged ui
- 0x789c70 ui
- HtmlLayoutRectChanged ui
Callees 3
- CSimpleTop::NotifyFrameMoved ui
- CLayoutFrame::OnFrameSizeChanged ui
- CSimpleBackdrop::ApplyTexCoords ui
Calls and jumps by a bare address, from tables/calls.tsv.