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

Method set_click

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

Source from the content-addressed store, hash-verified

110 }
111
112 fn set_click(&mut self, button: mouse::Button, action: ClickAction, enabled: bool) {
113 if enabled {
114 self.widget.get_controls_mut().bind_click(button, action);
115 } else {
116 self.widget.get_controls_mut().unbind_click(button);
117 }
118 }
119
120 fn click_enabled(&self, button: mouse::Button, action: ClickAction) -> bool {
121 self.widget.get_controls().click_is_bound(button, action)

Callers 1

updateMethod · 0.80

Calls 3

bind_clickMethod · 0.80
get_controls_mutMethod · 0.80
unbind_clickMethod · 0.80

Tested by

no test coverage detected