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 drag_offset: LogicalPosition, pub current_drop_target: OptionDomNodeId, pub previous_drop_target: OptionDomNodeId, pub drag_data: DragData, pub drop_accepted: bool, pub drop_effect: DropEffect, }

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

§drag_offset: LogicalPosition

Offset from node origin to click point (for correct visual positioning)

§current_drop_target: OptionDomNodeId

Optional: DOM node currently under cursor (drop target)

§previous_drop_target: OptionDomNodeId

Previous drop target (for generating DragEnter/DragLeave events)

§drag_data: DragData

Drag data (MIME types and content)

§drop_accepted: bool

Whether the current drop target has accepted the drop via accept_drop()

§drop_effect: DropEffect

Drop effect set by the drop target