#[repr(C)]pub struct NodeDrag {
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,
}Expand description
Node drag-and-drop state.
Tracks a DOM node being dragged for reordering or moving.
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
Trait Implementations§
impl StructuralPartialEq for NodeDrag
Auto Trait Implementations§
impl Freeze for NodeDrag
impl RefUnwindSafe for NodeDrag
impl Send for NodeDrag
impl Sync for NodeDrag
impl Unpin for NodeDrag
impl UnsafeUnpin for NodeDrag
impl UnwindSafe for NodeDrag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more