pub enum CanvasEvent<S: Scalar> {
Hover {
pointer: Pointer<S>,
},
Leave,
Click {
pointer: Pointer<S>,
button: Button,
double: bool,
shift: bool,
},
Move {
key: String,
from: Vector3<S>,
to: Vector3<S>,
done: bool,
},
Key {
key: String,
},
}Expand description
A pointer or key event the editor passes on to an operation, having
taken what is its own: picks, selecting, dragging handles (see
super::StepEditor).
Variants§
Hover
The pointer moved over the viewport with no button held.
Leave
The pointer left the viewport.
Click
A click that selected nothing: a secondary one, a double one, one while the operation has a tool in hand, one on nothing selectable.
Move
The draggable visual key dragged in the plane worked in, from
where it was grabbed to where the pointer is now. done on release.
Key
A key, as the browser names it.
Trait Implementations§
Source§impl<S: Clone + Scalar> Clone for CanvasEvent<S>
impl<S: Clone + Scalar> Clone for CanvasEvent<S>
Source§fn clone(&self) -> CanvasEvent<S>
fn clone(&self) -> CanvasEvent<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: PartialEq + Scalar> PartialEq for CanvasEvent<S>
impl<S: PartialEq + Scalar> PartialEq for CanvasEvent<S>
Source§fn eq(&self, other: &CanvasEvent<S>) -> bool
fn eq(&self, other: &CanvasEvent<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<S: PartialEq + Scalar> StructuralPartialEq for CanvasEvent<S>
Auto Trait Implementations§
impl<S> Freeze for CanvasEvent<S>where
S: Freeze,
impl<S> RefUnwindSafe for CanvasEvent<S>where
S: RefUnwindSafe,
impl<S> Send for CanvasEvent<S>
impl<S> Sync for CanvasEvent<S>
impl<S> Unpin for CanvasEvent<S>where
S: Unpin,
impl<S> UnsafeUnpin for CanvasEvent<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for CanvasEvent<S>where
S: UnwindSafe,
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