internal cleanup: Remove the use of ComponentWindow in the interpreter

This commit is contained in:
Simon Hausmann 2021-07-21 16:39:25 +02:00 committed by Simon Hausmann
parent ef184f7f1a
commit 1c285694d7
11 changed files with 45 additions and 50 deletions

View file

@ -20,7 +20,7 @@ use image::GenericImageView;
use sixtyfps_corelib::component::ComponentRc;
use sixtyfps_corelib::graphics::{FontMetrics, Image, Size};
use sixtyfps_corelib::slice::Slice;
use sixtyfps_corelib::window::{ComponentWindow, PlatformWindow, Window};
use sixtyfps_corelib::window::{PlatformWindow, Window};
use sixtyfps_corelib::{ImageInner, Property};
use std::path::Path;
use std::pin::Pin;
@ -33,8 +33,8 @@ pub struct TestingBackend {
}
impl sixtyfps_corelib::backend::Backend for TestingBackend {
fn create_window(&'static self) -> ComponentWindow {
Window::new(|_| Rc::new(TestingWindow::default())).into()
fn create_window(&'static self) -> Rc<Window> {
Window::new(|_| Rc::new(TestingWindow::default()))
}
fn run_event_loop(&'static self, _behavior: sixtyfps_corelib::backend::EventLoopQuitBehavior) {