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

Method bind_scroll

src/controls.rs:155–162  ·  view source on GitHub ↗

Bind a scroll trigger to an action.

(
        &mut self,
        modifiers: keyboard::Modifiers,
        action: ScrollAction,
    )

Source from the content-addressed store, hash-verified

153
154 /// Bind a scroll trigger to an action.
155 pub fn bind_scroll(
156 &mut self,
157 modifiers: keyboard::Modifiers,
158 action: ScrollAction,
159 ) -> &mut Self {
160 self.scroll.insert(modifiers, action);
161 self
162 }
163
164 /// Remove a scroll binding.
165 pub fn unbind_scroll(&mut self, modifiers: keyboard::Modifiers) -> Option<ScrollAction> {

Callers 3

defaultMethod · 0.80
newMethod · 0.80
set_scrollMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected