API: Add GSK_LINE_JOIN_ARCS

This is from SVG 2.
This commit is contained in:
Matthias Clasen
2023-06-24 11:10:18 -04:00
parent 15a1d74315
commit 2c856cb5e3
2 changed files with 5 additions and 2 deletions

View File

@@ -233,6 +233,7 @@ typedef enum {
* the joint point
* @GSK_LINE_JOIN_BEVEL: Use a cut-off join, the join is cut off at half
* the line width from the joint point
* @GSK_LINE_JOIN_ARCS: Use a sharp angled corner made from circles
*
* Specifies how to render the junction of two lines when stroking.
*
@@ -240,12 +241,13 @@ typedef enum {
* between @GSK_LINE_JOIN_MITER and @GSK_LINE_JOIN_MITER_CLIP.
*
* The default line join style is %GSK_LINE_JOIN_MITER.
**/
*/
typedef enum {
GSK_LINE_JOIN_MITER,
GSK_LINE_JOIN_MITER_CLIP,
GSK_LINE_JOIN_ROUND,
GSK_LINE_JOIN_BEVEL
GSK_LINE_JOIN_BEVEL,
GSK_LINE_JOIN_ARCS
} GskLineJoin;
/**

View File

@@ -131,6 +131,7 @@ gsk_stroke_to_cairo (const GskStroke *self,
{
case GSK_LINE_JOIN_MITER:
case GSK_LINE_JOIN_MITER_CLIP:
case GSK_LINE_JOIN_ARCS:
cairo_set_line_join (cr, CAIRO_LINE_JOIN_MITER);
break;
case GSK_LINE_JOIN_ROUND: