feat: add window::Event::ScaleFactorChanged
This commit is contained in:
parent
19569f7900
commit
21cf7f98d7
2 changed files with 6 additions and 0 deletions
|
|
@ -71,4 +71,7 @@ pub enum Event {
|
|||
///
|
||||
/// - **Wayland:** Not implemented.
|
||||
FilesHoveredLeft,
|
||||
|
||||
/// A window's scale factor was changed.
|
||||
ScaleFactorChanged(f64),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -331,6 +331,9 @@ pub fn window_event(
|
|||
|
||||
Some(Event::Window(window::Event::Moved(Point::new(x, y))))
|
||||
}
|
||||
WindowEvent::ScaleFactorChanged { scale_factor, .. } => Some(
|
||||
Event::Window(window::Event::ScaleFactorChanged(scale_factor)),
|
||||
),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue