(model: Rc<RwLock<PlottersDrawAreaModel>>, cx: &mut App)
| 25 | |
| 26 | impl MainViewer { |
| 27 | fn new(model: Rc<RwLock<PlottersDrawAreaModel>>, cx: &mut App) -> Self { |
| 28 | let figure = PlottersDrawAreaViewer::with_shared_model(model); |
| 29 | |
| 30 | Self { |
| 31 | figure: cx.new(move |_| figure), |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | impl Render for MainViewer { |