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

Method set_scroll

examples/controls_toggles.rs:96–104  ·  view source on GitHub ↗
(&mut self, modifiers: keyboard::Modifiers, action: ScrollAction, enabled: bool)

Source from the content-addressed store, hash-verified

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

Callers 1

updateMethod · 0.80

Calls 3

bind_scrollMethod · 0.80
get_controls_mutMethod · 0.80
unbind_scrollMethod · 0.80

Tested by

no test coverage detected