use super::*;
use std::{cell::*, rc::Rc};
pub trait WindowHelper: Window {
fn provoke_changed_property(&self, property: WindowProperty) {
WindowEventQueue::provoke_changed_property(self.uid(), property);
}
}
impl<T: Window> WindowHelper for T {}
pub struct WindowFactory {}
impl WindowFactory {
#[inline(always)]
pub fn create<T>() -> Rc<RefCell<T>>
where T: Window + Default {
Rc::new(RefCell::new(T::default()))
}
}