pub enum StepEditEvent<S: Scalar> {
Dialog {
key: String,
value: Value,
},
Hover {
pointer: Pointer<S>,
},
Leave,
Click {
pointer: Pointer<S>,
button: Button,
double: bool,
shift: bool,
},
Drag {
from: Pointer<S>,
to: Pointer<S>,
done: bool,
},
Key {
key: String,
},
}Expand description
One thing the user did while editing a step.
Variants§
Dialog
The dialog field key was used.
Hover
The pointer moved over the viewport with no button held.
Leave
The pointer left the viewport.
Click
A click in the viewport: a press and release without moving.
Drag
A drag with the primary button that started where the last
presentation offered a grab (see super::Presentation::grab): the
ray where it went down and the ray where the pointer is now. done
on release.
Key
A key, as the browser names it: l, Escape, Enter, Delete.
Implementations§
Trait Implementations§
Source§impl<S: Clone + Scalar> Clone for StepEditEvent<S>
impl<S: Clone + Scalar> Clone for StepEditEvent<S>
Source§fn clone(&self) -> StepEditEvent<S>
fn clone(&self) -> StepEditEvent<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<'de, S> Deserialize<'de> for StepEditEvent<S>where
S: Scalar,
impl<'de, S> Deserialize<'de> for StepEditEvent<S>where
S: Scalar,
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
Source§impl<S: PartialEq + Scalar> PartialEq for StepEditEvent<S>
impl<S: PartialEq + Scalar> PartialEq for StepEditEvent<S>
Source§fn eq(&self, other: &StepEditEvent<S>) -> bool
fn eq(&self, other: &StepEditEvent<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S> Serialize for StepEditEvent<S>where
S: Scalar,
impl<S> Serialize for StepEditEvent<S>where
S: Scalar,
impl<S: PartialEq + Scalar> StructuralPartialEq for StepEditEvent<S>
Auto Trait Implementations§
impl<S> Freeze for StepEditEvent<S>where
S: Freeze,
impl<S> RefUnwindSafe for StepEditEvent<S>where
S: RefUnwindSafe,
impl<S> Send for StepEditEvent<S>
impl<S> Sync for StepEditEvent<S>
impl<S> Unpin for StepEditEvent<S>where
S: Unpin,
impl<S> UnsafeUnpin for StepEditEvent<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StepEditEvent<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