pub struct DragReport {
pub view_id: ViewId,
pub change: DragChange,
pub physical_position: Option<Offset>,
pub items: Vec<Rc<dyn DataTransferItem>>,
}Expand description
One report of an external drag over a view.
Fields§
§view_id: ViewIdThe crate::View the drag is over.
change: DragChangeWhat 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 DragChange::Exited.
items: Vec<Rc<dyn DataTransferItem>>What is dragged, as a paste reads it: each item’s types, each read when asked, while the drop is reported. The same items in every report of one drag; a file is an item as a pasted file is.
Trait Implementations§
Source§impl Clone for DragReport
impl Clone for DragReport
Auto Trait Implementations§
impl !RefUnwindSafe for DragReport
impl !Send for DragReport
impl !Sync for DragReport
impl !UnwindSafe for DragReport
impl Freeze for DragReport
impl Unpin for DragReport
impl UnsafeUnpin for DragReport
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