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

Method set_double_click

examples/controls_toggles.rs:124–132  ·  view source on GitHub ↗
(&mut self, button: mouse::Button, action: ClickAction, enabled: bool)

Source from the content-addressed store, hash-verified

122 }
123
124 fn set_double_click(&mut self, button: mouse::Button, action: ClickAction, enabled: bool) {
125 if enabled {
126 self.widget
127 .get_controls_mut()
128 .bind_double_click(button, action);
129 } else {
130 self.widget.get_controls_mut().unbind_double_click(button);
131 }
132 }
133
134 fn double_click_enabled(&self, button: mouse::Button, action: ClickAction) -> bool {
135 self.widget

Callers 1

updateMethod · 0.80

Calls 3

bind_double_clickMethod · 0.80
get_controls_mutMethod · 0.80
unbind_double_clickMethod · 0.80

Tested by

no test coverage detected