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

Class PlotOverlay

src/plot_overlay.rs:14–22  ·  view source on GitHub ↗

An Iced element anchored to a plot position and overlaid on the plot.

Source from the content-addressed store, hash-verified

12
13/// An Iced element anchored to a plot position and overlaid on the plot.
14pub struct PlotOverlay<'a, Message> {
15 pub(crate) element: Element<'a, Message>,
16 pub(crate) anchor_position: [f64; 2],
17 pub(crate) anchor_position_transform: PositionTransform,
18 /// Pixel offset applied after anchor projection. Positive x moves right; positive y moves up.
19 pub(crate) anchor_offset: [f32; 2],
20 pub(crate) align_to_anchor_vertical: Vertical,
21 pub(crate) align_to_anchor_horizontal: Horizontal,
22}
23
24impl<'a, Message> PlotOverlay<'a, Message> {
25 /// Create an external Iced element anchored at a plot position.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected