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

Method set_view

src/picking.rs:521–525  ·  view source on GitHub ↗
(&mut self, w: u32, h: u32, scale: f32)

Source from the content-addressed store, hash-verified

519 }
520
521 pub(crate) fn set_view(&mut self, w: u32, h: u32, scale: f32) {
522 self.size_w = w.max(1);
523 self.size_h = h.max(1);
524 self.scale_factor = scale;
525 }
526
527 pub(crate) fn set_id_map(&mut self, map: Vec<(u32, u32)>) {
528 self.id_map = map;

Callers 1

prepare_frameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected