MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / line_width

Method line_width

canvas/src/context.rs:60–60  ·  view source on GitHub ↗

Sets the line width for the next stroke() operation

(&mut self, width: f32)

Source from the content-addressed store, hash-verified

58
59 /// Sets the line width for the next stroke() operation
60 fn line_width(&mut self, width: f32) { self.draw(Draw::LineWidth(width)); }
61
62 /// Sets the line width for the next stroke() operation in device pixels
63 fn line_width_pixels(&mut self, width: f32) { self.draw(Draw::LineWidthPixels(width)); }

Callers 15

drawMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Implementers 3

font_line_layout.rscanvas/src/font_line_layout.rs
context.rscanvas/src/context.rs
canvas.rscanvas/src/canvas.rs

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected