* Get the character that is rendered at a position by the focused edit box. * @param pt The position to test. * @return Index of the character position or -1 if no character is at the position. */ virtual */
| 408 | * @return Index of the character position or -1 if no character is at the position. |
| 409 | */ |
| 410 | /* virtual */ ptrdiff_t Window::GetTextCharacterAtPosition(const Point &pt) const |
| 411 | { |
| 412 | if (this->nested_focus != nullptr && this->nested_focus->type == WWT_EDITBOX) { |
| 413 | return this->GetQueryString(this->nested_focus->GetIndex())->GetCharAtPosition(this, this->nested_focus->GetIndex(), pt); |
| 414 | } |
| 415 | |
| 416 | return -1; |
| 417 | } |
| 418 | |
| 419 | /** |
| 420 | * Set the window that has the focus |
nothing calls this directly
no test coverage detected