13#include <imgui_node_editor.h>
28 explicit BlueprintNodeBuilder(ImTextureID texture =
nullptr,
int textureWidth = 0,
int textureHeight = 0);
32 void Begin(ax::NodeEditor::NodeId
id);
39 void Header(
const ImVec4& color = ImVec4(1, 1, 1, 1));
46 void Input(ax::NodeEditor::PinId
id);
55 void Output(ax::NodeEditor::PinId
id);
81 static void Pin(ax::NodeEditor::PinId
id, ax::NodeEditor::PinKind kind);
static void EndOutput()
Ends building the output pin.
static void EndPin()
Ends building the pin.
NodeId CurrentNodeId
Id of the node currently built.
ImVec2 NodeMax
Maximum size of the node.
ImTextureID HeaderTextureId
Pointer to the texture to use for the header.
void End()
Ends building a node.
bool SetStage(Stage stage)
Set the stage of the node build process. Takes care of all the Layout elements.
void Output(ax::NodeEditor::PinId id)
Begins building an output pin.
void Begin(ax::NodeEditor::NodeId id)
Begins building a node.
void Middle()
Begins building of the middle of the node.
int HeaderTextureWidth
Width of the header texture.
ImVec2 HeaderMax
Maximum size of the header.
void Input(ax::NodeEditor::PinId id)
Begins building an input pin.
Stage CurrentStage
Current stage of the build process.
void EndHeader()
Ends building the header.
ImVec2 NodeMin
Minimum size of the node.
Stage
Stages in the build process.
@ Begin
Beginning of node construction.
@ Output
Currently building an output pin.
@ Input
Currently building an input pin.
@ Header
Currently building the header.
@ Content
Currently building the content.
static void Pin(ax::NodeEditor::PinId id, ax::NodeEditor::PinKind kind)
Begins building a pin.
ImVec2 ContentMin
Minimum size of the content.
int HeaderTextureHeight
Height of the header texture.
BlueprintNodeBuilder(ImTextureID texture=nullptr, int textureWidth=0, int textureHeight=0)
Constructor.
bool HasHeader
Flag whether the node has a header.
ImVec2 HeaderMin
Minimum size of the header.
ImU32 HeaderColor
Color of the header.
void Header(const ImVec4 &color=ImVec4(1, 1, 1, 1))
Begins building the header.
ImVec2 ContentMax
Maximum size of the content.
static void EndInput()
Ends building the input pin.