Method
show_header
(
&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
Tested by
no test coverage detected