CSimpleFrame
struct · ui · 788 bytes
- Vtable
0x81c498- Meaning
- Holds a frame: a CScriptRegion and its strata, flags, scripts, regions, layers and children
- Confidence
- verified, proof one
- Finding
- ui/frames#construction
Finding: Construction in ui: the frame object model
The constructor builds the CScriptRegion, zeroes the frame fields, sets shown to 1, the state to
1, the stratum to 3, alpha to 255 and both scales to 1.0, builds the lists and the five batches,
counts the frame in 0xcf0c1c, takes the top from 0xcf0bd8 and joins its frame list, sets the
parent passed to it, switches the first four layers on, and makes itself visible through slot
0x88.
The derivation is in the doc.
Fields 25
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 160 | CScriptRegion | m_region | Holds the frame's CScriptRegion | verified, proof one | ui/frames#vtables-and-the-two-parts |
0x00a0 | 4 | CSimpleTop * | m_top | Holds the top the frame joined at construction | verified, proof two | ui/frames#construction |
0x00a4 | 4 | CSimpleFrame * | m_highlightFrame | Holds a frame the enter handler shows and the leave handler hides | verified, proof one | ui/frames#frame-fields |
0x00a8 | 4 | CScriptRegion * | m_titleRegion | Holds the title region, whose area starts a move on a press | verified, proof one | ui/input#mouse-buttons |
0x00ac | 4 | uint32_t | m_state | Holds 1 after construction and 3 while being destroyed | verified, proof two | ui/frames#destruction |
0x00b0 | 4 | uint32_t | m_id | Holds the id the XML id attribute and SetID store | verified, proof one | ui/frames#loading-from-xml |
0x00b4 | 4 | uint32_t | m_frameFlags | Holds 1 toplevel, 0x10 overlapped, 0x100 movable, 0x200 resizable, 0x1000 moving, 0x2000 and 0x4000 | verified, proof one | ui/frames#frame-fields |
0x00b8 | 4 | float | m_scale | Holds the frame's own scale | verified, proof two | ui/visibility#scale |
0x00bc | 4 | float | m_parentScale | Holds the parent's effective scale | verified, proof two | ui/visibility#scale |
0x00c0 | 4 | uint32_t | m_strata | Holds the stratum, 3 at construction | verified, proof two | ui/strata#strata-and-their-names |
0x00c4 | 4 | uint32_t | m_level | Holds the level within the stratum | verified, proof two | ui/strata#strata-and-their-names |
0x00c8 | 1 | uint8_t | m_alpha | Holds the alpha, 255 at construction | verified, proof two | ui/visibility#alpha |
0x00cc | 4 | uint32_t | m_inputKinds | Holds a bit per enabled input kind: 0 characters, 1 keys, 2 mouse, 3 wheel | verified, proof one | ui/input#input-lists |
0x00d0 | 4 | uint32_t | m_shown | Holds whether the frame asks to be shown | verified, proof two | ui/visibility#showing-a-frame |
0x00d4 | 4 | uint32_t | m_visible | Holds whether the frame and every ancestor are shown | verified, proof two | ui/visibility#showing-a-frame |
0x00d8 | 16 | float[4] | m_hitRect | Holds the hit rectangle: bottom, left, top, right | verified, proof one | ui/input#hit-test |
0x00e8 | 16 | float[4] | m_hitInsets | Holds the hit insets: bottom, left, top, right | verified, proof one | ui/input#hit-test |
0x0114 | 4 | uint32_t | m_loading | Holds 1 while the frame loads from XML | verified, proof two | ui/visibility#show-and-hide-scripts |
0x0118 | 128 | uint32_t[32] | m_scripts | Holds the sixteen script slots OnLoad to OnKeyUp, 8 bytes each | verified, proof two | ui/frames#script-slots-by-name |
0x0198 | 20 | uint32_t[5] | m_layerEnabled | Holds whether each draw layer is switched on | verified, proof two | ui/frames#construction |
0x01ac | 4 | void * | m_backdrop | Holds the backdrop object, or null | verified, proof one | ui/frames#destruction |
0x01f8 | 4 | uint32_t | m_dirtyLayers | Holds a bit per own draw layer to rebuild | verified, proof two | ui/visibility#parent-change |
0x02f8 | 12 | uint32_t[3] | m_children | Holds the list of child frame nodes | verified, proof two | ui/visibility#parent-change |
0x0304 | 8 | uint32_t[2] | m_frameLink | Holds the frame's link in the top's frame list | verified, proof two | ui/frames#construction |
0x030c | 8 | uint32_t[2] | m_strataLink | Holds the frame's link in a level node's list | verified, proof two | ui/strata#joining-and-leaving-a-level |