| 353 | } |
| 354 | |
| 355 | ptrdiff_t GetTextCharacterAtPosition(const Point &pt) const override |
| 356 | { |
| 357 | int delta = std::min<int>(this->width - this->line_offset - _iconsole_cmdline.pixels - ICON_RIGHT_BORDERWIDTH, 0); |
| 358 | |
| 359 | if (!IsInsideMM(pt.y, this->height - this->line_height, this->height)) return -1; |
| 360 | |
| 361 | return GetCharAtPosition(_iconsole_cmdline.GetText(), pt.x - delta); |
| 362 | } |
| 363 | |
| 364 | void OnMouseWheel(int wheel, WidgetID widget) override |
| 365 | { |
nothing calls this directly
no test coverage detected