(model: Rc<RwLock<PlottersDrawAreaModel>>, cx: &mut App)
| 16 | |
| 17 | impl MainViewer { |
| 18 | fn new(model: Rc<RwLock<PlottersDrawAreaModel>>, cx: &mut App) -> Self { |
| 19 | let figure = PlottersDrawAreaViewer::with_shared_model(model); |
| 20 | |
| 21 | Self { |
| 22 | figure: cx.new(move |_| figure), |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | impl Render for MainViewer { |