LineCap

Added in version 4.14.

class LineCap

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

The default line cap style is GSK_LINE_CAP_BUTT.

New entries may be added in future versions.

<figure> .. image:: https://docs.gtk.org/gsk4/caps-light.png

<figcaption>GSK_LINE_CAP_BUTT, GSK_LINE_CAP_ROUND, GSK_LINE_CAP_SQUARE</figcaption>

</figure>

Fields

class LineCap
BUTT

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

ROUND

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

SQUARE

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