Package: cairo

Function cairo:line-cap

Lambda List

cairo:line-cap (cr)

Syntax

(cairo:line-cap cr) => cap
(setf (cairo:line-cap cr) cap)

Arguments

cr -- a cairo:context-t instance
cap -- a cairo:line-cap-t value for the line cap style

Details

The cairo:line-cap function gets the current line cap style within the Cairo context. The (setf cairo:line-cap) function sets the current line cap style. See the cairo:line-cap-t enumeration 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 the cairo:stroke and cairo:stroke-extents functions, but does not have any effect during path construction.

The default line cap style is the :butt value.
 

See also

2025-1-2