diff options
Diffstat (limited to 'gsk/gskenums.h')
-rw-r--r-- | gsk/gskenums.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gsk/gskenums.h b/gsk/gskenums.h index 98d5afd505..44e8854874 100644 --- a/gsk/gskenums.h +++ b/gsk/gskenums.h @@ -196,6 +196,28 @@ typedef enum { } GskFillRule; /** + * GskPathOperation: + * @GSK_PATH_MOVE: A move-to operation, with 1 point describing the + * target point. + * @GSK_PATH_LINE: A line-to operation, with 2 points describing the + * start and end point of a straight line. + * @GSK_PATH_CLOSE: A close operation ending the current contour with + * a line back to the starting point. Two points describe the start + * and end of the line. + * @GSK_PATH_CURVE: A curve-to operation describing a cubic bezier curve + * with 4 points describing the start point, the two control points + * and the end point of the curve. + * + * Path operations can be used to approximate a #GskPath. + **/ +typedef enum { + GSK_PATH_MOVE, + GSK_PATH_CLOSE, + GSK_PATH_LINE, + GSK_PATH_CURVE, +} GskPathOperation; + +/** * GskSerializationError: * @GSK_SERIALIZATION_UNSUPPORTED_FORMAT: The format can not be * identified |