pub struct Visual<S: Scalar> {
pub key: String,
pub shape: Shape<S>,
pub style: Style,
pub selectable: bool,
pub draggable: bool,
}Expand description
Something an operation draws in the viewport, under a key the hit tests
report (see super::hit::hit_visuals) — and what the user can do with
it, which the editor handles alike for every operation (see
super::StepEditor).
Fields§
§key: String§shape: Shape<S>§style: Style§selectable: boolA click on it selects it, or takes it out of the selection again.
draggable: boolIt can be dragged in the plane worked in: the operation is sent
where to (see super::CanvasEvent::Move).
Implementations§
Trait Implementations§
impl<S: PartialEq + Scalar> StructuralPartialEq for Visual<S>
Auto Trait Implementations§
impl<S> Freeze for Visual<S>where
S: Freeze,
impl<S> RefUnwindSafe for Visual<S>where
S: RefUnwindSafe,
impl<S> Send for Visual<S>
impl<S> Sync for Visual<S>
impl<S> Unpin for Visual<S>where
S: Unpin,
impl<S> UnsafeUnpin for Visual<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Visual<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