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

Method with_width

src/reference_lines.rs:64–67  ·  view source on GitHub ↗

Set the line width in pixels.

(mut self, width: f32)

Source from the content-addressed store, hash-verified

62
63 /// Set the line width in pixels.
64 pub fn with_width(mut self, width: f32) -> Self {
65 self.line_style.width = Size::Pixels(width.max(0.5));
66 self
67 }
68
69 /// Set the line width in world units.
70 pub fn with_width_world(mut self, width: f64) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected