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

Get the id of this NodeConstructor

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.