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

Function GetNodeGridSpacePos

imnodes.cpp:2700–2707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2698}
2699
2700ImVec2 GetNodeGridSpacePos(const int node_id)
2701{
2702 ImNodesEditorContext& editor = EditorContextGet();
2703 const int node_idx = ObjectPoolFind(editor.Nodes, node_id);
2704 assert(node_idx != -1);
2705 ImNodeData& node = editor.Nodes.Pool[node_idx];
2706 return node.Origin;
2707}
2708
2709bool IsEditorHovered() { return MouseInCanvas(); }
2710

Callers

nothing calls this directly

Calls 1

ObjectPoolFindFunction · 0.85

Tested by

no test coverage detected