pub fn into_dispatcher(
        self,
    ) -> Dispatcher<
        Self,
        impl FnMut(
            window::WindowHandle,
            &mut Rc<RefCell<EventQueue>>,
            &mut std::sync::Arc<application::Data>,
        ) -> io::Result<u32>,
    > {
        Dispatcher::new(self, |_winhandle, queue, appdata| {
            queue
                .borrow_mut()
                .dispatch_pending(appdata, |event, object, _| {
                    tracing::error!(
                        "[druid-shell] Encountered an orphan event: {}@{} : {}",
                        event.interface,
                        object.as_ref().id(),
                        event.name
                    );
                    tracing::error!("all events should be handled: please raise an issue");
                })
        })
    }
/// Get a dispatcher that we can insert into our event loop.
Get a dispatcher that we can insert into our event loop.
Get a dispatcher that we can insert into our event loop .
pub fn into_dispatcher(
        self,
    ) -> Dispatcher<
        Self,
        impl FnMut(
            window::WindowHandle,
            &mut Rc<RefCell<EventQueue>>,
            &mut std::sync::Arc<application::Data>,
        ) -> io::Result<u32>,
    > {
        Dispatcher::new(self, |_winhandle, queue, appdata| {
            queue
                .borrow_mut()
                .dispatch_pending(appdata, |event, object, _| {
                    tracing::error!(
                        "[druid-shell] Encountered an orphan event: {}@{} : {}",
                        event.interface,
                        object.as_ref().id(),
                        event.name
                    );
                    tracing::error!("all events should be handled: please raise an issue");
                })
        })
    }
pub fn into_dispatcher ( self , ) -> Dispatcher < Self , impl FnMut ( window :: WindowHandle , & mut Rc < RefCell < EventQueue > > , & mut std :: sync :: Arc < application :: Data > , ) -> io :: Result < u32 > , > { Dispatcher :: new ( self , | _winhandle , queue , appdata | { queue . borrow_mut ( ) . dispatch_pending ( appdata , | event , object , _ | { tracing :: error ! ( " " event interface object as_ref ( ) id ( ) event name ) ; tracing :: error ! ( " " ) ; } ) } ) }
Get a dispatcher that we can insert into our event loop.
Get a dispatcher that we can insert into our event loop .
self
self