Name
ccontext:SetLineCap -- set line cap style
Synopsis
ccontext:SetLineCap(line_cap)
Function
Sets the current line cap style within the Cairo context. The line_cap parameter can be one of the following constants:

#CAIRO_LINE_CAP_BUTT
Start(stop) the line exactly at the start(end) point.
#CAIRO_LINE_CAP_ROUND
Use a round ending, the center of the circle is the end point.
#CAIRO_LINE_CAP_SQUARE
Use squared ending, the center of the square is the end point.

As with the other stroke parameters, the current line cap style is examined by ccontext:Stroke() and ccontext:StrokeExtents(), but does not have any effect during path construction.

The default line cap style is #CAIRO_LINE_CAP_BUTT.

Inputs
line_cap
a line cap style (see above)

Show TOC