benilla-re systems structs docs

FindOverlapDepth

function · ui · primitive

Address
0x509220 · 197 bytes, up to 0x5092e4
Signature
bool __fastcall (int list, RECT *rect, int direction, float *depth)
Meaning
Finds the first claimed rectangle that strictly overlaps and stores the depth to push in a direction
Confidence
verified, proof one
Finding
ui/smartrect#pushes-and-the-overlap-test

Finding: Pushes and the overlap test in ui: the screen rectangle placement

A push moves a rectangle in one direction by the depth of the first claimed rectangle it overlaps, so it lands edge to edge with it, and does nothing when it overlaps none. Overlap is strict: touching rectangles do not overlap, and no gap is added.

The derivation is in the doc.

Callers 4

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.