MCPcopy Create free account
hub / github.com/Nelarius/imnodes / NodeEditorInitialize

Function NodeEditorInitialize

example/multi_editor.cpp:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113} // namespace
114
115void NodeEditorInitialize()
116{
117 editor1.context = ImNodes::EditorContextCreate();
118 editor2.context = ImNodes::EditorContextCreate();
119 ImNodes::PushAttributeFlag(ImNodesAttributeFlags_EnableLinkDetachWithDragClick);
120
121 ImNodesIO& io = ImNodes::GetIO();
122 io.LinkDetachWithModifierClick.Modifier = &ImGui::GetIO().KeyCtrl;
123}
124
125void NodeEditorShow()
126{

Callers

nothing calls this directly

Calls 2

EditorContextCreateFunction · 0.85
PushAttributeFlagFunction · 0.85

Tested by

no test coverage detected