(&mut self, button: mouse::Button, action: DragAction, enabled: bool)
| 82 | } |
| 83 | |
| 84 | fn set_drag(&mut self, button: mouse::Button, action: DragAction, enabled: bool) { |
| 85 | if enabled { |
| 86 | self.widget.get_controls_mut().bind_drag(button, action); |
| 87 | } else { |
| 88 | self.widget.get_controls_mut().unbind_drag(button); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | fn drag_enabled(&self, button: mouse::Button, action: DragAction) -> bool { |
| 93 | self.widget.get_controls().drag_is_bound(button, action) |
no test coverage detected