#[repr(C)]pub struct NodeDrag {
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,
}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
current_drop_target: OptionDomNodeIdOptional: DOM node currently under cursor (drop target)
drag_data: DragDataDrag data (MIME types and content)
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 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