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

Class HLine

src/reference_lines.rs:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93/// A horizontal line at a fixed y-coordinate.
94#[derive(Debug, Clone)]
95pub struct HLine {
96 /// Unique identifier for the line.
97 pub id: ShapeId,
98 /// The y-coordinate where the horizontal line is drawn.
99 pub y: f64,
100 /// How to interpret or convert the y value before drawing.
101 pub transform: Option<Transform>,
102 /// Optional label for the line (appears in legend if provided).
103 pub label: Option<String>,
104 /// Color of the line.
105 pub color: Color,
106 /// Line styling options, including width and pattern (solid, dashed, dotted).
107 pub line_style: LineStyle,
108}
109
110impl HLine {
111 /// Create a new horizontal line at the given y-coordinate.

Callers 1

resolve_fill_endpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected