pub struct Presentation {Show 13 fields
pub dialog: Dialog,
pub layout: Layout,
pub visuals: Vec<Visual>,
pub highlights: Vec<PickedElement>,
pub pickable: Vec<String>,
pub focus: Option<CoordinateSystem>,
pub sheet: Option<Extent>,
pub grab: bool,
pub select_box: bool,
pub prompt: Option<Prompt>,
pub gizmo: Option<GizmoView>,
pub hidden: Vec<String>,
pub cycle: Option<Cycle>,
}Expand description
What an editor shows for a step being edited: the operation’s
super::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§layout: LayoutWhere the dialog is shown (see Layout).
visuals: Vec<Visual>§highlights: Vec<PickedElement>Elements of the part to draw lit: what is picked, what a click would
pick. Not sent: the editor sends what they light
(crate::editor::Update::lit).
pickable: Vec<String>What a click in the viewport picks right now: elements of these kinds.
focus: Option<CoordinateSystem>A plane to work in, its u/v plane: the viewer faces it head on,
stops orbiting, and draws a grid on it.
sheet: Option<Extent>A sheet of its own the step is edited on, in focus, and how far
it reaches: the viewer shows the visuals alone, framed to it, and
is sent no part to draw (see super::Form::sheet).
grab: boolWhether a press where the pointer last hovered starts a drag (sent
as super::StepEditEvent::Drag) rather than moving the camera.
select_box: boolWhether a press where the pointer last hovered, offering no grab,
draws a selection box when dragged (sent as
super::StepEditEvent::SelectBox) rather than doing nothing.
prompt: Option<Prompt>A value asked for in place.
gizmo: Option<GizmoView>The gizmo to move, turn or scale by, as drawn.
Solids and faces of the part, by name, the step asks not to draw
while it is edited (see super::Form::hidden).
cycle: Option<Cycle>Which of what lies under the pointer is lit, and of how many: what
a front end says while its user steps through them (see
super::Pointer::cycle). None where the pointer is over nothing
a click takes.
Implementations§
Source§impl Presentation
impl Presentation
Sourcepub fn placed(self, instance: &str, motion: &Motion) -> GeopResult<Self>
pub fn placed(self, instance: &str, motion: &Motion) -> GeopResult<Self>
The presentation of a step of the part placed as instance in the
part drawn, motion where it is placed: what it draws, its gizmo,
its prompt and its plane moved there, and what it lights the same
elements of that instance. What it asks to hide is of its own part,
which is drawn as an instance: it is drawn.
Trait Implementations§
Source§impl Clone for Presentation
impl Clone for Presentation
Source§fn clone(&self) -> Presentation
fn clone(&self) -> Presentation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more