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

Method new

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

Source from the content-addressed store, hash-verified

25
26impl 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
36impl Render for MainViewer {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected