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

Function ScreenSpaceToMiniMapSpace

imnodes.cpp:292–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290};
291
292inline ImVec2 ScreenSpaceToMiniMapSpace(const ImNodesEditorContext& editor, const ImVec2& v)
293{
294 return (ScreenSpaceToGridSpace(editor, v) - editor.GridContentBounds.Min) *
295 editor.MiniMapScaling +
296 editor.MiniMapContentScreenSpace.Min;
297};
298
299inline ImRect ScreenSpaceToMiniMapSpace(const ImNodesEditorContext& editor, const ImRect& r)
300{

Callers 2

MiniMapDrawNodeFunction · 0.85
imnodes.cppFile · 0.85

Calls 2

ScreenSpaceToGridSpaceFunction · 0.85
ImRectFunction · 0.50

Tested by

no test coverage detected