Struct egui_nodes::NodeConstructor [−][src]
pub struct NodeConstructor<'a> { /* fields omitted */ }
Expand description
Used to construct a node and stores the relevant ui code for its title and attributes This is used so that the nodes can be rendered in the context depth order
Implementations
Create a new node to be displayed in a Context. id should be the same accross frames and should not be the same as any other currently used nodes
Add a title to a node
Add an input attibute to a node, this attribute can be connected to output attributes of other nodes id should be the same accross frames and should not be the same as any other currently used attributes the attribute should return a egui::Response to be checked for interaction
Add an output attibute to a node, this attribute can be connected to input attributes of other nodes id should be the same accross frames and should not be the same as any other currently used attributes the attribute should return a egui::Response to be checked for interaction
Add a static attibute to a node, this attribute can’t be connected to any other attributes id should be the same accross frames and should not be the same as any other currently used attributes the attribute should return a egui::Response to be checked for interaction
Set the position of the node in screen space when it is first created. To modify it after creation use one of the set_node_pos methods of the Context
Trait Implementations
Returns the “default value” for a type. Read more