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

Function apply_data_aspect

src/plot_widget.rs:1825–1834  ·  view source on GitHub ↗
(camera: &mut Camera, bounds: &Rectangle, aspect: f64)

Source from the content-addressed store, hash-verified

1823#[cfg(feature = "canvas")]
1824impl iced::widget::canvas::Program<PlotUiMessage> for PlotWidget {
1825 type State = PlotState;
1826
1827 fn update(
1828 &self,
1829 state: &mut Self::State,
1830 event: &iced::Event,
1831 bounds: Rectangle,
1832 cursor: mouse::Cursor,
1833 ) -> Option<iced::widget::canvas::Action<PlotUiMessage>> {
1834 update_plot_program::<true>(self, state, event, bounds, cursor)
1835 }
1836
1837 fn draw(

Callers 1

update_plot_programFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected