pub struct DragCursorFor<'a> { /* private fields */ }Expand description
The cursor a draggable asks for (drag_cursor), shown when it is
dropped. Its settings are the most specific level: they win over the
pointer profile’s and the kit’s.
Implementations§
Source§impl DragCursorFor<'_>
impl DragCursorFor<'_>
Sourcepub fn clicks(self, clicks: bool) -> Self
pub fn clicks(self, clicks: bool) -> Self
Whether a click or a double click on it does something (by
default, whether the response senses clicks): with
HoverPolicy::OnlyAction, the hover cursor shows only when it
does not.
Sourcepub fn hover(self, cursor: CursorIcon) -> Self
pub fn hover(self, cursor: CursorIcon) -> Self
The cursor shown hovered, when the policy shows one.
Sourcepub fn hover_policy(self, policy: HoverPolicy) -> Self
pub fn hover_policy(self, policy: HoverPolicy) -> Self
When the hover cursor shows.
Trait Implementations§
Source§impl<'a> Debug for DragCursorFor<'a>
impl<'a> Debug for DragCursorFor<'a>
Auto Trait Implementations§
impl<'a> Freeze for DragCursorFor<'a>
impl<'a> !RefUnwindSafe for DragCursorFor<'a>
impl<'a> Send for DragCursorFor<'a>
impl<'a> Sync for DragCursorFor<'a>
impl<'a> Unpin for DragCursorFor<'a>
impl<'a> UnsafeUnpin for DragCursorFor<'a>
impl<'a> !UnwindSafe for DragCursorFor<'a>
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
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