add: ActiveEventLoop::create_proxy()

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
This commit is contained in:
daxpedda
2024-06-29 17:19:09 +02:00
committed by GitHub
parent 2e93e48a3b
commit a0d69c782a
14 changed files with 78 additions and 71 deletions

View File

@@ -58,10 +58,6 @@ impl EventLoop {
self.elw.p.run(Box::new(move |event| handle_event(&mut app, &target, event)), true);
}
pub fn create_proxy(&self) -> EventLoopProxy {
EventLoopProxy::new(self.elw.p.waker())
}
pub fn window_target(&self) -> &RootActiveEventLoop {
&self.elw
}