MCPcopy Index your code
hub / github.com/emilk/egui_plot / allow_drag

Method allow_drag

egui_plot/src/plot.rs:377–383  ·  view source on GitHub ↗
(mut self, on: T)

Source from the content-addressed store, hash-verified

375 /// The button to use is specified by [`Self::pan_pointer_button`].
376 #[inline]
377 pub fn allow_drag<T>(mut self, on: T) -> Self
378 where
379 T: Into<Vec2b>,
380 {
381 self.allow_drag = on.into();
382 self
383 }
384
385 /// Whether to allow dragging in the axis areas to zoom the plot. Default:
386 /// `true`.

Callers 4

show_plotMethod · 0.80
show_plotMethod · 0.80
show_plotMethod · 0.80
show_plotMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected