An Iced element anchored to a plot position and overlaid on the plot.
| 12 | |
| 13 | /// An Iced element anchored to a plot position and overlaid on the plot. |
| 14 | pub 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 | |
| 24 | impl<'a, Message> PlotOverlay<'a, Message> { |
| 25 | /// Create an external Iced element anchored at a plot position. |
nothing calls this directly
no outgoing calls
no test coverage detected