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

Function SetNodeEditorSpacePos

imnodes.cpp:2661–2666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2659}
2660
2661void SetNodeEditorSpacePos(const int node_id, const ImVec2& editor_space_pos)
2662{
2663 ImNodesEditorContext& editor = EditorContextGet();
2664 ImNodeData& node = ObjectPoolFindOrCreateObject(editor.Nodes, node_id);
2665 node.Origin = EditorSpaceToGridSpace(editor, editor_space_pos);
2666}
2667
2668void SetNodeGridSpacePos(const int node_id, const ImVec2& grid_pos)
2669{

Callers

nothing calls this directly

Calls 1

EditorSpaceToGridSpaceFunction · 0.85

Tested by

no test coverage detected