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: DomIdDOM ID of the node being dragged
node_id: NodeIdNode ID being dragged
start_position: LogicalPositionPosition where drag started
current_position: LogicalPositionCurrent drag position
drag_offset: LogicalPositionOffset from node origin to click point (for correct visual positioning)
current_drop_target: OptionDomNodeIdOptional: DOM node currently under cursor (drop target)
previous_drop_target: OptionDomNodeIdPrevious drop target (for generating DragEnter/DragLeave events)
drag_data: DragDataDrag data (MIME types and content)
drop_accepted: boolWhether the current drop target has accepted the drop via accept_drop()
drop_effect: DropEffectDrop effect set by the drop target