pub enum DragCapture {
Press,
PressFocus,
Threshold,
ThresholdPreview,
}Expand description
Primary-pointer capture on a boxed View. Applications provide separate semantic keyboard controls; capture does not invent a control role.
Variants§
Press
Preserve the current actual focus, such as an adjacent text editor.
PressFocus
Focus the View, which must declare Programmatic or TabStop focus.
Threshold
Wry preserves clicks until the pointer moves six CSS pixels, then captures it and routes Drop to the nearest live Drag observer under the pointer.
ThresholdPreview
Like Threshold, with a Wry preview of the source View’s accessible name.
Implementations§
Source§impl DragCapture
impl DragCapture
Trait Implementations§
Source§impl Clone for DragCapture
impl Clone for DragCapture
impl Copy for DragCapture
Source§impl Debug for DragCapture
impl Debug for DragCapture
impl Eq for DragCapture
Source§impl PartialEq for DragCapture
impl PartialEq for DragCapture
impl StructuralPartialEq for DragCapture
Auto Trait Implementations§
impl Forget for DragCapture
impl Freeze for DragCapture
impl Move for DragCapture
impl RefUnwindSafe for DragCapture
impl Send for DragCapture
impl Sync for DragCapture
impl Unpin for DragCapture
impl UnsafeUnpin for DragCapture
impl UnwindSafe for DragCapture
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