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

Method get

src/axis_link.rs:27–30  ·  view source on GitHub ↗

Get the current position and half extent

(&self)

Source from the content-addressed store, hash-verified

25
26 /// Get the current position and half extent
27 pub fn get(&self) -> (f64, f64, u64) {
28 let inner = self.inner.read().unwrap();
29 (inner.position, inner.half_extent, inner.version)
30 }
31
32 /// Update the position and half extent, incrementing the version
33 pub fn set(&self, position: f64, half_extent: f64) {

Callers 15

rebuild_from_widgetMethod · 0.80
resolve_fill_endpointFunction · 0.80
y_at_x_in_segmentFunction · 0.80
drag_actionMethod · 0.80
scroll_actionMethod · 0.80
scroll_is_boundMethod · 0.80
click_actionMethod · 0.80
double_click_actionMethod · 0.80
key_actionMethod · 0.80
cpu_pick_hitFunction · 0.80
point_positionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected