mirror of
https://github.com/eliasstepanik/egui_node_graph.git
synced 2026-01-11 13:58:28 +00:00
add doc comment, and fix typo
This commit is contained in:
parent
ad3c9b1383
commit
6174e14a0f
@ -5,6 +5,10 @@ use super::*;
|
|||||||
/// types of the node graph.
|
/// types of the node graph.
|
||||||
pub trait WidgetValueTrait {
|
pub trait WidgetValueTrait {
|
||||||
type Response;
|
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>;
|
fn value_widget(&mut self, param_name: &str, ui: &mut egui::Ui) -> Vec<Self::Response>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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()
|
Vec::new()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user