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

Function EditorContextMoveToNode

imnodes.cpp:1992–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1990}
1991
1992void EditorContextMoveToNode(const int node_id)
1993{
1994 ImNodesEditorContext& editor = EditorContextGet();
1995 ImNodeData& node = ObjectPoolFindOrCreateObject(editor.Nodes, node_id);
1996
1997 editor.Panning.x = -node.Origin.x;
1998 editor.Panning.y = -node.Origin.y;
1999}
2000
2001void SetImGuiContext(ImGuiContext* ctx) { ImGui::SetCurrentContext(ctx); }
2002

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected