pub fn new(window_sender: mpsc::Sender<WindowRequest>) -> Self {
        EventAdapter {
            event_queue: Arc::new(Mutex::new(EventQueue::new())),
            window_sender: Some(window_sender),
        }
    }
/// Creates a new event adapter.
Creates a new event adapter.
Creates a new event adapter .
pub fn new(window_sender: mpsc::Sender<WindowRequest>) -> Self {
        EventAdapter {
            event_queue: Arc::new(Mutex::new(EventQueue::new())),
            window_sender: Some(window_sender),
        }
    }
pub fn new ( window_sender : mpsc :: Sender < WindowRequest > ) -> Self { EventAdapter { event_queue : Arc :: new ( Mutex :: new ( EventQueue :: new ( ) ) ) , window_sender : Some ( window_sender ) , } }
Creates a new event adapter.
Creates a new event adapter .
window_sender
mpsc::Sender<WindowRequest>