(&mut self, modifiers: keyboard::Modifiers, action: ScrollAction, enabled: bool)
| 94 | } |
| 95 | |
| 96 | fn set_scroll(&mut self, modifiers: keyboard::Modifiers, action: ScrollAction, enabled: bool) { |
| 97 | if enabled { |
| 98 | self.widget |
| 99 | .get_controls_mut() |
| 100 | .bind_scroll(modifiers, action); |
| 101 | } else { |
| 102 | self.widget.get_controls_mut().unbind_scroll(modifiers); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | fn scroll_enabled(&self, modifiers: keyboard::Modifiers, action: ScrollAction) -> bool { |
| 107 | self.widget |
no test coverage detected