MCPcopy Create free account
hub / github.com/JakkuSakura/plotters-gpui / new

Method new

examples/3d-plot.rs:18–24  ·  view source on GitHub ↗
(model: Rc<RwLock<PlottersDrawAreaModel>>, cx: &mut App)

Source from the content-addressed store, hash-verified

16
17impl 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
27impl Render for MainViewer {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected