pub struct FileDropped {
pub entity: Entity,
pub path: PathBuf,
pub position: Vec2,
}Expand description
Emitted when a file drops on a [DropTarget].
entity is the topmost DropTarget under the cursor at drop time; drops without a matching target are not emitted.
Fields§
§entity: EntityRecipient entity (carries DropTarget).
path: PathBufFile path the OS handed us.
position: Vec2Cursor position at the time of drop.
Trait Implementations§
Source§impl Clone for FileDropped
impl Clone for FileDropped
Source§fn clone(&self) -> FileDropped
fn clone(&self) -> FileDropped
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileDropped
impl Debug for FileDropped
impl Message for FileDropped
Auto Trait Implementations§
impl Freeze for FileDropped
impl RefUnwindSafe for FileDropped
impl Send for FileDropped
impl Sync for FileDropped
impl Unpin for FileDropped
impl UnsafeUnpin for FileDropped
impl UnwindSafe for FileDropped
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,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.