CLayoutFrame
struct · ui · 116 bytes
- Vtable
0x81c400- Meaning
- Holds a laid-out object's anchor points, dependents, flags, rectangle, size, scale and queue link
- Confidence
- verified, proof one
- Finding
- ui/anchors#construction-and-the-xml-anchors
Finding: Construction and the XML anchors in ui: anchors and layout
The constructor zeroes the points, rectangle, size, bounds and links, empties the dependents list
and sets the scale to 1.0. The XML loader reads <Size>, setAllPoints, and each <Anchor> of
<Anchors>: point, relativePoint (defaulting to point), relativeTo (defaulting to the
parent), and <Offset>. An unknown point, a missing relative frame or a frame anchored to itself
is reported and skipped. The points are set without layout; the loader lays the frame out once at
the end.
The derivation is in the doc.
Fields 12
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void ** | __vfptr | Holds the vtable 0x81c400 or a derived class's layout vtable | verified, proof two | ui/anchors#construction-and-the-xml-anchors |
0x0004 | 36 | void *[9] | m_points | Holds the anchor point of each index 0 to 8, or null | verified, proof two | ui/anchors#point-slots-and-point-names |
0x0028 | 4 | uint32_t | m_resolving | Holds a bit per edge resolver while it runs: 1 left, 2 top, 4 right, 8 bottom, 0x10 and 0x20 centres | verified, proof two | ui/anchors#edge-resolution-from-points |
0x002c | 12 | uint32_t[3] | m_dependents | Holds the list of frames anchored to this one: link offset and terminator | verified, proof one | ui/anchors#dependents |
0x0038 | 1 | uint8_t | m_retries | Holds the passes a queued frame may still fail, 6 when queued | verified, proof two | ui/anchors#invalidation-and-the-layout-queue |
0x003c | 4 | uint32_t | m_flags | Holds 1 valid, 2 deferred, 4 pending, 8 failed and 0x10 clamped to screen | verified, proof two | ui/anchors#resolving-and-the-changed-callback |
0x0040 | 16 | float[4] | m_rect | Holds the resolved bottom, left, top and right | verified, proof two | ui/anchors#rectangle-calculation-and-screen-clamp |
0x0050 | 4 | float | m_width | Holds the width before scaling | verified, proof two | ui/anchors#size-scale-and-stored-rectangle |
0x0054 | 4 | float | m_height | Holds the height before scaling | verified, proof two | ui/anchors#size-scale-and-stored-rectangle |
0x0058 | 4 | float | m_layoutScale | Holds the scale sizes and point offsets are multiplied by, 1.0 at construction | verified, proof two | ui/anchors#size-scale-and-stored-rectangle |
0x005c | 16 | float[4] | m_resizeBounds | Holds the minimum and maximum size a user resize may reach | verified, proof one | ui/frames#loading-from-xml |
0x006c | 8 | uint32_t[2] | m_queueLink | Holds the frame's link in the layout queue | verified, proof two | ui/anchors#invalidation-and-the-layout-queue |