From f78ccd9af9ced4c18ed4b56cbf838c6c5a5119ad Mon Sep 17 00:00:00 2001 From: bungoboingo Date: Mon, 9 Jan 2023 11:48:34 -0800 Subject: Removed glutin's individual multi_window state since 0.30+ doesn't have its own event crate anymore --- glutin/src/multi_window.rs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'glutin/src/multi_window.rs') diff --git a/glutin/src/multi_window.rs b/glutin/src/multi_window.rs index e79ec77d..2b456543 100644 --- a/glutin/src/multi_window.rs +++ b/glutin/src/multi_window.rs @@ -1,8 +1,4 @@ //! Create interactive, native cross-platform applications. -mod state; - -pub use state::State; - use crate::mouse; use crate::{Error, Executor, Runtime}; @@ -382,7 +378,7 @@ async fn run_instance( .expect("Create surface."); let current_context = context.make_current(&surface).expect("Make current."); - let state = State::new(&application, id, &window); + let state = multi_window::State::new(&application, id, &window); let physical_size = state.physical_size(); surface.resize( @@ -577,7 +573,7 @@ async fn run_instance( event::Event::UserEvent(event) => match event { Event::Application(message) => messages.push(message), Event::WindowCreated(id, window) => { - let state = State::new(&application, id, &window); + let state = multi_window::State::new(&application, id, &window); let user_interface = multi_window::build_user_interface( &application, user_interface::Cache::default(), @@ -771,7 +767,7 @@ async fn run_instance( pub fn update( application: &mut A, cache: &mut user_interface::Cache, - state: &State, + state: &multi_window::State, renderer: &mut A::Renderer, runtime: &mut Runtime>, Event>, clipboard: &mut Clipboard, @@ -813,7 +809,7 @@ pub fn update( pub fn run_command( application: &A, cache: &mut user_interface::Cache, - state: &State, + state: &multi_window::State, renderer: &mut A::Renderer, command: Command, runtime: &mut Runtime>, Event>, @@ -993,7 +989,7 @@ pub fn build_user_interfaces<'a, A>( application: &'a A, renderer: &mut A::Renderer, debug: &mut Debug, - states: &HashMap>, + states: &HashMap>, mut pure_states: HashMap, ) -> HashMap< window::Id, -- cgit