MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / new

Method new

examples/visual_node_graph/src/ui.rs:838–857  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

836
837impl DemoApp {
838 pub fn new() -> Self {
839 let snarl = Snarl::new();
840 let style = SnarlStyle {
841 max_scale: Some(1.0),
842 ..Default::default()
843 };
844
845 let mut new_self = DemoApp {
846 snarl,
847 style,
848 snarl_ui_id: None,
849 audio_system: AudioSystem::new(),
850 last_cpu_usage_update: Instant::now(),
851 overall_cpu_usage_percent: 0,
852 };
853
854 new_self.add_graph_in_out_nodes();
855
856 new_self
857 }
858
859 fn add_graph_in_out_nodes(&mut self) {
860 self.snarl.insert_node(

Callers

nothing calls this directly

Calls 2

nowFunction · 0.85

Tested by

no test coverage detected