| 113 | } // namespace |
| 114 | |
| 115 | void 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 | |
| 125 | void NodeEditorShow() |
| 126 | { |
nothing calls this directly
no test coverage detected