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

Method set_selection_padding

src/controls.rs:269–272  ·  view source on GitHub ↗

Set the fractional padding added around box-zoom selections.

(&mut self, padding: f64)

Source from the content-addressed store, hash-verified

267
268 /// Set the fractional padding added around box-zoom selections.
269 pub fn set_selection_padding(&mut self, padding: f64) -> &mut Self {
270 self.selection_padding = padding.max(0.0);
271 self
272 }
273
274 /// Remove all drag bindings for a given action.
275 pub fn remove_drag_action(&mut self, action: DragAction) -> &mut Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected