pub struct DragSourceResponse<R> {
pub inner: R,
pub response: Response,
pub drag_started: bool,
}Expand description
Response from a drag source
Fields§
§inner: RThe return value from the content closure
response: ResponseThe egui response
drag_started: boolWhether a drag was started this frame
Implementations§
Source§impl<R> DragSourceResponse<R>
impl<R> DragSourceResponse<R>
Sourcepub fn on_drag_start<Msg>(self, ctx: &mut ViewCtx<'_, Msg>, msg: Msg) -> Self
pub fn on_drag_start<Msg>(self, ctx: &mut ViewCtx<'_, Msg>, msg: Msg) -> Self
Emit a message when drag starts
Sourcepub fn map<U>(self, f: impl FnOnce(R) -> U) -> DragSourceResponse<U>
pub fn map<U>(self, f: impl FnOnce(R) -> U) -> DragSourceResponse<U>
Map the inner value
Auto Trait Implementations§
impl<R> Freeze for DragSourceResponse<R>where
R: Freeze,
impl<R> !RefUnwindSafe for DragSourceResponse<R>
impl<R> Send for DragSourceResponse<R>where
R: Send,
impl<R> Sync for DragSourceResponse<R>where
R: Sync,
impl<R> Unpin for DragSourceResponse<R>where
R: Unpin,
impl<R> UnsafeUnpin for DragSourceResponse<R>where
R: UnsafeUnpin,
impl<R> !UnwindSafe for DragSourceResponse<R>
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