Skip to main content

NodeDragState

Type Alias NodeDragState 

Source
pub type NodeDragState = NodeDrag;
Expand description

State of an active node drag (after detection) DEPRECATED: Use DragContext with ActiveDragType::Node instead.

Aliased Type§

#[repr(C)]
pub struct NodeDragState { pub dom_id: DomId, pub node_id: NodeId, pub start_position: LogicalPosition, pub current_position: LogicalPosition, pub current_drop_target: OptionDomNodeId, pub drag_data: DragData, }

Fields§

§dom_id: DomId

DOM ID of the node being dragged

§node_id: NodeId

Node ID being dragged

§start_position: LogicalPosition

Position where drag started

§current_position: LogicalPosition

Current drag position

§current_drop_target: OptionDomNodeId

Optional: DOM node currently under cursor (drop target)

§drag_data: DragData

Drag data (MIME types and content)