pub struct DragCursor {
pub hover: String,
pub drag: String,
pub policy: Option<HoverPolicy>,
}Expand description
The cursors of a drag kind: hovered, and while dragging (kept until
the drag ends, wherever the pointer goes), and when the hover one
shows. Names from CURSOR_NAMES; in a kit or a profile, an empty
or unknown name and no policy keep the level below’s
(DragCursor::over).
Fields§
§hover: StringOver what can be dragged, nothing being dragged; default asks
for none (the arrow, or what another widget asks for).
drag: StringWhile dragging.
policy: Option<HoverPolicy>When the hover cursor shows (HoverPolicy).
Implementations§
Source§impl DragCursor
impl DragCursor
Sourcepub fn over(self, over: &DragCursor) -> DragCursor
pub fn over(self, over: &DragCursor) -> DragCursor
self with what over gives on top: each of its names that is
one of CURSOR_NAMES, its policy if it has one. How each level
(the kind’s own, the kit’s, the profile’s) overrides the one
below.
Sourcepub fn hover_policy(&self) -> HoverPolicy
pub fn hover_policy(&self) -> HoverPolicy
Its policy, the default one when it has none.
Trait Implementations§
Source§impl Clone for DragCursor
impl Clone for DragCursor
Source§fn clone(&self) -> DragCursor
fn clone(&self) -> DragCursor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DragCursor
impl Debug for DragCursor
Source§impl Default for DragCursor
impl Default for DragCursor
Source§fn default() -> DragCursor
fn default() -> DragCursor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DragCursorwhere
DragCursor: Default,
impl<'de> Deserialize<'de> for DragCursorwhere
DragCursor: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DragCursor
impl Hash for DragCursor
Source§impl PartialEq for DragCursor
impl PartialEq for DragCursor
Source§impl Serialize for DragCursor
impl Serialize for DragCursor
impl Eq for DragCursor
impl StructuralPartialEq for DragCursor
Auto Trait Implementations§
impl Freeze for DragCursor
impl RefUnwindSafe for DragCursor
impl Send for DragCursor
impl Sync for DragCursor
impl Unpin for DragCursor
impl UnsafeUnpin for DragCursor
impl UnwindSafe for DragCursor
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