GskLineCap

Specifies how to render the start and end points of contours or dashes when stroking.

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

New entries may be added in future versions.

<figure> <picture> <source srcset="caps-dark.png" media="(prefers-color-scheme: dark)"> <img alt="Line Cap Styles" src="caps-light.png"> </picture> <figcaption>GSK_LINE_CAP_BUTT, GSK_LINE_CAP_ROUND, GSK_LINE_CAP_SQUARE</figcaption> </figure>

Values

ValueMeaning
Butt0

Start and stop the line exactly at the start and end point

Round1

Use a round ending, the center of the circle is the start or end point

Square2

use squared ending, the center of the square is the start or end point