pub struct WINDOWS_DRAG_DROP;
Expand description
Raw drag&drop API.
Implementations§
source§impl WINDOWS_DRAG_DROP
impl WINDOWS_DRAG_DROP
sourcepub fn start_drag_drop(
&self,
window_id: WindowId,
data: Vec<DragDropData>,
allowed_effects: DragDropEffect,
) -> Result<DragDropId, DragDropError>
pub fn start_drag_drop( &self, window_id: WindowId, data: Vec<DragDropData>, allowed_effects: DragDropEffect, ) -> Result<DragDropId, DragDropError>
Request a start of drag&drop from the window.
sourcepub fn drag_dropped(
&self,
window_id: WindowId,
drop_id: DragDropId,
applied: DragDropEffect,
) -> Result<(), WindowNotFound>
pub fn drag_dropped( &self, window_id: WindowId, drop_id: DragDropId, applied: DragDropEffect, ) -> Result<(), WindowNotFound>
Notify the drag source of what effect was applied for a received drag&drop.
Auto Trait Implementations§
impl Freeze for WINDOWS_DRAG_DROP
impl RefUnwindSafe for WINDOWS_DRAG_DROP
impl Send for WINDOWS_DRAG_DROP
impl Sync for WINDOWS_DRAG_DROP
impl Unpin for WINDOWS_DRAG_DROP
impl UnwindSafe for WINDOWS_DRAG_DROP
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more