benilla-re systems structs docs

CGxString

struct · font · 196 bytes

Meaning
Holds a string: text, size, box, justification, colours and layout
Confidence
verified, proof one
Finding
font/string#string-object

Finding: String object in font: strings and their layout

The fields the functions of this doc load and store:

offsetholds
+0x00, +0x10links: global or pool string list; the font's string list
+0x18, +0x1cthe size; the size clamped to two device pixels
+0x20 to +0x28the position, 3 floats
+0x2c to +0x38main colour, shadow colour (alpha at +0x2f, +0x33), shadow offsets
+0x3c, +0x40the box width and height
+0x44 to +0x4cthe font; the text buffer; its capacity
+0x50 to +0x5cvertical and horizontal justification (0 to 2), line spacing, flags
+0x68, +0x6cthe selection range, −1 when none
+0x70 to +0x78the screen anchor
+0x7c to +0x90the hyperlink region array and the layout's counts
+0x9c, +0xa0laid-out line count (0 for no layout); eight per-line buffers
+0xc0frames since the last layout

The derivation is in the doc.

Fields 21

offsetsizetypenamemeaningconfidencefinding
0x00008void *[2]m_linkHolds the link in the global string list or the poolverified, proof onefont/string#string-object
0x00108void *[2]m_fontLinkHolds the link in the font's string listverified, proof onefont/string#string-object
0x00184floatm_sizeHolds the size, or the font's natural heightverified, proof onefont/string#string-object
0x001c4floatm_clampedSizeHolds the size raised to two device pixelsverified, proof onefont/string#string-object
0x002012float[3]m_positionHolds the positionverified, proof onefont/string#string-object
0x002c4uint32_tm_colorHolds the main colour; byte 3 is the alphaverified, proof onefont/string#string-object
0x00304uint32_tm_shadowColorHolds the shadow colour; byte 3 is the alphaverified, proof onefont/string#string-object
0x00348float[2]m_shadowOffsetHolds the shadow offsetsverified, proof onefont/string#string-object
0x003c4floatm_boxWidthHolds the box widthverified, proof onefont/string#string-object
0x00404floatm_boxHeightHolds the box heightverified, proof onefont/string#string-object
0x00444CGxFont *m_fontHolds the fontverified, proof onefont/string#string-object
0x00484char *m_textHolds the text bufferverified, proof onefont/string#string-object
0x004c4uint32_tm_textCapacityHolds the capacity of the text bufferverified, proof onefont/string#string-object
0x00504uint32_tm_justifyVHolds the vertical justification, 0 to 2verified, proof onefont/string#string-object
0x00544uint32_tm_justifyHHolds the horizontal justification, 0 to 2verified, proof onefont/string#string-object
0x00584floatm_lineSpacingHolds the line spacingverified, proof onefont/string#string-object
0x005c4uint32_tm_flagsHolds the string flags; bit 7 pre-snapped, bit 0 shadowverified, proof onefont/string#string-object
0x007012float[3]m_anchorHolds the screen anchorverified, proof onefont/string#string-object
0x009c4uint32_tm_lineCountHolds the laid-out line count, 0 without a layoutverified, proof onefont/string#string-object
0x00a032void *[8]m_lineBuffersHolds the eight per-line quad buffersverified, proof onefont/string#string-object
0x00c04uint32_tm_ageHolds the frames since the layout was last usedverified, proof onefont/string#string-object