pub struct DropData {
pub view_id: ViewId,
pub change: DropChange,
pub physical_position: Option<Offset>,
pub paths: Vec<PathBuf>,
}Expand description
One report of an external drag over a view.
Fields§
§view_id: ViewIdThe crate::View the drag is over.
change: DropChangeWhat happened since the last report.
physical_position: Option<Offset>Where over the view, in physical pixels, when the host knows: a host may report no
position at all, and none reports one on DropChange::Exited.
paths: Vec<PathBuf>The dragged files: always on DropChange::Dropped, on DropChange::Entered
where the system tells the host ahead of the drop, empty otherwise.
Trait Implementations§
impl StructuralPartialEq for DropData
Auto Trait Implementations§
impl Freeze for DropData
impl RefUnwindSafe for DropData
impl Send for DropData
impl Sync for DropData
impl Unpin for DropData
impl UnsafeUnpin for DropData
impl UnwindSafe for DropData
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