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

Class VLine

src/reference_lines.rs:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3/// A vertical line at a fixed x-coordinate.
4#[derive(Debug, Clone)]
5pub struct VLine {
6 /// Unique identifier for the line.
7 pub id: ShapeId,
8 /// The x-coordinate where the vertical line is drawn.
9 pub x: f64,
10 /// How to interpret or convert the x value before drawing.
11 pub transform: Option<Transform>,
12 /// Optional label for the line (appears in legend if provided).
13 pub label: Option<String>,
14 /// Color of the line.
15 pub color: Color,
16 /// Line styling options, including width and pattern (solid, dashed, dotted).
17 pub line_style: LineStyle,
18}
19
20impl VLine {
21 /// Create a new vertical line at the given x-coordinate.

Callers 1

resolve_fill_endpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected