pub enum StepEditEvent {
Dialog {
key: String,
value: Value,
},
Hover {
pointer: Pointer,
shift: bool,
},
Leave,
Click {
pointer: Pointer,
double: bool,
shift: bool,
},
Drag {
from: Pointer,
to: Pointer,
done: bool,
shift: bool,
},
SelectBox {
corners: Box<[Pointer; 4]>,
crossing: bool,
add: bool,
},
Key {
key: String,
},
View {
up: Vector3,
},
}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 — shift
held or not, which turns snapping off.
Leave
The pointer left the viewport.
Click
A click in the viewport: a press and release of the primary button
without moving. (The secondary button’s click is no event of its
own: it steps the pointer’s Pointer::cycle.)
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.
SelectBox
A box drawn by a drag with the primary button from where the last
presentation offered no grab, while it offered a box (see
super::Presentation::select_box): the rays through its corners,
in order round it, released. crossing — drawn right to left — it
selects what it touches, else what lies wholly in it; add — Shift
or Ctrl held — it adds to the selection rather than replacing it.
Key
A key, as the browser names it: l, Escape, Enter, Delete.
View
The view settled: up is the direction in the world that points up
the screen. Sent when the camera comes to rest and when the pointer
enters the viewport, so a step can name what it shows as it is seen
(a sketch’s horizontal is the screen’s).
Implementations§
Source§impl StepEditEvent
impl StepEditEvent
Sourcepub fn moved(&self, motion: &Motion) -> GeopResult<Self>
pub fn moved(&self, motion: &Motion) -> GeopResult<Self>
The event with its pointers moved by motion (see
Pointer::moved); one without a pointer, as it is.
Trait Implementations§
Source§impl Clone for StepEditEvent
impl Clone for StepEditEvent
Source§fn clone(&self) -> StepEditEvent
fn clone(&self) -> StepEditEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more