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

Method line_width_pixels

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

Sets the line width for the next stroke() operation in device pixels

(&mut self, width: f32)

Source from the content-addressed store, hash-verified

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)); }
64
65 /// Sets the line join style for the next stroke() operation
66 fn line_join(&mut self, join: LineJoin) { self.draw(Draw::LineJoin(join)); }

Callers 4

drawMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
section_badgeFunction · 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