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

Enum KeyAction

src/controls.rs:71–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69/// Action that can be performed by a key press.
70#[derive(Debug, Clone, Copy, PartialEq)]
71pub enum KeyAction {
72 /// Reset/autoscale the plot.
73 Autoscale,
74
75 /// Clear picked points.
76 ClearPick,
77
78 /// Pan by a fraction of the current visible camera span.
79 PanBy {
80 /// Direction to pan.
81 direction: PanDirection,
82
83 /// Fraction of the visible camera span to pan.
84 fraction: f64,
85 },
86}
87
88/// Direction for keyboard-style panning.
89#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected