Function Context.setLineCap

Sets the current line cap style within the cairo context. See LineCap 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 stroke(), strokeExtents() and strokeToPath(), but does not have any effect during path construction.

The default line cap style is CAIRO_LINE_CAP_BUTT.

Prototype

void setLineCap(
  cairo_line_cap_t cap
);

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1