Struct egui_nodes::Context [−][src]
Expand description
The Context that tracks the state of the node editor
Fields
io: IO
style: Style
Implementations
pub fn show<'a>(
&mut self,
nodes: impl IntoIterator<Item = NodeConstructor<'a>>,
links: impl IntoIterator<Item = (usize, usize, usize, LinkArgs)>,
ui: &mut Ui
) -> Response
pub fn show<'a>(
&mut self,
nodes: impl IntoIterator<Item = NodeConstructor<'a>>,
links: impl IntoIterator<Item = (usize, usize, usize, LinkArgs)>,
ui: &mut Ui
) -> Response
Displays the current state of the editor on a give Egui Ui as well as updating user input to the context
Push a sigle AttributeFlags value, by default only None is set. Used for pins that don’t have a specific attribute flag specified
Remove the last added AttributeFlags value
Changes the current colors used by the editor
Revert the last color change
Change a context style value
Revert the last context style change
Check if there is a node that is hovered by the pointer
Check if there is a link that is hovered by the pointer
Check if there is a pin that is hovered by the pointer
Check if an attribute is currently being interacted with
Has a new link been created from a pin?
Has a link been dropped? if including_detached_links then links that were detached then dropped are included
Has a new link been created? -> Option<start_pin, end_pin created_from_snap>
Has a new link been created? Includes start and end node -> Option<start_pin, start_node, end_pin, end_node created_from_snap>