Struct egui_nodes::Context[][src]

pub struct Context {
    pub io: IO,
    pub style: Style,
    // some fields omitted
}
Expand description

The Context that tracks the state of the node editor

Fields

io: IOstyle: Style

Implementations

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>

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.