benilla-re systems structs docs

CSimpleBackdrop::BuildPieces

function · ui · primitive

Address
0x77e8d0 · 2025 bytes, up to 0x77f0b8
Signature
void __thiscall (CSimpleBackdrop *this, CSimpleFrame *frame)
Meaning
Creates and anchors the background and edge textures of a backdrop on a frame
Confidence
verified, proof one
Finding
ui/backdrop#the-pieces-and-their-anchors
Test
ui::glue_geom_77e8d0_negate

Finding: The pieces and their anchors in ui: the frame backdrop

Installing builds the background texture for a nonempty bgFile and an edge texture for each set mask bit (1 left, 2 right, 4 top, 8 bottom, 0x10 to 0x80 the corners top left, top right, bottom left, bottom right). The background lies on the BACKGROUND layer and the edges on BORDER. The border sits inside the frame rectangle and the insets act on the background alone. The background's bottom right anchor is raised by the top inset, not the bottom one, so with different top and bottom insets that corner rides high.

pieceanchors, as point of frame (x, y)size
backgroundtop left (left, −top); top right (−right, −top); bottom left (left, bottom); bottom right (−right, top)none
lefttop left (0, −edge); bottom left (0, edge)width edge
righttop right (0, −edge); bottom right (0, edge)width edge
toptop left (edge, 0); top right (−edge, 0)height edge
bottombottom left (edge, 0); bottom right (−edge, 0)height edge
each cornerits own corner (0, 0)width and height edge

The derivation is in the doc.

Callers 1

Callees 8

Calls and jumps by a bare address, from tables/calls.tsv.