Skip to main content

jellyflow_runtime/runtime/events/
gesture.rs

1use serde::{Deserialize, Serialize};
2
3use super::{
4    ConnectEnd, ConnectStart, NodeDragEnd, NodeDragStart, NodeDragUpdate, NodeResizeEnd,
5    NodeResizeStart, NodeResizeUpdate, ViewportMove, ViewportMoveEnd, ViewportMoveStart,
6};
7
8/// Transient UI gesture event emitted to gesture subscribers.
9#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
10#[serde(tag = "kind", content = "data", rename_all = "snake_case")]
11pub enum NodeGraphGestureEvent {
12    ConnectStart(ConnectStart),
13    ConnectEnd(ConnectEnd),
14    NodeDragStart(NodeDragStart),
15    NodeDragUpdate(NodeDragUpdate),
16    NodeDragEnd(NodeDragEnd),
17    NodeResizeStart(NodeResizeStart),
18    NodeResizeUpdate(NodeResizeUpdate),
19    NodeResizeEnd(NodeResizeEnd),
20    ViewportMoveStart(ViewportMoveStart),
21    ViewportMove(ViewportMove),
22    ViewportMoveEnd(ViewportMoveEnd),
23}