benilla-re systems structs docs

CSimpleButton::SetText

function · ui · orchestration

Address
0x778dc0 · 91 bytes, up to 0x778e1a
Meaning
Sets the label's text, creating a label when there is none
Confidence
verified, proof one
Finding
ui/button#the-label-and-its-fonts

Finding: The label and its fonts in ui: Button and CheckButton

The label is a FontString in the ARTWORK layer. Its font follows the state: the disabled font in state 0, else the highlight font while the HIGHLIGHT layer is on, else the normal font. In the pushed state the label moves by the pushed text offset. Installing a label deletes the old one and, only for a label with no anchor, anchors it to the button by the normal font's justify: LEFT to LEFT, RIGHT to RIGHT, else CENTER. SetText creates a label when there is none. GetText returns nil for no label or an empty text.

The derivation is in the doc.

Callers 2

Callees 4

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