benilla-re systems structs docs

GetRectEdgeFlags

function · ui · primitive

Address
0x509bf0 · 388 bytes, up to 0x509d73
Meaning
Builds the flag word of the screen edges a rectangle crosses
Confidence
verified, proof one
Finding
ui/smartrect#pushes-by-region
Test
ui::geo_509bf0

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 2

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