#[repr(C, u8)]pub enum DragType {
TextSelection(TextSelectionDrag),
ScrollbarThumb(ScrollbarThumbDrag),
Node(NodeDrag),
WindowMove(WindowMoveDrag),
WindowResize(WindowResizeDrag),
FileDrop(FileDropDrag),
}Expand description
Type of the active drag operation.
This enum unifies all drag types into a single discriminated union, making it easy to handle different drag behaviors in one place.
Variants§
TextSelection(TextSelectionDrag)
Text selection drag - user is selecting text by dragging
ScrollbarThumb(ScrollbarThumbDrag)
Scrollbar thumb drag - user is dragging a scrollbar thumb
Node(NodeDrag)
Node drag-and-drop - user is dragging a DOM node
WindowMove(WindowMoveDrag)
Window drag - user is moving the window (titlebar drag)
WindowResize(WindowResizeDrag)
Window resize - user is resizing the window (edge/corner drag)
FileDrop(FileDropDrag)
File drop from OS - user is dragging file(s) from the OS
Trait Implementations§
Source§impl Clone for ActiveDragType
impl Clone for ActiveDragType
Source§fn clone(&self) -> ActiveDragType
fn clone(&self) -> ActiveDragType
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 ActiveDragType
impl Debug for ActiveDragType
Source§impl PartialEq for ActiveDragType
impl PartialEq for ActiveDragType
impl StructuralPartialEq for ActiveDragType
Auto Trait Implementations§
impl Freeze for ActiveDragType
impl RefUnwindSafe for ActiveDragType
impl Send for ActiveDragType
impl Sync for ActiveDragType
impl Unpin for ActiveDragType
impl UnwindSafe for ActiveDragType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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