pub struct Presentation<S: Scalar> {
pub dialog: Dialog<S>,
pub visuals: Vec<Visual<S>>,
pub highlights: Vec<EntityRef>,
pub pickable: Vec<Role>,
pub focus: Option<CoordinateSystem<S>>,
pub grab: bool,
}Expand description
What an editor shows for a step being edited: the operation’s
[Form], and what the editor adds to it — what is picked, selected and
hovered, what a click would pick, and the handles of number fields.
Fields§
§dialog: Dialog<S>§visuals: Vec<Visual<S>>§highlights: Vec<EntityRef>Entities of the part to draw lit: what is picked, what a click would pick.
pickable: Vec<Role>What a click in the viewport picks right now: entities that can fill one of these roles. The viewer shows datums that can, and fades the rest.
focus: Option<CoordinateSystem<S>>A plane to work in, its u/v plane: the viewer faces it head on,
stops orbiting, and draws a grid on it.
grab: boolWhether a press where the pointer last hovered starts a drag (sent
as super::StepEditEvent::Drag) rather than moving the camera.
Trait Implementations§
Source§impl<S: Clone + Scalar> Clone for Presentation<S>
impl<S: Clone + Scalar> Clone for Presentation<S>
Source§fn clone(&self) -> Presentation<S>
fn clone(&self) -> Presentation<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 Presentation<S>
impl<S: PartialEq + Scalar> PartialEq for Presentation<S>
Source§fn eq(&self, other: &Presentation<S>) -> bool
fn eq(&self, other: &Presentation<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S> Serialize for Presentation<S>where
S: Scalar,
impl<S> Serialize for Presentation<S>where
S: Scalar,
impl<S: PartialEq + Scalar> StructuralPartialEq for Presentation<S>
Auto Trait Implementations§
impl<S> Freeze for Presentation<S>where
S: Freeze,
impl<S> RefUnwindSafe for Presentation<S>where
S: RefUnwindSafe,
impl<S> Send for Presentation<S>
impl<S> Sync for Presentation<S>
impl<S> Unpin for Presentation<S>where
S: Unpin,
impl<S> UnsafeUnpin for Presentation<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Presentation<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