void Window::DispatchEvent(Event *event) { Canvas *canvas = FindChild(event->target); if (canvas) canvas->HandleEvent(event); }