CSimpleTop
struct · ui · 4408 bytes
- Vtable
0x81c380- Meaning
- Holds the interface root: strata records, input lists, key takers, hover, pressed and moving frames
- Confidence
- verified, proof one
- Finding
- ui/strata#construction-and-teardown
Finding: Construction and teardown in ui: strata, levels and the per-frame passes
The top's constructor builds its CLayoutFrame, its frame list (link offset 0x304), the queue of
objects to delete (0x304), the strata records and 36 input lists, a 782-entry table of the frame
that took each key, the cursor position, and the pass and input registrations; it sets the
hover-pick flag, zeroes the nine dwords +0x1104 to +0x1124 and then writes the cursor into +0x1118 and
+0x111c, and zeroes the four host callbacks +0x1128 to +0x1134. Of this file's code only
0x764ce0, which nothing calls, links an object onto the deletion list. The destructor deletes
the queued objects and every frame, frees the records and nodes, removes the cursor and the input
registrations, closes the pass registration and clears 0xcf0bd8.
The derivation is in the doc.
Fields 19
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 116 | CLayoutFrame | m_layout | Holds the top's own layout frame | verified, proof two | ui/strata#construction-and-teardown |
0x0074 | 4 | void * | m_paintHandle | Holds the handle of the pass registration, closed by the destructor | verified, proof two | ui/strata#construction-and-teardown |
0x0078 | 4 | void * | m_cursor | Holds the cursor texture handle | verified, proof one | ui/strata#construction-and-teardown |
0x007c | 4 | CSimpleFrame * | m_mouseFocus | Holds the hovered frame | verified, proof one | ui/input#mouse-move-and-the-hover-pick |
0x0080 | 4 | CSimpleFrame * | m_pressedFrame | Holds the frame a button press went to until release | verified, proof one | ui/input#mouse-buttons |
0x0084 | 3128 | void *[782] | m_keyFocus | Holds the frame that took each key code | verified, proof one | ui/input#wheel-keys-and-characters |
0x0cbc | 12 | uint32_t[3] | m_frames | Holds the list of every frame, linked through +0x304 | verified, proof two | ui/strata#construction-and-teardown |
0x0cc8 | 12 | uint32_t[3] | m_deletions | Holds the list of objects the update deletes | verified, proof two | ui/strata#construction-and-teardown |
0x0cd4 | 36 | void *[9] | m_strata | Holds the record of each stratum 0 to 8 | verified, proof two | ui/strata#strata-records-and-level-nodes |
0x0cf8 | 4 | uint32_t | m_modifierDrag | Holds whether a modifier press may move or size any movable frame | verified, proof one | ui/input#moving-and-sizing |
0x0cfc | 4 | CSimpleFrame * | m_movingFrame | Holds the frame being moved or sized | verified, proof one | ui/input#moving-and-sizing |
0x0d00 | 4 | uint32_t | m_movingKind | Holds the move kind: 1 a modifier drag, 2 a title-region press, 3 a script's StartMoving or StartSizing | verified, proof one | ui/input#moving-and-sizing |
0x0d10 | 1008 | uint8_t[1008] | m_inputLists | Holds 36 input lists of 0x1c bytes, stratum plus 9 times kind | verified, proof one | ui/input#input-lists |
0x1100 | 4 | uint32_t | m_hoverPickPending | Holds 1 when the next update must pick the hovered frame again | verified, proof two | ui/strata#the-update-pass |
0x1104 | 36 | uint32_t[9] | m_lastMouseEvent | Holds the last mouse event, its position at +0x14 and +0x18 | verified, proof one | ui/input#mouse-move-and-the-hover-pick |
0x1128 | 4 | void * | m_mouseDownCallback | Holds the host function offered a press no frame holds | verified, proof one | ui/input#mouse-buttons |
0x112c | 4 | void * | m_mouseMoveCallback | Holds the host function offered each mouse move | verified, proof one | ui/input#mouse-move-and-the-hover-pick |
0x1130 | 4 | void * | m_sizeCallback | Holds the host function the size handler calls | verified, proof one | ui/strata#construction-and-teardown |
0x1134 | 4 | void * | m_focusLostCallback | Holds the host function the lost-capture handler calls | verified, proof one | ui/strata#construction-and-teardown |