Context.setLineCap

Sets the current line cap style within the cairo context. See #cairo_line_cap_t for details about how the available line cap styles are drawn.

As with the other stroke parameters, the current line cap style is examined by cairo.context.Context.stroke, and cairo.context.Context.strokeExtents, but does not have any effect during path construction.

The default line cap style is cairo.types.LineCap.Butt.

class Context
void
setLineCap

Parameters

lineCap cairo.types.LineCap

a line cap style