Bind a mouse drag trigger to an action.
(&mut self, button: mouse::Button, action: DragAction)
| 132 | impl 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> { |
no outgoing calls
no test coverage detected