pub struct DragTool { /* private fields */ }Expand description
The drag tool, in hand: the placed part the pointer is over, and the one being dragged.
Implementations§
Trait Implementations§
Source§impl Tool for DragTool
impl Tool for DragTool
Source§fn handle(
&mut self,
ctx: &mut EditorContext<'_>,
event: &StepEditEvent,
) -> GeopResult<Changed>
fn handle( &mut self, ctx: &mut EditorContext<'_>, event: &StepEditEvent, ) -> GeopResult<Changed>
An event in the viewport: a hover finds the placed part a press would grab, a drag pulls the point grabbed towards the pointer — in the plane through it facing the eye — and solves the program’s mates with that pull, every part that is not fixed free to give way. A drag, once released, is one edit to undo.
Source§fn presentation(&self) -> Presentation
fn presentation(&self) -> Presentation
What it shows: the part it would drag, or drags, lit — and that a press grabs it.
Source§fn inspection(
&mut self,
_ctx: &mut EditorContext<'_>,
) -> Result<Option<Inspection>, GeopError>
fn inspection( &mut self, _ctx: &mut EditorContext<'_>, ) -> Result<Option<Inspection>, GeopError>
What it answers about the part, with every update while it is in
hand: nothing, unless it says otherwise.
Auto Trait Implementations§
impl Freeze for DragTool
impl RefUnwindSafe for DragTool
impl Send for DragTool
impl Sync for DragTool
impl Unpin for DragTool
impl UnsafeUnpin for DragTool
impl UnwindSafe for DragTool
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