PickPushRegion
function · ui · primitive
- Address
0x509d80· 73 bytes, up to0x509dc8- 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.
| region | edges crossed | order of pushes |
|---|---|---|
| 0 | none | up, right, down, left |
| 1 | near the bottom | left, up, right, up |
| 2 | near the top | left, down, right, down |
| 3 | beyond the right | up, left, down, left |
| 4 | beyond the left | up, right, down, right |
| 5 | right and bottom | up, left, up, left |
| 6 | left and bottom | up, right, up, right |
| 7 | right and top | down, left, down, left |
| 8 | left and top | down, 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.