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

Method with_anchor_position

src/plot_overlay.rs:42–45  ·  view source on GitHub ↗

Set the plot position (in `[x,y]` coordinates) used as the overlay anchor.

(mut self, anchor_position: [f64; 2])

Source from the content-addressed store, hash-verified

40
41 /// Set the plot position (in `[x,y]` coordinates) used as the overlay anchor.
42 pub fn with_anchor_position(mut self, anchor_position: [f64; 2]) -> Self {
43 self.anchor_position = anchor_position;
44 self
45 }
46
47 /// Set a pixel offset applied after anchor projection.
48 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected