pub enum DragContent {
Text(String),
Uris(Vec<String>),
}Expand description
What a drag carries to and from other programs:
Button::drag_content gives it, and
Button::on_drop_content takes it.
Variants§
Text(String)
Text, offered as text/plain;charset=utf-8 and UTF8_STRING.
Uris(Vec<String>)
URIs, such as file:///home/me/a.png, offered as text/uri-list.
Trait Implementations§
Source§impl Clone for DragContent
impl Clone for DragContent
Source§impl Debug for DragContent
impl Debug for DragContent
impl Eq for DragContent
Source§impl PartialEq for DragContent
impl PartialEq for DragContent
impl StructuralPartialEq for DragContent
Auto Trait Implementations§
impl Forget for DragContent
impl Freeze for DragContent
impl Move for DragContent
impl RefUnwindSafe for DragContent
impl Send for DragContent
impl Sync for DragContent
impl Unpin for DragContent
impl UnsafeUnpin for DragContent
impl UnwindSafe for DragContent
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