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

Function IsNodeHovered

imnodes.cpp:2711–2723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2709bool IsEditorHovered() { return MouseInCanvas(); }
2710
2711bool IsNodeHovered(int* const node_id)
2712{
2713 assert(GImNodes->CurrentScope == ImNodesScope_None);
2714 assert(node_id != NULL);
2715
2716 const bool is_hovered = GImNodes->HoveredNodeIdx.HasValue();
2717 if (is_hovered)
2718 {
2719 const ImNodesEditorContext& editor = EditorContextGet();
2720 *node_id = editor.Nodes.Pool[GImNodes->HoveredNodeIdx.Value()].Id;
2721 }
2722 return is_hovered;
2723}
2724
2725bool IsLinkHovered(int* const link_id)
2726{

Callers

nothing calls this directly

Calls 2

HasValueMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected