MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / DragEvent

Enum DragEvent

src/message.rs:88–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86/// Drag interaction event in data/world coordinates.
87#[derive(Debug, Clone, Copy)]
88pub enum DragEvent {
89 /// A drag gesture started inside the plot.
90 Start {
91 /// Mouse button that initiated the drag stream.
92 button: iced::mouse::Button,
93 /// Current cursor world/data coordinate.
94 world: [f64; 2],
95 },
96 /// Cursor moved while drag is active.
97 Update {
98 /// Mouse button that initiated the drag stream.
99 button: iced::mouse::Button,
100 /// Current cursor world/data coordinate.
101 world: [f64; 2],
102 },
103 /// Active drag gesture ended.
104 End {
105 /// Mouse button that initiated the drag stream.
106 button: iced::mouse::Button,
107 /// Current cursor world/data coordinate.
108 world: [f64; 2],
109 },
110}
111
112#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
113/// Identifier for a point in a series.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected