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

Method bind_drag

src/controls.rs:134–137  ·  view source on GitHub ↗

Bind a mouse drag trigger to an action.

(&mut self, button: mouse::Button, action: DragAction)

Source from the content-addressed store, hash-verified

132impl PlotControls {
133 /// Bind a mouse drag trigger to an action.
134 pub fn bind_drag(&mut self, button: mouse::Button, action: DragAction) -> &mut Self {
135 self.drag.insert(button, action);
136 self
137 }
138
139 /// Remove a mouse drag binding.
140 pub fn unbind_drag(&mut self, button: mouse::Button) -> Option<DragAction> {

Callers 3

defaultMethod · 0.80
set_drag_actionMethod · 0.80
set_dragMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected