Introduce window::Id to Event subscriptions
And remove `window::Id` from `Event` altogether.
This commit is contained in:
parent
49affc44ff
commit
e400f972c1
19 changed files with 95 additions and 91 deletions
|
|
@ -28,8 +28,8 @@ use raw_window_handle::WindowHandle;
|
|||
/// In any case, this [`Subscription`] is useful to smoothly draw application-driven
|
||||
/// animations without missing any frames.
|
||||
pub fn frames() -> Subscription<Instant> {
|
||||
event::listen_raw(|event, _status| match event {
|
||||
crate::core::Event::Window(_, Event::RedrawRequested(at)) => Some(at),
|
||||
event::listen_raw(|event, _status, _window| match event {
|
||||
crate::core::Event::Window(Event::RedrawRequested(at)) => Some(at),
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue