pub struct StagedDrag { /* private fields */ }Expand description
A drag placed by hand rather than by a pointer.
A still image cannot photograph a gesture, and a capture that waited for a real drag would race the pointer and the spring. Staging puts the system into one fixed state so a scene renders the same pixels every run.
Implementations§
Source§impl StagedDrag
impl StagedDrag
pub fn new(item: DragItem) -> Self
Sourcepub fn landing(
self,
surface: impl Into<SharedString>,
position: DropPosition,
slot: Option<usize>,
accepted: bool,
) -> Self
pub fn landing( self, surface: impl Into<SharedString>, position: DropPosition, slot: Option<usize>, accepted: bool, ) -> Self
Where the staged drag would land. slot is how many rows precede the
insertion point, which is what decides the rows that slide aside.
Trait Implementations§
Source§impl Clone for StagedDrag
impl Clone for StagedDrag
Source§fn clone(&self) -> StagedDrag
fn clone(&self) -> StagedDrag
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 Freeze for StagedDrag
impl RefUnwindSafe for StagedDrag
impl Send for StagedDrag
impl Sync for StagedDrag
impl Unpin for StagedDrag
impl UnsafeUnpin for StagedDrag
impl UnwindSafe for StagedDrag
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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