add doc comment, and fix typo

This commit is contained in:
IsseW 2022-05-31 11:03:13 +02:00
parent ad3c9b1383
commit 6174e14a0f
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,10 @@ use super::*;
/// types of the node graph.
pub trait WidgetValueTrait {
type Response;
/// This method will be called for each input parameter with a widget. The
/// return value is a vector of custom response objects which can be used
/// to implement handling of side effects. If unsure, the response Vec can
/// be empty.
fn value_widget(&mut self, param_name: &str, ui: &mut egui::Ui) -> Vec<Self::Response>;
}

View File

@ -271,7 +271,7 @@ impl WidgetValueTrait for MyValueType {
});
}
}
// This allows you to retorn your responses from the inline widgets.
// This allows you to return your responses from the inline widgets.
Vec::new()
}
}