mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Implement ApplicationHandler
for DisplayState
This commit is contained in:
parent
c61c73e99a
commit
88d0395a76
@ -5,6 +5,7 @@ use fj_viewer::{
|
||||
};
|
||||
use futures::executor::block_on;
|
||||
use winit::{
|
||||
application::ApplicationHandler,
|
||||
dpi::PhysicalPosition,
|
||||
error::EventLoopError,
|
||||
event::{
|
||||
@ -74,7 +75,9 @@ struct DisplayState {
|
||||
stop_drawing: bool,
|
||||
}
|
||||
|
||||
impl DisplayState {
|
||||
impl ApplicationHandler for DisplayState {
|
||||
fn resumed(&mut self, _: &ActiveEventLoop) {}
|
||||
|
||||
fn window_event(
|
||||
&mut self,
|
||||
event_loop: &ActiveEventLoop,
|
||||
|
Loading…
Reference in New Issue
Block a user