pub struct DragData {
pub files: Vec<String>,
pub text: Option<String>,
pub urls: Vec<String>,
pub html: Option<String>,
pub image: Option<Vec<u8>>,
pub bmp: Option<Vec<u8>>,
pub app: u32,
pub bytes: Vec<u8>,
pub label: String,
pub effects: u32,
}Expand description
the content of one drag (a drop that arrives, or what the app drags)
Fields§
§files: Vec<String>paths of files and folders
text: Option<String>plain text
urls: Vec<String>URLs (not local files)
html: Option<String>an HTML fragment (UTF-8)
image: Option<Vec<u8>>an image file: PNG (a drop of a DIB / image/bmp arrives as a BMP file)
bmp: Option<Vec<u8>>(drag out) the same image as a BMP file, offered as DIB / image/bmp too (optional)
app: u32the app’s own kind (DT_USER0 << k bits) and bytes: internal drags only
bytes: Vec<u8>§label: Stringwhat the drag shows next to the pointer inside the app (empty: from the content)
effects: u32drag out: the DE_* effects the source allows (0 = copy | move); a drop: the effect chosen
Implementations§
Trait Implementations§
impl StructuralPartialEq for DragData
Auto Trait Implementations§
impl Forget for DragData
impl Freeze for DragData
impl RefUnwindSafe for DragData
impl Send for DragData
impl Sync for DragData
impl Unpin for DragData
impl UnsafeUnpin for DragData
impl UnwindSafe for DragData
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