benilla-re systems structs docs

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

offsetsizetypenamemeaningconfidencefinding
0x0000116CLayoutFramem_layoutHolds the top's own layout frameverified, proof twoui/strata#construction-and-teardown
0x00744void *m_paintHandleHolds the handle of the pass registration, closed by the destructorverified, proof twoui/strata#construction-and-teardown
0x00784void *m_cursorHolds the cursor texture handleverified, proof oneui/strata#construction-and-teardown
0x007c4CSimpleFrame *m_mouseFocusHolds the hovered frameverified, proof oneui/input#mouse-move-and-the-hover-pick
0x00804CSimpleFrame *m_pressedFrameHolds the frame a button press went to until releaseverified, proof oneui/input#mouse-buttons
0x00843128void *[782]m_keyFocusHolds the frame that took each key codeverified, proof oneui/input#wheel-keys-and-characters
0x0cbc12uint32_t[3]m_framesHolds the list of every frame, linked through +0x304verified, proof twoui/strata#construction-and-teardown
0x0cc812uint32_t[3]m_deletionsHolds the list of objects the update deletesverified, proof twoui/strata#construction-and-teardown
0x0cd436void *[9]m_strataHolds the record of each stratum 0 to 8verified, proof twoui/strata#strata-records-and-level-nodes
0x0cf84uint32_tm_modifierDragHolds whether a modifier press may move or size any movable frameverified, proof oneui/input#moving-and-sizing
0x0cfc4CSimpleFrame *m_movingFrameHolds the frame being moved or sizedverified, proof oneui/input#moving-and-sizing
0x0d004uint32_tm_movingKindHolds the move kind: 1 a modifier drag, 2 a title-region press, 3 a script's StartMoving or StartSizingverified, proof oneui/input#moving-and-sizing
0x0d101008uint8_t[1008]m_inputListsHolds 36 input lists of 0x1c bytes, stratum plus 9 times kindverified, proof oneui/input#input-lists
0x11004uint32_tm_hoverPickPendingHolds 1 when the next update must pick the hovered frame againverified, proof twoui/strata#the-update-pass
0x110436uint32_t[9]m_lastMouseEventHolds the last mouse event, its position at +0x14 and +0x18verified, proof oneui/input#mouse-move-and-the-hover-pick
0x11284void *m_mouseDownCallbackHolds the host function offered a press no frame holdsverified, proof oneui/input#mouse-buttons
0x112c4void *m_mouseMoveCallbackHolds the host function offered each mouse moveverified, proof oneui/input#mouse-move-and-the-hover-pick
0x11304void *m_sizeCallbackHolds the host function the size handler callsverified, proof oneui/strata#construction-and-teardown
0x11344void *m_focusLostCallbackHolds the host function the lost-capture handler callsverified, proof oneui/strata#construction-and-teardown