pub struct Visible<'v> {
pub view: &'v PartView,
pub hidden: &'v [String],
}Expand description
A part as drawn, but what the viewer was told not to draw: what is
seen, which a step editor picks in (see Scene) — the part before
the step, or what the step built, as the viewer shows it.
Fields§
§view: &'v PartViewWhat is not drawn, sorted: crate::editor::SceneState::hidden.
Implementations§
Source§impl<'v> Visible<'v>
impl<'v> Visible<'v>
Sourcepub fn part_to_drag(
&self,
pointer: &Pointer,
) -> Option<(&'v ViewInstance, Scalar)>
pub fn part_to_drag( &self, pointer: &Pointer, ) -> Option<(&'v ViewInstance, Scalar)>
The placed part a drag at pointer moves (see
PartView::part_to_drag), of those drawn.
Trait Implementations§
impl<'v> Copy for Visible<'v>
Source§impl Scene for Visible<'_>
impl Scene for Visible<'_>
Source§fn under(&self, pointer: &Pointer, accepts: &[String]) -> Vec<ElementHit>
fn under(&self, pointer: &Pointer, accepts: &[String]) -> Vec<ElementHit>
Every element of the kinds
accepts under pointer, each once: the
one a click picks first — the smallest, in front, nearest the eye
(see crate::view::PartView::under) — then the rest front to back
along the ray, those hidden behind the first included. Its
Pointer::cycle is not looked at.Source§fn pick(&self, pointer: &Pointer, accepts: &[String]) -> Option<ElementHit>
fn pick(&self, pointer: &Pointer, accepts: &[String]) -> Option<ElementHit>
What a click with
pointer picks: of what lies Scene::under
it, the one its Pointer::cycle names, and where it is hit.Auto Trait Implementations§
impl<'v> !RefUnwindSafe for Visible<'v>
impl<'v> !Send for Visible<'v>
impl<'v> !Sync for Visible<'v>
impl<'v> !UnwindSafe for Visible<'v>
impl<'v> Freeze for Visible<'v>
impl<'v> Unpin for Visible<'v>
impl<'v> UnsafeUnpin for Visible<'v>
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