Introduce opaque window::Id type

This commit is contained in:
Richard 2022-06-21 15:59:45 -03:00 committed by bungoboingo
parent 8fdd5ee8b6
commit ec56c0686d
6 changed files with 48 additions and 12 deletions

View file

@ -1,6 +1,7 @@
use crate::application::{self, StyleSheet as _};
use crate::conversion;
use crate::multi_window::{Application, Event};
use crate::window;
use crate::{Color, Debug, Point, Size, Viewport};
use std::collections::HashMap;
@ -186,7 +187,7 @@ where
pub fn synchronize(
&mut self,
application: &A,
windows: &HashMap<usize, Window>,
windows: &HashMap<window::Id, Window>,
proxy: &EventLoopProxy<Event<A::Message>>,
) {
let new_windows = application.windows();