pipewire connection: Reconnection to PipeWire server

This commit is contained in:
Denis Drakhnia
2023-09-01 06:50:30 +03:00
committed by Tom Wagner
parent f0da839383
commit 94323510aa
6 changed files with 136 additions and 46 deletions

View File

@@ -796,6 +796,14 @@ impl GraphView {
self.queue_draw();
}
pub fn clear(&mut self) {
self.imp().links.borrow_mut().clear();
for (node, _) in self.imp().nodes.borrow_mut().drain() {
node.unparent();
}
self.queue_draw();
}
/// Get the position of the specified node inside the graphview.
///
/// The returned position is in canvas-space (non-zoomed, (0, 0) fixed in the middle of the canvas).