Blender V5.0
blender::ed::space_node::bNodeLinkDrag Struct Reference

#include <node_intern.hh>

Public Attributes

Vector< bNodeLinklinks
eNodeSocketInOut in_out
void * draw_handle
bNodeLinklast_picked_multi_input_socket_link
bNodelast_node_hovered_while_dragging_a_link
bNodeSockethovered_socket
std::array< int, 2 > cursor
bNodestart_node
bNodeSocketstart_socket
int start_link_count
bool swap_links = false
View2DEdgePanData pan_data

Detailed Description

Temporary data used in node link drag modal operator.

Definition at line 44 of file node_intern.hh.

Member Data Documentation

◆ cursor

std::array<int, 2> blender::ed::space_node::bNodeLinkDrag::cursor

◆ draw_handle

void* blender::ed::space_node::bNodeLinkDrag::draw_handle

Draw handler for the tooltip icon when dragging a link in empty space.

Definition at line 51 of file node_intern.hh.

Referenced by blender::ed::space_node::draw_draglink_tooltip_activate(), and blender::ed::space_node::draw_draglink_tooltip_deactivate().

◆ hovered_socket

bNodeSocket* blender::ed::space_node::bNodeLinkDrag::hovered_socket

Temporarily stores the currently hovered socket for link swapping to allow reliably swap links even when dragging multiple links at once. nullptr, when no socket is hovered.

Definition at line 66 of file node_intern.hh.

Referenced by blender::ed::space_node::add_dragged_links_to_tree(), blender::ed::space_node::node_link_find_socket(), blender::ed::space_node::node_remove_existing_links_if_needed(), and blender::ed::space_node::node_swap_links().

◆ in_out

◆ last_node_hovered_while_dragging_a_link

bNode* blender::ed::space_node::bNodeLinkDrag::last_node_hovered_while_dragging_a_link

Temporarily stores the last hovered node for multi-input socket operator. Store it to recalculate sorting after it is no longer hovered.

Definition at line 60 of file node_intern.hh.

Referenced by blender::ed::space_node::node_link_find_socket(), and blender::ed::space_node::pick_link().

◆ last_picked_multi_input_socket_link

bNodeLink* blender::ed::space_node::bNodeLinkDrag::last_picked_multi_input_socket_link

Temporarily stores the last picked link from multi-input socket operator.

Definition at line 54 of file node_intern.hh.

Referenced by blender::ed::space_node::pick_input_link_by_link_intersect().

◆ links

◆ pan_data

View2DEdgePanData blender::ed::space_node::bNodeLinkDrag::pan_data

◆ start_link_count

int blender::ed::space_node::bNodeLinkDrag::start_link_count

The number of links connected to the start_socket when the drag started.

Definition at line 76 of file node_intern.hh.

Referenced by blender::ed::space_node::should_create_drag_link_search_menu().

◆ start_node

bNode* blender::ed::space_node::bNodeLinkDrag::start_node

The node the drag started at.

Definition at line 72 of file node_intern.hh.

Referenced by blender::ed::space_node::node_swap_links().

◆ start_socket

◆ swap_links


The documentation for this struct was generated from the following file: