benilla-re systems structs docs

PickPushRegion

function · ui · primitive

Address
0x509d80 · 73 bytes, up to 0x509dc8
Signature
int __fastcall (int flags)
Meaning
Maps the four edge flags to the region 0 to 8 that picks the order of pushes
Confidence
verified, proof one
Finding
ui/smartrect#pushes-by-region

Finding: Pushes by region in ui: the screen rectangle placement

The screen is divided into nine regions by which edges the rectangle crosses, and the region fixes the order of the four pushes: up, right, down, left for a rectangle inside the screen, and for one beyond an edge the pushes that do not go further out.

regionedges crossedorder of pushes
0noneup, right, down, left
1near the bottomleft, up, right, up
2near the topleft, down, right, down
3beyond the rightup, left, down, left
4beyond the leftup, right, down, right
5right and bottomup, left, up, left
6left and bottomup, right, up, right
7right and topdown, left, down, left
8left and topdown, right, down, right

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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