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

Method align_to_anchor

src/plot_overlay.rs:83–87  ·  view source on GitHub ↗

Set the overlay position relative to its anchor. For example, `(Horizontal::Center, Vertical::Top)` places the overlay above the anchor with its horizontal center aligned to it.

(mut self, horizontal: Horizontal, vertical: Vertical)

Source from the content-addressed store, hash-verified

81 /// For example, `(Horizontal::Center, Vertical::Top)` places the overlay
82 /// above the anchor with its horizontal center aligned to it.
83 pub fn align_to_anchor(mut self, horizontal: Horizontal, vertical: Vertical) -> Self {
84 self.align_to_anchor_horizontal = horizontal;
85 self.align_to_anchor_vertical = vertical;
86 self
87 }
88
89 /// Set the overlay's horizontal position relative to its anchor.
90 pub fn align_to_anchor_horizontal(mut self, horizontal: Horizontal) -> Self {

Callers 2

bottom_shapesMethod · 0.80
top_shapesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected