pub struct DragDataBuilder { /* private fields */ }Expand description
Builder for DragData.
Implementations§
Source§impl DragDataBuilder
impl DragDataBuilder
pub fn items<VALUE: Into<Vec<DragDataItem>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn files<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn files<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
List of filenames that should be included when dropping
Sourcepub fn drag_operations_mask<VALUE: Into<JsUInt>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn drag_operations_mask<VALUE: Into<JsUInt>>( &mut self, value: VALUE, ) -> &mut Self
Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
Trait Implementations§
Source§impl Clone for DragDataBuilder
impl Clone for DragDataBuilder
Source§fn clone(&self) -> DragDataBuilder
fn clone(&self) -> DragDataBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DragDataBuilder
impl RefUnwindSafe for DragDataBuilder
impl Send for DragDataBuilder
impl Sync for DragDataBuilder
impl Unpin for DragDataBuilder
impl UnsafeUnpin for DragDataBuilder
impl UnwindSafe for DragDataBuilder
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