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

Method with_anchor_offset

src/plot_overlay.rs:50–53  ·  view source on GitHub ↗

Set a pixel offset applied after anchor projection. Positive x moves the overlay right; positive y moves it up.

(mut self, anchor_offset: [f32; 2])

Source from the content-addressed store, hash-verified

48 ///
49 /// Positive x moves the overlay right; positive y moves it up.
50 pub fn with_anchor_offset(mut self, anchor_offset: [f32; 2]) -> Self {
51 self.anchor_offset = anchor_offset;
52 self
53 }
54
55 /// Set how the overlay anchor position is transformed before placement.
56 pub fn with_transform(mut self, transform: PositionTransform) -> Self {

Callers 1

top_shapesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected