mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
* Change web backend `event_handler` to without 'static lifetime * Refactor web runner and fix ControlFlow::Exit not being sticky * Impl. scaling change event for web-sys backend * Improve `dpi` docs regarding the web backend * Add changes to changelog * Update features.md
14 lines
298 B
Rust
14 lines
298 B
Rust
use super::super::ScaleChangeArgs;
|
|
|
|
pub struct ScaleChangeDetector(());
|
|
|
|
impl ScaleChangeDetector {
|
|
pub(crate) fn new<F>(_handler: F) -> Self
|
|
where
|
|
F: 'static + FnMut(ScaleChangeArgs),
|
|
{
|
|
// TODO: Stub, unimplemented (see web_sys for reference).
|
|
Self(())
|
|
}
|
|
}
|