#[repr(C)]pub struct DragState {
pub drag_type: DragType,
pub source_node: OptionDomNodeId,
pub current_drop_target: OptionDomNodeId,
pub file_path: OptionString,
}Expand description
State of an active drag operation
Fields§
§drag_type: DragTypeType of drag
source_node: OptionDomNodeIdSource node (for node dragging)
current_drop_target: OptionDomNodeIdCurrent drop target (if hovering over valid drop zone)
file_path: OptionStringFile path (for file dragging)
Implementations§
Source§impl DragState
impl DragState
Sourcepub fn from_context(ctx: &DragContext) -> Option<Self>
pub fn from_context(ctx: &DragContext) -> Option<Self>
Create DragState from a DragContext (for backwards compatibility)
Trait Implementations§
impl StructuralPartialEq for DragState
Auto Trait Implementations§
impl Freeze for DragState
impl RefUnwindSafe for DragState
impl Send for DragState
impl Sync for DragState
impl Unpin for DragState
impl UnwindSafe for DragState
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