CSimpleEditBox::GetIndexAtPoint
function · ui · primitive
- Address
0x77d0d0· 591 bytes, up to0x77d31e- Signature
void __thiscall (CSimpleEditBox *this, float x, float y, int32_t *index)- Meaning
- Finds the byte index of the glyph under a point with non-atomic link steps
- Confidence
- verified, proof one
- Finding
- ui/editboxmarkup#where-a-step-is-atomic
- Test
ui::glue_77d0d0_case2,ui::glue_77d0d0_clamp,ui::glue_77d0d0_head,ui::glue_77d0d0_tail_cases
Finding: Where a step is atomic in ui: EditBox markup
The keyboard crosses a link in one step; the mouse does not. Left, Right, Shift with either, Ctrl with either
(word steps), Home, End, Backspace, Delete and Ctrl with the last two all pass atomic set. A mouse click
or drag, Up and Down, the sizing of the scroll window and the composition span pass it clear, so the
mouse can put the cursor between the characters of a link's name. No path can put the cursor inside an escape.
| operation | functions | atomic |
|---|---|---|
| Left, Right, Shift+Left, Shift+Right | 0x77c6b0 | yes |
| Ctrl+Left, Ctrl+Right, Home, End | 0x77c8c0, 0x77c7a0, 0x77c980, 0x77c9f0 | yes, each step |
| Backspace, Delete, Ctrl+Backspace, Ctrl+Delete | 0x77c280, 0x77c3f0, 0x77c310 | yes |
| mouse click and drag | 0x77d0d0 | no |
| Up and Down | 0x77cb20 | no |
| scroll sizing, composition | 0x77d4d0, 0x77d320, 0x77ac60 | no |
The derivation is in the doc.
Callers 2
Callees 7
- PixelAlignY ui
- CLayoutFrame::GetRect ui
- CSimpleFontString::GetTextHeight ui
- MeasureRunWidth ui
- CSimpleFontString::MeasureText ui
- CountGlyphsFromRight ui
- CSimpleEditBox::ByteSpanForChars ui
Calls and jumps by a bare address, from tables/calls.tsv.