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

Function IsPinHovered

imnodes.cpp:2739–2751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2737}
2738
2739bool IsPinHovered(int* const attr)
2740{
2741 assert(GImNodes->CurrentScope == ImNodesScope_None);
2742 assert(attr != NULL);
2743
2744 const bool is_hovered = GImNodes->HoveredPinIdx.HasValue();
2745 if (is_hovered)
2746 {
2747 const ImNodesEditorContext& editor = EditorContextGet();
2748 *attr = editor.Pins.Pool[GImNodes->HoveredPinIdx.Value()].Id;
2749 }
2750 return is_hovered;
2751}
2752
2753int NumSelectedNodes()
2754{

Callers

nothing calls this directly

Calls 2

HasValueMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected