MCPcopy Create free account
hub / github.com/emilk/egui_plot / translate_bounds

Method translate_bounds

egui_plot/src/plot.rs:1931–1933  ·  view source on GitHub ↗

Move the plot bounds. Can be useful for implementing alternative plot navigation methods.

(&mut self, delta_pos: Vec2)

Source from the content-addressed store, hash-verified

1929 /// Move the plot bounds. Can be useful for implementing alternative plot
1930 /// navigation methods.
1931 pub fn translate_bounds(&mut self, delta_pos: Vec2) {
1932 self.bounds_modifications.push(BoundsModification::Translate(delta_pos));
1933 }
1934
1935 /// Whether the plot axes were in auto-bounds mode in the last frame. If
1936 /// called on the first frame, this is the [`Plot`]'s default

Callers 2

show_plotMethod · 0.45
handle_interactionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected