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

Method line_cap

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

Sets the style of the start and end cap of the next line drawn by the stroke() operation

(&mut self, cap: LineCap)

Source from the content-addressed store, hash-verified

67
68 /// Sets the style of the start and end cap of the next line drawn by the stroke() operation
69 fn line_cap(&mut self, cap: LineCap) { self.draw(Draw::LineCap(cap)); }
70
71 /// Sets the winding rule used to determine if an internal subpath should be filled or empty
72 fn winding_rule(&mut self, winding_rule: WindingRule) { self.draw(Draw::WindingRule(winding_rule)); }

Callers 1

drawMethod · 0.80

Implementers 3

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

Calls 2

LineCapEnum · 0.85
drawMethod · 0.45

Tested by

no test coverage detected