#[non_exhaustive]pub enum DropEvent {
File {
timestamp: u32,
file: String,
window_id: u32,
},
Text {
timestamp: u32,
text: String,
window_id: u32,
},
Begin {
timestamp: u32,
window_id: u32,
},
Complete {
timestamp: u32,
window_id: u32,
},
}
Expand description
An event occurred when the item was dropped on a window.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
File
A file was dropped.
Fields
Text
A text was dropped.
Fields
Begin
A dragging began.
Fields
Complete
The dragging completed.
Trait Implementations§
Source§impl From<SDL_DropEvent> for DropEvent
impl From<SDL_DropEvent> for DropEvent
Source§fn from(raw: SDL_DropEvent) -> Self
fn from(raw: SDL_DropEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DropEvent
impl RefUnwindSafe for DropEvent
impl Send for DropEvent
impl Sync for DropEvent
impl Unpin for DropEvent
impl UnwindSafe for DropEvent
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