@@ -8,14 +8,14 @@ use crate::window::WindowId;
88
99/// The handler of application-level events.
1010///
11- /// See [the top-level docs] for example usage, and [`EventLoop ::run_app`] for an overview of when
12- /// events are delivered.
11+ /// See [the top-level docs] for example usage, and [`EventLoopProvider ::run_app`] for an overview
12+ /// of when events are delivered.
1313///
1414/// This is [dropped] when the event loop is shut down. Note that this only works if you're passing
15- /// the entire state to [`EventLoop ::run_app`] (passing `&mut app` won't work).
15+ /// the entire state to [`EventLoopProvider ::run_app`] (passing `&mut app` won't work).
1616///
1717/// [the top-level docs]: crate
18- /// [`EventLoop ::run_app`]: crate::event_loop::EventLoop ::run_app
18+ /// [`EventLoopProvider ::run_app`]: crate::event_loop::EventLoopProvider ::run_app
1919/// [dropped]: std::ops::Drop
2020pub trait ApplicationHandler {
2121 /// Emitted when new events arrive from the OS to be processed.
@@ -136,7 +136,7 @@ pub trait ApplicationHandler {
136136 /// use std::time::Duration;
137137 ///
138138 /// use winit::application::ApplicationHandler;
139- /// use winit::event_loop::{ActiveEventLoop, EventLoop};
139+ /// use winit::event_loop::{ActiveEventLoop, EventLoop, EventLoopProvider };
140140 ///
141141 /// struct MyApp {
142142 /// receiver: mpsc::Receiver<u64>,
@@ -210,9 +210,9 @@ pub trait ApplicationHandler {
210210
211211 /// Emitted when the OS sends an event to a device.
212212 ///
213- /// For this to be called, it must be enabled with [`EventLoop ::listen_device_events`].
213+ /// For this to be called, it must be enabled with [`EventLoopProvider ::listen_device_events`].
214214 ///
215- /// [`EventLoop ::listen_device_events`]: crate::event_loop::EventLoop ::listen_device_events
215+ /// [`EventLoopProvider ::listen_device_events`]: crate::event_loop::EventLoopProvider ::listen_device_events
216216 fn device_event (
217217 & mut self ,
218218 event_loop : & dyn ActiveEventLoop ,
0 commit comments