pub enum DockDrag {
ModifierDocks,
ModifierFloats,
Dwell,
}Expand description
What a plain drag of a floating palette does, and what the dock keys
(gesture.workbench.dock) change (docs/design/drag-move-vs-dock.md).
Variants§
ModifierDocks
A plain drag only moves; the dock keys held show the targets and dock (egui-pop’s default).
ModifierFloats
A plain drag docks over a target; the dock keys held keep the palette floating (Photoshop, Visual Studio).
Dwell
Docking arms once the pointer rested on a target for a moment (touch and pen, with no key at hand).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DockDrag
impl<'de> Deserialize<'de> for DockDrag
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
impl Copy for DockDrag
impl Eq for DockDrag
impl StructuralPartialEq for DockDrag
Auto Trait Implementations§
impl Freeze for DockDrag
impl RefUnwindSafe for DockDrag
impl Send for DockDrag
impl Sync for DockDrag
impl Unpin for DockDrag
impl UnsafeUnpin for DockDrag
impl UnwindSafe for DockDrag
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