pub struct DragSession {
pub data: DragDataObject,
pub allowed_effects: DragDropEffects,
/* private fields */
}Fields§
§data: DragDataObject§allowed_effects: DragDropEffectsImplementations§
Source§impl DragSession
impl DragSession
pub fn current_effect(&self) -> DragDropEffects
pub fn is_active(&self) -> bool
pub fn on_completed( &self, callback: impl Fn(DragCompletedEventArgs) + 'static, ) -> &Self
pub fn cancel(&self)
Trait Implementations§
Source§impl Clone for DragSession
impl Clone for DragSession
Source§fn clone(&self) -> DragSession
fn clone(&self) -> DragSession
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for DragSession
impl !Send for DragSession
impl !Sync for DragSession
impl !UnwindSafe for DragSession
impl Freeze for DragSession
impl Unpin for DragSession
impl UnsafeUnpin for DragSession
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