benilla-re systems structs docs

CSimpleEditBox::SetCursorPosition

function · ui · primitive

Address
0x77e360 · 43 bytes, up to 0x77e38a
Signature
void __thiscall (CSimpleEditBox *this, int32_t position)
Meaning
Sets the cursor clamped to the text length and marks it dirty
Confidence
verified, proof one
Finding
ui/editboxmembers#cursor-and-selection-setters

Finding: Cursor and selection setters in ui: edit box members

0x77e360(pos) sets the cursor to pos clamped to 0 and the length +0x338 and marks the cursor dirty (+0x31c bit 2). 0x77ccf0 sets both ends of the selection to the cursor. 0x77cd10(d) moves the selection with a cursor step of d: for a negative step the start +0x35c takes the new position when it lies below it, else the end +0x360; for a positive step the end takes it when it lies above, else the start; the selection is marked dirty (bit 1). 0x77cac0(extend) steps the cursor forward one character with 0x77c6b0(1, extend) until it reaches the length, and with extend 0 clears a nonempty selection. 0x77cc60(a) and 0x77cc80(a) call 0x77cb20 with +1 and −1 (a line down and up).

The derivation is in the doc.

Callers 3

Callees 0

None by a direct call or jump.

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