| 2737 | } |
| 2738 | |
| 2739 | bool 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 | |
| 2753 | int NumSelectedNodes() |
| 2754 | { |