pub enum Msg {
Select(Option<String>),
PanBy(f32, f32),
ZoomBy(f32),
Fit,
}Expand description
A robot-/CLI-addressable control message (FC-2) — the named boundary a headless
driver (or a host) drives the pane through, the same effect a canvas
click/drag/scroll produces. Applied by DecoratedGraphView::update.
Variants§
Select(Option<String>)
Select a node by stable id (lights its downstream subtree), or None to clear.
PanBy(f32, f32)
Pan the camera by a screen-space delta (the drag gesture).
ZoomBy(f32)
Zoom by a scroll amount (multiplicative, clamped) — the scroll-wheel gesture.
Fit
Reset pan + zoom (the ⊙ fit affordance).
Trait Implementations§
impl StructuralPartialEq for Msg
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
Blanket Implementations§
impl<T> Allocation for T
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