[gtk/path-stroke: 201/205] Add GSK_LINE_JOIN_ARCS




commit 427e185bcf1ec74c58ea3bbe18a1c032223b0bb3
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 23 15:00:52 2020 -0500

    Add GSK_LINE_JOIN_ARCS
    
    Implementation will follow.

 gsk/gskenums.h      | 4 +++-
 gsk/gskpathstroke.c | 1 +
 gsk/gskstroke.c     | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gskenums.h b/gsk/gskenums.h
index 405c845eba..939b3bd64d 100644
--- a/gsk/gskenums.h
+++ b/gsk/gskenums.h
@@ -224,6 +224,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.
  *
@@ -236,7 +237,8 @@ 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;
 
 /**
diff --git a/gsk/gskpathstroke.c b/gsk/gskpathstroke.c
index d5ff3a181d..7be675af24 100644
--- a/gsk/gskpathstroke.c
+++ b/gsk/gskpathstroke.c
@@ -397,6 +397,7 @@ add_line_join (GskPathBuilder         *builder,
 
   switch (line_join)
     {
+    case GSK_LINE_JOIN_ARCS:
     case GSK_LINE_JOIN_MITER:
     case GSK_LINE_JOIN_MITER_CLIP:
       {
diff --git a/gsk/gskstroke.c b/gsk/gskstroke.c
index 60cd3fc6db..cdcaeae4ae 100644
--- a/gsk/gskstroke.c
+++ b/gsk/gskstroke.c
@@ -139,6 +139,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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]