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

Method show_header

examples/visual_node_graph/src/ui.rs:230–244  ·  view source on GitHub ↗
(
        &mut self,
        node: egui_snarl::NodeId,
        inputs: &[InPin],
        outputs: &[OutPin],
        ui: &mut Ui,
        snarl: &mut Snarl<GuiAudioNode>,
    )

Source from the content-addressed store, hash-verified

228 }
229
230 fn show_header(
231 &mut self,
232 node: egui_snarl::NodeId,
233 inputs: &[InPin],
234 outputs: &[OutPin],
235 ui: &mut Ui,
236 snarl: &mut Snarl<GuiAudioNode>,
237 ) {
238 // Override header style to prevent text from being selected when
239 // dragging windows
240 let _ = (inputs, outputs);
241 ui.ctx()
242 .style_mut(|style| style.interaction.selectable_labels = false);
243 ui.label(self.title(&snarl[node]));
244 }
245
246 fn inputs(&mut self, node: &GuiAudioNode) -> usize {
247 node.num_inputs()

Callers

nothing calls this directly

Calls 1

titleMethod · 0.80

Tested by

no test coverage detected