Interact with and add items to the plot and finally draw it.
(self, ui: &mut Ui, build_fn: impl FnOnce(&mut PlotUi<'a>) -> R + 'a)
| 807 | |
| 808 | /// Interact with and add items to the plot and finally draw it. |
| 809 | pub fn show<R>(self, ui: &mut Ui, build_fn: impl FnOnce(&mut PlotUi<'a>) -> R + 'a) -> PlotResponse<R> { |
| 810 | self.show_dyn(ui, Box::new(build_fn)) |
| 811 | } |
| 812 | |
| 813 | /// Calculate the rect inside which everything will be drawn. |
| 814 | fn calculate_widget_complete_rect(&self, ui: &Ui) -> Rect { |