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

Method bind_click

src/controls.rs:188–191  ·  view source on GitHub ↗

Bind a mouse click trigger to an action.

(&mut self, button: mouse::Button, action: ClickAction)

Source from the content-addressed store, hash-verified

186
187 /// Bind a mouse click trigger to an action.
188 pub fn bind_click(&mut self, button: mouse::Button, action: ClickAction) -> &mut Self {
189 self.click.insert(button, action);
190 self
191 }
192
193 /// Remove a mouse click binding.
194 pub fn unbind_click(&mut self, button: mouse::Button) -> Option<ClickAction> {

Callers 2

defaultMethod · 0.80
set_clickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected