| 346 | } |
| 347 | |
| 348 | bool EventState::handleDrop(math::Vec pos, const std::vector<std::string>& paths) { |
| 349 | // Dispatch PathDropEvent |
| 350 | EventContext cPathDrop; |
| 351 | Widget::PathDropEvent ePathDrop(paths); |
| 352 | ePathDrop.context = &cPathDrop; |
| 353 | ePathDrop.pos = pos; |
| 354 | rootWidget->onPathDrop(ePathDrop); |
| 355 | |
| 356 | return !!cPathDrop.target; |
| 357 | } |
| 358 | |
| 359 | bool EventState::handleText(math::Vec pos, uint32_t codepoint) { |
| 360 | if (selectedWidget) { |
no test coverage detected