fn update_draw(&self, evt: nwg::Event) {
        use nwg::Event as E;
        use nwg::MousePressEvent::*;

        let mut data = self.data.borrow_mut();

        match evt {
            E::OnMousePress(MousePressLeftDown) => { data.drawing = true; },
            E::OnMousePress(MousePressLeftUp) => { data.drawing = false; },
            _ => unreachable!()
        }
    }
/// Update the drawing state of syncdraw
Update the drawing state of syncdraw
Update the drawing state of syncdraw
fn update_draw(&self, evt: nwg::Event) {
        use nwg::Event as E;
        use nwg::MousePressEvent::*;
        let mut data = self.data.borrow_mut();
        match evt {
            E::OnMousePress(MousePressLeftDown) => { data.drawing = true; },
            E::OnMousePress(MousePressLeftUp) => { data.drawing = false; },
            _ => unreachable!()
        }
    }
fn update_draw ( & self , evt : nwg :: Event ) { use nwg :: Event as E ; use nwg :: MousePressEvent :: * ; let mut data = self . data . borrow_mut ( ) ; match evt { E :: OnMousePress ( MousePressLeftDown ) => { data . drawing = true ; } , E :: OnMousePress ( MousePressLeftUp ) => { data . drawing = false ; } , _ => unreachable ! ( ) } }
Update the drawing state of syncdraw
Update the drawing state of syncdraw
&self
evt
nwg::Event