graphmanager: add API to change port name.

This commit is contained in:
Stéphane Cerveau 2022-02-07 12:18:37 +01:00
parent a21350b4a0
commit 7db3b333ac

View file

@ -186,6 +186,13 @@ impl Port {
private.label.text().to_string()
}
/// Set the port name
///
pub fn set_name(&self, name: &str) {
let private = imp::Port::from_instance(self);
private.label.set_text(name);
}
/// Retrieves the port direction
///
pub fn direction(&self) -> PortDirection {